:root {
    --brand-pink: #e91e63;
    --brand-dark: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--brand-dark);
    color: var(--text);
    line-height: 1.6;
}

body.nav-open { overflow: hidden; }

/* Sticky Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}



.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
}
.nav-backdrop.is-open { display: block; }

/* Logo Branding */
.logo { font-size: 1.5rem; font-weight: bold; color: white; }

.logo i { 
    color: var(--brand-pink); 
    margin-right: 5px;
    transition: color 0.3s ease; 
}

.logo span { 
    color: var(--brand-pink); 
    transition: color 0.3s ease; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

 .active{  
    font-weight: bold; 
    border-bottom: 2px solid var(--brand-pink);
}

/* Ensure the logo link doesn't inherit default anchor styles */
.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

/* ========================== */


.btn-signup, .btn {
    background: var(--brand-pink);
    padding: 8px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: 0;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3)), url('images/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-text-content h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-actions { display: flex; gap: 15px; margin-top: 25px; }

.btn-main {
    background: var(--brand-pink);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-outline {
    border: 1px solid white;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
}

/* Forms & Sections */
.section-padding { padding: 100px 8%; text-align: center; }
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 50px; }
.step i { font-size: 2.5rem; color: var(--brand-pink); margin-bottom: 15px; transition: color 0.3s ease; }

.form-section { padding: 80px 8%; display: flex; justify-content: center; }
.form-container { 
    background: var(--card-bg); 
    padding: 40px; 
    border-radius: 15px; 
    width: 100%; 
    max-width: 800px; 
    border: 1px solid rgba(255,255,255,0.1);
}
.form-container.mini { max-width: 400px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.full-width { grid-column: span 2; }

input, select {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
}


/* Discovery Layout */
.discovery-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 8%;
}

.filter-sidebar {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    height: fit-content;
    position: sticky;
    top: 100px; /* Sticks below the navbar */
    z-index: 100; /* Lower than navbar */
    margin-top: 40px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.profile-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.profile-info { padding: 20px; }

/* Responsive Media Queries */
@media (min-width: 900px) {
    .nav-links { display: flex !important; position: static; background: none; width: auto; }
    .hamburger { display: none; }
    .discovery-grid { 

        padding-top: inherit;
    }
}

@media (max-width: 900px) {
    .hamburger { display: flex; order: 2; }
    .nav-links {
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 16px;
        background: var(--brand-pink); 
        width: min(240px, calc(100vw - 32px));
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); 
        z-index: 2000;
        transition: background 0.3s ease;
    }
    .nav-links.is-open { display: flex !important; }
    .nav-links a { margin: 8px 0; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-weight: bold; }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links .btn-signup { background: #ffffff; color: var(--brand-pink); text-align: center; }
}

//==================Template====================================

/* Discovery Grid Layout */
.discovery-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.filter-sidebar {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Profile Card Styling */
.profile-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.profile-card:hover { transform: translateY(-5px); }

.profile-img {
    width: 100%;
    height: 250px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.profile-info { padding: 15px; text-align: left; }
.profile-meta { font-size: 0.85rem; color: #aaa; margin: 5px 0 15px; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .discovery-container { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; margin-top: 40px;}
}


/* Animation Keyframes */
@keyframes swipeRight {
    to { transform: translateX(200px) rotate(20deg); opacity: 0; }
}
@keyframes swipeLeft {
    to { transform: translateX(-200px) rotate(-20deg); opacity: 0; }
}

.swipe-right { animation: swipeRight 0.5s forwards; }
.swipe-left { animation: swipeLeft 0.5s forwards; }

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.btn-like { background: #4caf50; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; flex: 1; }
.btn-dislike { background: #f44336; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; flex: 1; }

/* -----------------------------
   Global Footer (Legal links)
----------------------------- */
.site-footer{
  margin-top: 40px;
  padding: 18px 8% 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  opacity: 0.85;
}
.site-footer__links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 10px;
}
.site-footer__links a{
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: 0.2s;
}
.site-footer__links a:hover{
  color: var(--brand-pink);
}
.site-footer__copy{
  text-align: center;
  color: rgba(255,255,255,0.65);
}


/* Admin Shell */

/* Hide protected admin pages until admin auth passes */
html.admin-auth-pending body { visibility: hidden; }

.admin-shell{display:flex; gap:16px; padding:18px 8%; min-height:calc(100vh - 70px);}
@media (max-width: 900px){.admin-shell{padding:12px 4%;}}
.admin-sidebar{width:260px; flex:0 0 260px; background:var(--card-bg); border:1px solid rgba(255,255,255,0.1); border-radius:16px; overflow:hidden; height:fit-content; position:sticky; top:86px;}
.admin-sidebar__head{padding:14px 14px; border-bottom:1px solid rgba(255,255,255,0.08);}
.admin-sidebar__brand{font-weight:700;}
.admin-sidebar__sub{font-size:.82rem; opacity:.75; margin-top:2px;}
.admin-nav{display:flex; flex-direction:column;}
.admin-nav a{display:flex; align-items:center; gap:10px; padding:12px 14px; text-decoration:none; color:inherit; border-bottom:1px solid rgba(255,255,255,0.06);}
.admin-nav a:hover{background:rgba(255,255,255,0.04);}
.admin-nav a.active{background:rgba(255,255,255,0.06);}
.admin-content{flex:1; min-width:0;}

.admin-sidebar-toggle{display:none;}
@media (max-width: 900px){
  .admin-sidebar{position:fixed; top:0; left:0; bottom:0; height:auto; width:82vw; max-width:320px; transform:translateX(-110%); transition:transform .2s ease; z-index:2000; border-radius:0;}
  .admin-sidebar.is-open{transform:translateX(0);}
  .admin-sidebar-toggle{display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,0.12); background:rgba(0,0,0,0.25); color:inherit;}
  .admin-shell{gap:0;}
}
.admin-backdrop{position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:1990; display:none;}
.admin-backdrop.is-open{display:block;}


/* Admin helpers */
.admin-pre{white-space:pre-wrap;word-break:break-word;font-size:12px;max-width:520px;}

/* Admin dashboard cards (admin/index.html) */
.dash-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin:12px 0;
}
.dash-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:12px 0;
}
.dash-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:14px;
  min-height:84px;
}
.dash-card.big{min-height:110px;}
.dash-card__title{font-size:12px;opacity:0.8;margin-bottom:6px;}
.dash-card__value{font-size:26px;font-weight:700;letter-spacing:0.3px;}
.dash-card__meta{font-size:12px;opacity:0.7;margin-top:6px;}

@media (max-width: 720px){
  .dash-card__value{font-size:22px;}
}
