/* Base Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --ahhh-gold: #D4AF37;
    --ahhh-black: #1a1a1a;
    --ahhh-gray: #e5e7eb;
    --ahhh-fuchsia: #D500F9;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--ahhh-gray) !important;
    color: var(--ahhh-black);
}

body .container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

.ahhh-gray {
    background-color: #e5e7eb !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

/* Nav Improvements */
nav {
    background-color: var(--ahhh-gray) !important;
    height: 80px;
    border-bottom: 1px solid #d1d5db;
    box-shadow: none !important;
    display: flex;
    align-items: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    width: 100%;
    text-align: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #9d174d;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
}

.site-main {
    min-height: calc(100vh - 80px);
}

.nav-logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #FF4081 0%, #D500F9 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(213, 0, 249, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(213, 0, 249, 0.4);
}

.btn-outline {
    border: 2px solid #D500F9;
    color: #D500F9;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: #fdf2ff;
    transform: translateY(-1px);
}

.btn-link {
    color: #64748b;
    text-decoration: underline;
    font-size: 0.875rem;
}

.btn-link:hover {
    color: #D500F9;
}


/* New Features */
.btn-dashboard {
    background: linear-gradient(135deg, #FFD700 0%, #D500F9 100%);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(213, 0, 249, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn-luxury {
    background-color: white;
    color: #6A1B9A;
    /* ahhh-purple */
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-btn-luxury:hover {
    background-color: #fce4ec;
    /* Light pink/fuchsia tint */
    color: #D500F9;
    border-color: #D500F9;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(213, 0, 249, 0.15);
}

.nav-btn-luxury.primary {
    background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%);
    border-color: #D500F9;
    color: #D500F9;
}

.nav-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.nav-btn-circle:hover {
    color: #D500F9;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tanga-icon {
    font-weight: bold;
    color: transparent;
    background: linear-gradient(135deg, #FFD700 0%, #D500F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #475569;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-back:hover {
    background-color: #f8fafc;
    color: #D500F9;
    transform: translateX(-2px);
}

.blur-exclusive {
    filter: blur(24px) grayscale(50%);
    pointer-events: none;
    user-select: none;
}

/* Age Gate Custom */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.age-gate-content {
    background: #111;
    border: 1px solid #333;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 500px;
    color: white;
}

.age-gate-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.text-gradient {
    background: linear-gradient(135deg, #FF4081 0%, #D500F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pulsing-logo {
    animation: pulse-glow 3s infinite;
    max-width: 150px;
    margin: 0 auto 2rem;
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(213, 0, 249, 0.2));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(213, 0, 249, 0.6));
        transform: scale(1.02);
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(213, 0, 249, 0.2));
        transform: scale(1);
    }
}

/* Forms */
input,
textarea,
select {
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #D500F9;
    box-shadow: 0 0 0 3px rgba(213, 0, 249, 0.1);
}

.tanga-logo {
    content: "₮";
    color: #D500F9;
    font-weight: 800;
}

/* Media Manager */
.thumb-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.thumb-container img,
.thumb-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-overlay:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.mobile-contact-bar {
    display: none;
}

.home-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) auto auto;
    gap: 0.65rem;
    width: min(100% - 2rem, 1040px);
    padding: 0.75rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.filter-field {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
}

.filter-field:focus-within {
    border-color: var(--ahhh-fuchsia);
    box-shadow: 0 0 0 3px rgba(213, 0, 249, 0.1);
}

.filter-field input,
.filter-field select {
    min-width: 0;
    width: 100%;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    box-shadow: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border: 0;
    box-shadow: none;
}

.filter-submit,
.filter-clear {
    min-height: 48px;
    padding: 0 1.1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
}

.filter-submit {
    background: #c2185b;
    color: white;
}

.filter-submit:hover {
    background: #9d174d;
}

.filter-clear {
    color: #475569;
    background: #f1f5f9;
}

.filter-clear:hover {
    color: #be185d;
    background: #fce7f3;
}

@media (max-width: 900px) {
    .home-filters {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .home-filters {
        grid-template-columns: 1fr;
        width: calc(100% - 1.25rem);
    }

    .filter-search {
        grid-column: auto;
    }

    .filter-submit,
    .filter-clear {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .site-nav,
    nav.site-nav {
        height: 68px;
    }

    .nav-content {
        padding: 0.35rem 0.75rem;
    }

    .nav-logo {
        height: 48px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .nav-actions {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 0.85rem;
        background: #f8fafc;
        border-bottom: 1px solid #cbd5e1;
        box-shadow: 0 12px 20px rgba(15, 23, 42, 0.14);
    }

    .nav-actions.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .nav-actions > a,
    .nav-actions > form,
    .nav-actions > form button {
        width: 100%;
    }

    .nav-actions .nav-btn-circle {
        border-radius: 6px;
        height: 46px;
    }

    .nav-actions .nav-btn-luxury {
        min-height: 46px;
        justify-content: center;
        border-radius: 6px;
    }

    .site-main {
        min-height: calc(100vh - 68px);
    }

    .ad-detail-page {
        padding-bottom: 6.5rem !important;
    }

    .mobile-contact-bar {
        position: fixed;
        z-index: 45;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 1px;
        padding: 0.45rem max(0.45rem, env(safe-area-inset-right)) max(0.45rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
        background: #e2e8f0;
        border-top: 1px solid #cbd5e1;
        box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.14);
    }

    .mobile-contact-action {
        min-width: 0;
        min-height: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        color: white;
        background: #1e293b;
        border-radius: 5px;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .mobile-contact-action i {
        font-size: 1.1rem;
    }

    .mobile-contact-action.whatsapp {
        background: #15803d;
    }

    .mobile-contact-action.telegram {
        background: #0369a1;
    }
}
