/* ============================================
   GLOBAL STYLES
============================================ */

:root {
  --primary-color: #f8d7da;   
  --secondary-color: #d4af37; 
  --accent-color: #f5f5f5;    
  --text-color: #111111;      
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fafafa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ============================================
   HEADER STYLES (UPDATED + MOBILE OPTIMIZED)
============================================ */

#main-header {
  width: 100vw;
  background: linear-gradient(135deg, #f8e9e9 0%, #f6f3eb 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 15px 5%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

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

.logo {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(45deg, #b8860b, #d4af37, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 1.6rem;
}

/* Desktop Navigation */
#nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

#nav-menu a {
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  color: var(--text-color);
  transition: color 0.3s ease;
}

#nav-menu a:hover {
  color: #d4af37;
}

#nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #d4af37;
  transition: width 0.3s ease;
}

#nav-menu a:hover::after {
  width: 100%;
}

/* ============================================
   PROFILE ICON + DROPDOWN
============================================ */

.profile-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.6rem;
  color: #444;
  transition: color 0.3s;
}

.profile-icon:hover {
  color: #d4af37;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 35px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  min-width: 160px;
  z-index: 1100;
}

.profile-dropdown.open {
  display: block;
}

.profile-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.profile-dropdown a:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* ============================================
   BURGER + SIDEBAR MENU (MOBILE)
============================================ */

.burger {
  display: none;
  font-size: 1.6rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.burger:hover {
  color: #d4af37;
  transform: scale(1.1);
}

#sidebar-menu {
  position: fixed;
  top: 0;
  left: -270px;
  width: 270px;
  height: 100vh;
  background: var(--primary-color);
  backdrop-filter: blur(10px);
  box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  transition: left 0.35s ease;
  z-index: 2000;
  padding-top: 70px;
}

#sidebar-menu.open {
  left: 0;
}

#sidebar-menu ul {
  list-style: none;
  padding: 0;
  background: var(--primary-color);
}

#sidebar-menu li {
  margin: 15px 0;
}

#sidebar-menu a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 10px 25px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

#sidebar-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid #d4af37;
  transform: translateX(5px);
}

#close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.4rem;
  color: #444;
  cursor: pointer;
  transition: color 0.3s;
}

#close-btn:hover {
  color: #d4af37;
}

/* ============================================
   FOOTER
============================================ */

footer {
  display: block;
  background-color: #f8d7da;
  color: #333;
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: #d4af37;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #d4af37;
}

.footer-column p {
  margin-bottom: 15px;
  color: #333;
  transition: color 0.3s;
}

.footer-column p:hover {
  color: #d4af37;
}

.footer-column:nth-child(2) {
  padding-left: 25%;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #444;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #d4af37;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  color: #333;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE STYLES
============================================ */

@media (max-width: 900px) {
  /* Hide desktop nav */
  #nav-menu {
    display: none;
  }

  /* Hide profile icon */
  .profile-icon {
    display: none;
  }

  /* Keep burger visible */
  .burger {
    display: block;
    font-size: 1.8rem;
  }

  /* Header layout: logo left, burger right */
  .header-content {
    display: flex;
    justify-content: space-between; /* ✅ aligns menu correctly */
    align-items: center;
    padding: 0 20px 0 20px;
}


  .logo {
    font-size: 1.6rem;
  }

  #sidebar-menu {
    display: block;
  }

.footer-column:nth-child(2) {
  padding-left: 0;
}

}

/* ============================================
   MOBILE FIX – Gender Category Same Size
============================================ */
@media (max-width: 768px) {

  .category_container {
    padding: 0 10px;
  }

  .gender_category {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
  }

  .gender-box {
    flex: 1;
    height: 220px;                 /* SAME CARD HEIGHT */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .gender-img {
    width: 100%;
    height: 150px;                 /* SAME IMAGE HEIGHT */
    object-fit: cover;             /* Crop evenly */
    border-radius: 12px;
  }

  .gender-box h3 {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
  }
}
