/* ==========================
   🔷 CSS Variables
========================== */
:root {
  --primary: #f97316;
  --secondary: #f43f5e;
  --text-dark: #1e293b;
  --brand-dark: #1e3a8a;
  --light-bg: #f1f5f9;
  --story-bg: #ffedd5;
  --story-section-bg: #fff7ed;
}

/* ==========================
   🔷 Reset & Base Styles
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: var(--text-dark);
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3 {
  margin: 0;
}

a, button, input {
  outline: none;
  box-shadow: none;
}

.container {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================
   🔷 Header & Navbar
========================== */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 10px 0;
}

.logo {
  font-size: 25px;
  font-weight: bold;
}

.navbar .logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb3b;
}

.nav-links .btn-primary,
.nav-links .btn-secondary {
  margin-left: 12px;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* ==========================
   🔷 Buttons
========================== */
.btn-primary {
  background-color: var(--brand-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ==========================
   🔷 Hero Section
========================== */
.hero {
  text-align: center;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 20px;
  border-radius: 0 0 20px 20px;
}

.hero h1 {
  color: white;
  font-size: 35px;
  margin-bottom: 0;
}

.hero p {
  color: white;
  font-size: 15px;
  margin-top: 5px;
  margin-bottom: 25px;
}

/* ==========================
   🔷 Controls Section
========================== */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem;
  background-color: #fff;
}

.controls input[type="text"] {
  padding: 0.6rem 1rem;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.filters .filter-btn {
  background-color: var(--brand-dark);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  margin: 0 0.3rem;
  border-radius: 6px;
  cursor: pointer;
}

label {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================
   🔷 Vocabulary Grid
========================== */
.vocab-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 2rem;
}

.vocab-card {
  background-color: white;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.vocab-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.vocab-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================
   🔷 Modal Styles
========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.modal-box {
  background: #fff;
  max-width: 600px;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  color: var(--text-dark);
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
}

.modal-box p.hi {
  color: #64748b;
  margin-top: 0;
}

/* ==========================
   🔷 Footer Styles
========================== */
footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-follow,
.footer-links {
  width: 45%;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: var(--primary);
}

.footer-disclaimer,
.footer-copyright {
  font-size: 14px;
  margin-top: 10px;
}

/* ==========================
   🔷 Responsive Media Queries
========================== */

/* 📱 Tablets and below */
@media (max-width: 768px) {
  /* 📌 Navbar */
  .container.navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 20px 0;
  }

  .hamburger {
    display: block;
  }

  /* 📌 Hero Section */
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* 📌 Control Section (search, filters) */
  .controls {
    flex-direction: column;
    align-items: center;
  }

  .controls input[type="text"] {
    width: 90%;
  }

  /* 📌 Vocab Cards */
  .vocab-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 1rem;
  }

  /* 📌 Modal Box */
  .modal-box {
    margin: 10% auto;
    width: 90%;
    padding: 20px;
  }


}


/* 📱 Mobile (extra small devices) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 20px;
  }

  .controls input[type="text"] {
    font-size: 14px;
    padding: 0.5rem;
  }

  .filters .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 14px;
  }

  label {
    font-size: 0.85rem;
  }

  .vocab-card h3 {
    font-size: 1rem;
  }

  .vocab-card p {
    font-size: 0.9rem;
  }

  .modal-box h2 {
    font-size: 20px;
  }

  .modal-box h4 {
    font-size: 16px;
  }

  .modal-box p {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 14px;
    font-size: 14px;
  }

}
