/**
 * MobileOnline Matrimony Theme — Front-end Styles
 *
 * @package MobileOnline_Matrimony_Theme
 */

/* ───────────────────────────────────────
   1. Reset & Base
   ─────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 100000;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* ───────────────────────────────────────
   2. Header
   ─────────────────────────────────────── */

.momp-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--wp--preset--color--base);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--wp--custom--transition--default);
}

.momp-site-header.scrolled {
    box-shadow: var(--wp--custom--shadow--medium);
}

.momp-header-transparent {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom: none;
}

.momp-header-transparent.scrolled {
    position: sticky;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Nav CTA button */
.momp-btn-nav {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    border-radius: var(--wp--custom--border-radius--pill);
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    text-decoration: none;
    transition: var(--wp--custom--transition--default);
}

.momp-btn-nav:hover {
    background: var(--wp--preset--color--primary-dark);
    transform: translateY(-1px);
}

/* ───────────────────────────────────────
   3. Profile Cards
   ─────────────────────────────────────── */

.momp-profile-card {
    border-radius: var(--momp-card-radius, 12px);
    box-shadow: var(--momp-card-shadow, 0 4px 12px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    transition: var(--wp--custom--transition--default);
}

.momp-profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp--custom--shadow--card-hover);
}

.momp-profile-card img {
    object-fit: cover;
}

.momp-profile-photo-card {
    position: sticky;
    top: 100px;
}

/* ───────────────────────────────────────
   4. Hero Section
   ─────────────────────────────────────── */

.momp-hero {
    position: relative;
    overflow: hidden;
}

.momp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.momp-hero-content {
    position: relative;
    z-index: 2;
}

/* ───────────────────────────────────────
   5. Animations
   ─────────────────────────────────────── */

.momp-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.momp-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes momp-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.momp-pulse {
    animation: momp-pulse 2s ease-in-out infinite;
}

/* Gradient text */
.momp-gradient-text {
    background: var(--wp--preset--gradient--primary-to-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ───────────────────────────────────────
   6. Stats Counter
   ─────────────────────────────────────── */

.momp-stat-number {
    font-family: var(--wp--preset--font-family--outfit);
    font-weight: 800;
    font-size: var(--wp--preset--font-size--hero);
    line-height: 1;
    color: var(--wp--preset--color--primary);
}

.momp-stat-label {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ───────────────────────────────────────
   7. Footer
   ─────────────────────────────────────── */

.momp-site-footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.momp-site-footer a:hover {
    color: #ffffff;
}

.momp-site-footer ul {
    list-style: none;
    padding: 0;
}

/* ───────────────────────────────────────
   8. Auth Pages (Login / Register)
   ─────────────────────────────────────── */

.momp-auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.momp-auth-page .is-style-momp-card {
    width: 100%;
}

.momp-auth-page input[type="text"],
.momp-auth-page input[type="email"],
.momp-auth-page input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--wp--preset--color--border);
    border-radius: var(--wp--custom--border-radius--medium);
    font-size: var(--wp--preset--font-size--medium);
    transition: var(--wp--custom--transition--default);
}

.momp-auth-page input:focus {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    outline: none;
}

/* ───────────────────────────────────────
   9. Dashboard
   ─────────────────────────────────────── */

.momp-dashboard-page .is-style-momp-card ul {
    list-style: none;
}

.momp-dashboard-page .is-style-momp-card a {
    text-decoration: none;
    color: var(--wp--preset--color--contrast);
    transition: var(--wp--custom--transition--default);
}

.momp-dashboard-page .is-style-momp-card a:hover {
    color: var(--wp--preset--color--primary);
}

/* ───────────────────────────────────────
   10. 404 Page
   ─────────────────────────────────────── */

.momp-404 h1 {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    opacity: 0.15;
    line-height: 1;
}

/* ───────────────────────────────────────
   9. Responsive
   ─────────────────────────────────────── */

@media (max-width: 781px) {
    .momp-single-profile .wp-block-columns {
        flex-direction: column;
    }

    .momp-profile-photo-card {
        position: static;
    }

    .momp-hero h1,
    .momp-hero .wp-block-heading {
        font-size: var(--wp--preset--font-size--xx-large) !important;
    }
}

@media (max-width: 599px) {
    .momp-archive-profiles .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

/* ───────────────────────────────────────
   10. Dark Mode
   ─────────────────────────────────────── */

body.momp-dark {
    --wp--preset--color--base: #121212;
    --wp--preset--color--contrast: #EBEBEB;
    --wp--preset--color--surface: #1E1E1E;
    --wp--preset--color--muted: #9CA3AF;
    --wp--preset--color--border: rgba(255, 255, 255, 0.12);
}

body.momp-dark .momp-site-header {
    background: #121212;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.momp-dark .is-style-momp-card {
    background: #1E1E1E;
}

/* ───────────────────────────────────────
   11. Misc Utilities
   ─────────────────────────────────────── */

.momp-text-center {
    text-align: center;
}

.momp-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Focus Ring — Accessibility */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* ───────────────────────────────────────
   12. Photo Gallery / Carousel
   ─────────────────────────────────────── */

.momp-gallery-section {
    background: var(--wp--preset--color--surface);
}

/* ── Carousel Wrapper ── */
.momp-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--wp--custom--border-radius--medium, 12px);
    box-shadow: var(--wp--custom--shadow--card, 0 4px 20px rgba(0,0,0,0.10));
    background: #000;
    max-width: 960px;
    margin: 0 auto;
    user-select: none;
}

/* ── Sliding Track ── */
.momp-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Individual Slide ── */
.momp-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}

.momp-carousel-figure {
    margin: 0;
    padding: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.momp-carousel-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.momp-carousel:hover .momp-carousel-figure img {
    transform: scale(1.02);
}

/* ── Caption ── */
.momp-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: #fff;
    font-size: var(--wp--preset--font-size--small, 0.875rem);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
}

/* ── Navigation Arrows ── */
.momp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.90);
    color: var(--wp--preset--color--primary, #e91e63);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
}

.momp-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transform: translateY(-50%) scale(1.08);
}

.momp-carousel-prev {
    left: 14px;
}

.momp-carousel-next {
    right: 14px;
}

/* ── Dot Indicators ── */
.momp-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.momp-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.50);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.momp-carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── MetaSlider wrapper ── */
.momp-metaslider-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.momp-metaslider-wrapper .metaslider {
    border-radius: var(--wp--custom--border-radius--medium, 12px);
    overflow: hidden;
    box-shadow: var(--wp--custom--shadow--card, 0 4px 20px rgba(0,0,0,0.10));
}

/* ── Dark Mode ── */
body.momp-dark .momp-gallery-section {
    background: var(--wp--preset--color--surface);
}

body.momp-dark .momp-carousel-btn {
    background: rgba(30, 30, 30, 0.90);
    color: var(--wp--preset--color--primary, #e91e63);
}

body.momp-dark .momp-carousel-btn:hover {
    background: #1e1e1e;
}

/* ── Responsive ── */
@media (max-width: 781px) {
    .momp-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .momp-carousel-prev {
        left: 8px;
    }

    .momp-carousel-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .momp-carousel-caption {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .momp-carousel-dot {
        width: 8px;
        height: 8px;
    }
}