/* ===============================
   HEADER & FOOTER STYLES
   =============================== */

/* ===============================
   GLOBAL LAYOUT FIX (Sticky Footer)
   =============================== */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main.page-content {
  flex: 1;
}

/* ===============================
   HEADER
   =============================== */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--dark-text);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.login-btn {
  background-color: var(--secondary-color);
  padding: 8px 18px;
  border-radius: var(--radius);
  color: var(--white) !important;
  font-weight: 500;
  transition: var(--transition);
}

.login-btn:hover {
  background-color: var(--accent-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-text);
  margin: 4px 0;
  transition: var(--transition);
}

/* ===============================
   FOOTER STYLING
   =============================== */
.main-footer {
  background: #6a1b9a; /* Spiritual Purple */
  color: var(--white);
  padding: 8px 0;
}

.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white);
  padding-left: 5px;
}

.dev-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--white);
}

.dev-credit a {
  display: inline-flex;
  align-items: center;
}

.dev-credit img {
  height: 72px;
  width: auto;
  filter: none;
  margin-bottom: 0;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.dev-credit img:hover {
  transform: scale(1.05);
}

/* ===============================
   RESPONSIVE FIXES
   =============================== */

/* ---------- LAPTOP VIEW (max-width: 1200px) ---------- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 20px;
  }

  .logo img {
    height: 50px;
  }
}

/* ---------- TABLET & MOBILE VIEW (max-width: 992px) ---------- */
@media (max-width: 992px) {
  .header-flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  /* Hide desktop nav */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-top: 10px;
    padding: 15px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    text-align: center;
  }

  /* Show when active */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Show hamburger menu for tablets too */
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .logo img {
    height: 50px;
  }

  .login-btn {
    margin: 10px auto;
  }
}

/* ---------- MOBILE VIEW (max-width: 768px) ---------- */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  /* Hide desktop nav */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-top: 10px;
    padding: 15px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    text-align: center;
  }

  /* Show when active */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hamburger menu */
  .menu-toggle {
    display: flex;
  }

  .logo img {
    height: 48px;
  }

  .login-btn {
    margin: 10px auto;
  }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .main-footer {
    padding: 10px 0;
    text-align: center;
  }

  .footer-flex {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .main-footer p,
  .dev-credit {
    font-size: 0.85rem;
  }

  .dev-credit img {
    height: 60px;
  }
}

/* ===============================
   HAMBURGER ANIMATION
   =============================== */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.menu-toggle span {
  transition: all 0.3s ease;
}

/* ===============================
   LOGO WITH NAME STYLING
   =============================== */
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 55px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text h1 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--dark-text);
  letter-spacing: 0.5px;
  margin: 0;
}

.logo-text p {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin: 0;
  letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .logo-text h1 {
    font-size: 1.05rem;
  }
  .logo-text p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .logo-group {
    gap: 8px;
  }
  .logo-text {
    display: none; /* Hide name text on mobile for cleaner layout */
  }
}
