/*
Theme Name: Matrimony Pro Theme
Theme URI: https://example.com/matrimony-theme
Author: Antigravity
Description: A modern, responsive, glassmorphism theme designed to work flawlessly with the WP Matrimony Pro plugin.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: matrimony-theme
*/

:root {
    --wpm-primary: #ff477e;
    --wpm-primary-hover: #f03369;
    --wpm-secondary: #5b62d8;
    --wpm-secondary-hover: #474cb4;
    --wpm-dark: #0f172a;
    --wpm-dark-light: #1e293b;
    --wpm-text: #475569;
    --wpm-bg: #fdfdfd;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--wpm-bg);
    color: var(--wpm-text);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--wpm-dark);
}

#page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

#content {
    flex: 1;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* =========================================
   Top Bar
========================================= */
.top-bar {
    background: var(--wpm-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact i {
    color: var(--wpm-primary);
    margin-right: 5px;
}

.top-social a {
    color: #cbd5e1;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-social a:hover {
    color: var(--wpm-primary);
}

/* =========================================
   Header Styles
========================================= */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo */
.site-branding .brand-logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.brand-icon {
    color: var(--wpm-primary);
    font-size: 2rem;
}

.brand-text {
    color: var(--wpm-dark);
}

.brand-highlight {
    color: var(--wpm-primary);
    font-weight: 400;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--wpm-dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--wpm-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--wpm-primary);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Header Actions / Buttons */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-actions a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login-outline {
    color: var(--wpm-dark);
    border: 2px solid #e2e8f0;
}

.btn-login-outline:hover {
    border-color: var(--wpm-primary);
    color: var(--wpm-primary);
}

.btn-register-solid {
    background: linear-gradient(135deg, var(--wpm-primary), var(--wpm-secondary));
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 71, 126, 0.3);
}

.btn-register-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 126, 0.4);
}

.btn-dashboard {
    background: var(--wpm-dark-light);
    color: white !important;
}

.btn-logout {
    color: var(--wpm-text);
}

.btn-logout:hover {
    color: var(--wpm-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--wpm-dark);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

/* =========================================
   Page Header Banner
========================================= */
.page-header-banner {
    background: linear-gradient(135deg, var(--wpm-dark), var(--wpm-secondary));
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 71, 126, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-header-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
    text-transform: capitalize;
}

.breadcrumbs {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Roboto', sans-serif;
}

.breadcrumbs a {
    color: var(--wpm-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Content Wrapper */
.wpm-page-content-wrapper {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-top: -40px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.wpm-page-content-wrapper h2 {
    color: var(--wpm-dark);
    font-size: 2rem;
    margin: 30px 0 15px;
}

/* =========================================
   Premium Footer
========================================= */
.site-footer {
    background: var(--wpm-dark);
    color: #94a3b8;
    padding: 80px 20px 30px;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wpm-primary), var(--wpm-secondary));
}

.footer-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 2%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--wpm-primary);
    transform: translateX(5px);
}

.footer-brand {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
}

.footer-brand span {
    color: var(--wpm-primary);
    font-weight: 400;
}

/* Newsletter Input */
.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--wpm-primary);
}

.footer-newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--wpm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-newsletter button:hover {
    background: var(--wpm-primary-hover);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--wpm-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    margin-left: 20px;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .main-navigation ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-header-banner h1 {
        font-size: 2.2rem;
    }

    /* Improved Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    .site-branding {
        order: 1;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        display: block !important;
        overflow-y: auto;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .nav-menu-wrapper {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .main-navigation ul li {
        width: 100%;
    }

    .main-navigation ul li a {
        font-size: 1.2rem;
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }

    .header-actions {
        display: none;
        /* We will move these into the menu via JS if needed, or hide */
    }

    /* Move actions into mobile menu */
    .nav-menu-wrapper::after {
        content: "";
        display: block;
        height: 100px;
    }
}