/* ========================================
   GLOBAL & SHARED STYLES
   ======================================== */
:root {
    --primary: #d62828;
    --secondary: #fcbf49;
    --accent: #8ecae6;
    --dark: #2b2d42;
    --light: #f8f9fa;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--dark);
    overflow-x: hidden;
    padding-top: 80px; /* For fixed navbar */
}

/* ========================================
   NAVIGATION (Shared)
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: var(--primary);
    font-weight: 700;
}
.logo span { color: var(--secondary); }

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }

.auth-btn,
.user-btn {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.auth-btn:hover,
.user-btn:hover {
    background: #b21e1e;
    transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle i {
    font-size: 1.6rem;
    color: var(--dark);
    transition: 0.3s;
}

/* Mobile Popup Menu */
.mobile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.mobile-popup.active {
    display: flex;
    opacity: 1;
}
.popup-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
    transform: scale(0.9);
    animation: popupScale 0.4s ease-out forwards;
}
@keyframes popupScale { to { transform: scale(1); } }

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.popup-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}
.popup-logo span { color: var(--secondary); }
.close-popup {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
}
.close-popup:hover { color: var(--primary); }

.popup-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}
.popup-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}
.popup-links a:last-child { border-bottom: none; }
.popup-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.popup-auth {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.popup-auth:hover {
    background: #b21e1e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214,40,40,0.3);
}

/* User Dropdown (Desktop) */
.user-menu { position: relative; }
.dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s;
    z-index: 1000;
}
.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}
.dropdown a:hover {
    background: var(--light);
    color: var(--primary);
}
.dropdown a:last-child {
    border-bottom: none;
    color: #dc2626;
}

/* ========================================
   HOMEPAGE SECTIONS
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
                url('../images/ys-slider.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(214, 40, 40, 0.3);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}
.cta-btn {
    background: var(--secondary);
    color: var(--dark);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(252, 191, 73, 0.4);
    transition: 0.3s;
}
.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(252, 191, 73, 0.6);
}

/* Stats */
.home-stats {
    background: var(--light);
    padding: 80px 5%;
    text-align: center;
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item h3 {
    font-size: 3em;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-item p {
    color: #666;
    font-weight: 500;
}

/* Features */
.features {
    padding: 100px 5%;
    background: white;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: var(--dark);
    margin-bottom: 15px;
}
.section-title p {
    color: #666;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2em;
}

/* Success Stories */
.success-stories {
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff8f0, #fff0f8);
}
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.story-img {
    height: 250px;
    overflow: hidden;
}
.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.story-card:hover img {
    transform: scale(1.1);
}
.story-content {
    padding: 25px;
}
.couple-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.story-text {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
}
.wedding-date {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9em;
}

/* Final CTA */
.final-cta {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--primary), #b21e1e);
    color: white;
    text-align: center;
}
.final-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin-bottom: 20px;
}
.final-cta p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 5% 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.footer-col h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}
.footer-col a,
.footer-col p {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}
.footer-col a:hover {
    color: var(--secondary);
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9em;
}

/* ========================================
   LOGIN PAGE (Scoped)
   ======================================== */
.login-page body { padding-top: 100px; }
.login-page .main-container {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}
.login-page .left-side {
    flex: 1;
    background: linear-gradient(135deg, #d62828 0%, #fcbf49 50%, #8ecae6 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}
.login-page .left-side::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }

.login-page .logo-big {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-page .tagline {
    font-size: 1.2rem;
    max-width: 280px;
    opacity: 0.9;
    line-height: 1.6;
}
.login-page .login-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.login-page .stat-number {
    font-size: 2rem;
    font-weight: 700;
}
.login-page .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.login-page .right-side {
    flex: 1.2;
    padding: 60px;
}
.login-page .form-container { display: none; }
.login-page .form-container.active {
    display: block;
    animation: fade 0.5s;
}
@keyframes fade { from{opacity:0} to{opacity:1} }

.login-page .form-title {
    font-size: 2.2rem;
    color: #2b2d42;
    margin-bottom: 10px;
    text-align: center;
}
.login-page .input-wrapper { position: relative; margin-bottom: 24px; }
.login-page .input-field {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: 0.3s;
}
.login-page .input-field:focus {
    border-color: #d62828;
    outline: none;
    box-shadow: 0 0 0 4px rgba(214,40,40,0.1);
}
.login-page .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.login-page .password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}
.login-page .btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #d62828, #b21e1e);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.login-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(214,40,40,0.3);
}
.login-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.login-page .form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.login-page .switch-link {
    color: #d62828;
    font-weight: 600;
    text-decoration: none;
}
.login-page .switch-link:hover {
    text-decoration: underline;
}
.login-page .error-message,
.login-page .success-message {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}
.login-page .error-message {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.login-page .success-message {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}
.welcome-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.welcome-card p {
    color: #666;
    font-size: 1.1rem;
}
.stats-grid,
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card,
.action-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}
.stat-card:hover,
.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.stat-icon,
.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}
.action-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: none;
    margin-bottom: 15px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.stat-label,
.action-card p {
    color: #666;
    font-size: 0.95rem;
}
.btn-action {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-action:hover {
    background: #b21e1e;
    transform: translateY(-2px);
}
.profile-info {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.profile-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: #666;
    font-weight: 500;
}
.info-value {
    color: var(--dark);
    font-weight: 600;
}

/* ========================================
   SEARCH PAGE (Added Once)
   ======================================== */
.search-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.page-title {
    text-align: center;
    margin-bottom: 40px;
}
.page-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.page-title p {
    color: #666;
    font-size: 1.1rem;
}
.search-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}
.form-group select,
.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}
.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.1);
}
.search-btn {
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
}
.search-btn:hover {
    background: #b21e1e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214,40,40,0.3);
}

/* Results */
.results-count {
    text-align: center;
    margin: 30px 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.profile-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.profile-img {
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}
.profile-info {
    padding: 20px;
}
.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}
.profile-detail {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
}
.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.btn-view,
.btn-interest {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-align: center;
}
.btn-view {
    background: var(--light);
    color: var(--dark);
}
.btn-view:hover {
    background: #e5e7eb;
}
.btn-interest {
    background: var(--primary);
    color: white;
}
.btn-interest:hover {
    background: #b21e1e;
}
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}
.pagination a,
.pagination span {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: 0.3s;
}
.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links,
    .auth-btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 { font-size: 3em; }
    .hero p { font-size: 1.1em; }
    .section-title h2 { font-size: 2.2em; }
    .story-img { height: 200px; }

    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
    .welcome-card h1 { font-size: 2rem; }

    /* Login Page */
    .login-page .main-container {
        flex-direction: column;
        margin: 20px;
    }
    .login-page .left-side {
        padding: 40px;
    }
    .login-page .form-row {
        grid-template-columns: 1fr;
    }
    .login-page .login-stats {
        gap: 20px;
    }

    /* Search Page */
    .form-grid { grid-template-columns: 1fr; }
    .page-title h1 { font-size: 2.2rem; }
    .profiles-grid { grid-template-columns: 1fr; }
    .pagination { flex-direction: column; align-items: center; }
}


 

        

         

     