/* ====================================
   🌿 TA-EDU GLOBAL STYLE
   ==================================== */
/* ===== FONT FAMILY ===== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600&display=swap');

html, body {
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body {
  font-family: "Baloo 2", sans-serif;
  font-weight: 500;
  color: #222;
}

/* ====== RESET & CƠ BẢN ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Baloo 2", cursive;
  background: #ffffff;
  color: #1f1f1f;
  min-height: 100vh;
}

/* ====== LINK ====== */
a {
  text-decoration: none;
  color: #2ebfa5;
  transition: color 0.3s;
}

a:hover {
  color: #25a88f;
}

/* ====== BUTTON ====== */
button {
  font-family: "Baloo 2", cursive;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background: #2ebfa5;
  color: white;
  padding: 10px 16px;
}

.btn-primary:hover {
  background: #25a88f;
}

/* ====== HEADER ====== */
.ta-header {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 40px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: #2ebfa5;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  font-weight: 500;
  color: #1f1f1f;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #2ebfa5;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  background: #fff;
  color: #666;
  padding: 20px 10px;
  border-top: 1px solid #eee;
  font-size: 15px;
}

/* ====== LOGIN PAGE ====== */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: #f7f9fa;
}

.login-box {
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.login-box h2 {
  color: #2ebfa5;
  margin-bottom: 10px;
  font-size: 26px;
}

.login-box p {
  color: #444;
  margin-bottom: 25px;
  font-size: 15px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ccc;
  color: #444;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s;
}

.google-btn:hover {
  background: #f1f1f1;
  border-color: #bbb;
}

.google-btn i {
  color: #fbbc05;
  font-size: 18px;
}

.login-note {
  margin-top: 15px;
  color: #888;
  font-size: 14px;
}


/* ====== SMART TUTOR ====== */
.chat-container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 70vh;
}

#chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
}

.user-msg,
.bot-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 6px 0;
}

.user-msg {
  background: #2ebfa5;
  color: white;
  align-self: flex-end;
}

.bot-msg {
  background: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.chat-input button {
  background: #2ebfa5;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
}

.chat-input button:hover {
  background: #25a88f;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .login-container {
    margin: 60px 20px;
  }

  .chat-container {
    margin: 20px;
    height: 75vh;
  }
}
/* ------------ HOME PAGE (index) ------------ */

.home-main {
  padding: 60px 0 80px;
  background: #f7fbfc;
}

.hero {
  max-width: 960px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero .highlight {
  color: #00bfa5;
}

.hero p {
  font-size: 1rem;
  color: #444;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.hero-secondary-link {
  font-size: 0.95rem;
  text-decoration: underline;
  color: #00bfa5;
}
/* Tính năng nổi bật */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.features h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 14px 18px;
  border: 1px solid #e3f3f1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 150px;

  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
  cursor: default;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}


/* Mobile nhỏ hơn ~600px: căn giữa text hero cho cute hơn */
@media (max-width: 600px) {
  .hero {
    text-align: center;
  }
}
/* Hiệu ứng hover cho nút & link ở hero */
.hero-buttons .btn-primary,
.hero-buttons .hero-secondary-link {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out,
    color 0.18s ease-out;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 191, 165, 0.35);
}

.hero-buttons .hero-secondary-link:hover {
  transform: translateY(-1px);
  color: #00937f;
}

/* Hiệu ứng hover cho các thẻ tính năng */
.feature-card {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out;
  cursor: default;
}

.feature-card:hover {
  background: #ffffff; 
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  border-color: #00bfa5;
}

/* Nhẹ nhàng cho tiêu đề hero */
.hero h1,
.hero p {
  transition: transform 0.18s ease-out;
}

.hero:hover h1,
.hero:hover p {
  transform: translateY(-1px);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

/* Style chung cho 2 nút hero */
.hero-btn {
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* Nút phụ: Làm bài tập */
.btn-secondary {
  background: #ffffff;
  border: 1px solid #00bfa5;
  color: #00bfa5;
}

/* Hover */
.hero-btn {
  transition: transform 0.18s ease-out,
              box-shadow 0.18s ease-out,
              background-color 0.18s ease-out,
              color 0.18s ease-out,
              border-color 0.18s ease-out;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 10px 20px rgba(0, 191, 165, 0.35);
}

.hero-buttons .btn-secondary:hover {
  background-color: #e6fffb;
  border-color: #00a28a;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover {
  color: #fff;
}

/* ====== THEME: NEON (GLOBAL) ====== */
body.theme-neon {
  background: radial-gradient(circle at 20% 10%, rgba(78, 240, 255, 0.12), transparent 28%),
              radial-gradient(circle at 80% 0%, rgba(96, 139, 255, 0.14), transparent 30%),
              linear-gradient(180deg, #06131f 0%, #07121c 100%);
  color: #e6f4ff;
}

body.theme-neon .home-main {
  background: radial-gradient(circle at 30% 15%, rgba(64, 245, 220, 0.08), transparent 28%),
              linear-gradient(180deg, rgba(7, 18, 28, 0.88) 0%, rgba(6, 17, 26, 0.96) 100%);
}

body.theme-neon .hero h1,
body.theme-neon .hero p,
body.theme-neon .features h2 {
  color: #eaf7ff;
}

body.theme-neon .hero .highlight {
  color: #6cf2df;
}

body.theme-neon .feature-card {
  background: rgba(9, 24, 38, 0.78);
  border-color: rgba(92, 226, 232, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.theme-neon .feature-card h3 {
  color: #dff8ff;
}

body.theme-neon .feature-card p {
  color: #b9cfe0;
}

body.theme-neon .feature-card:hover {
  background: rgba(12, 30, 46, 0.9);
  border-color: rgba(108, 242, 223, 0.7);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

body.theme-neon .btn-secondary {
  background: rgba(8, 24, 36, 0.85);
  border-color: #6cf2df;
  color: #6cf2df;
}

body.theme-neon .hero-buttons .btn-secondary:hover {
  background-color: rgba(15, 44, 62, 0.9);
  border-color: #7ef0ff;
  color: #7ef0ff;
}
