@tailwind base;
@tailwind components;
@tailwind utilities;

/* Cursor color for typed.js */
.typed-cursor {
  @apply text-primary;
}

/* Basic Colors */
.bg-dark-primary {
  background-color: #4cafeb;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #1a1a1a;
}

/* Body styles */
body {
  background-color: #f8f9fa;
  color: #333333;
}

/* Course card */
.course-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  position: absolute;
}
.course-card:hover {
  transform: translateY(-5px);
}
.course-card.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  position: static;
}
.course-card .flex {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.course-card .ml-auto {
  margin-left: auto;
}

/* Table Styles */
.table {
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  border-spacing: 0;
  width: 100%;
}
th, td {
  color: #333333;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}
th {
  background-color: #a3d9ff;
}
th:first-child, td:first-child {
  text-align: left;
}

/* Section background */
section {
  background-color: #ecf7f9;
}

/* Font Awesome Check */
.fa-check {
  color: rgb(12, 212, 86);
  padding: 4px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .course-card .flex {
    gap: 4px;
  }
  .course-card .ml-auto {
    margin-left: 8px;
  }
  table {
    font-size: 0.85rem;
  }
  th {
    font-size: 0.75rem;
  }
  td {
    font-size: 0.85rem;
  }
  th, td {
    padding: 4px;
  }
}

/* Review Layout Grid */
.review-flex-grid {
  column-count: 4;
  column-gap: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (max-width: 1400px) {
  .review-flex-grid { column-count: 3; }
}
@media (max-width: 1000px) {
  .review-flex-grid { column-count: 2; }
}
@media (max-width: 700px) {
  .review-flex-grid {
    column-count: 1;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Review Card Styles */
.review-col {
  display: inline-block;
  width: 100%;
  margin-bottom: 2rem;
}

.review-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.review-container:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.review-details {
  margin-bottom: 12px;
}
.review-rating {
  margin-bottom: 8px;
}
.rating-star:before {
  content: "★";
  font-size: 18px;
  color: #e7711b;
  margin-right: 2px;
}
.review-meta {
  display: flex;
  align-items: center;
  margin-top: 16px;
}
.author-icon {
  height: 40px;
  width: 40px;
  background: #bbb;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  object-fit: cover;
}
.author-name {
  color: #427fed;
  font-weight: bold;
  margin-right: 8px;
}
.review-date {
  color: #888;
  font-size: 13px;
}
