/*
Theme Name: WetFantasy Child
Theme URI: https://wetfantasyai.com/
Description: Child theme for WetFantasy AI.
Author: WetFantasy AI
Version: 1.0.0
Template: generatepress
Text Domain: wetfantasy-child
*/

/* =========================================================
   GLOBAL VARIABLES AND BASE
   ========================================================= */
:root {
    --primary: #ff0066;
    --primary-dark: #cc0052;
    --secondary: #9d00ff;
    --dark: #0a0a0f;
    --dark-light: #12121a;
    --dark-lighter: #1a1a25;
    --text: #ffffff;
    --text-muted: #a0a0b0;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    box-sizing: border-box;
}

html,
body {
    background: var(--dark) !important;
}

body {
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================================
   GENERATEPRESS BASE OVERRIDES
   ========================================================= */
.site,
.site-content,
.content-area,
.site-main,
.inside-article,
.separate-containers .site-main,
.separate-containers .inside-article {
    background: var(--dark) !important;
}

.site-content,
.separate-containers .site-main,
.inside-article,
.separate-containers .inside-article {
    margin: 0 !important;
    padding: 0 !important;
}

.content-area {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Hide GeneratePress's standard footer details, but not the custom footer. */
.site-info,
.footer-widgets {
    display: none !important;
}

/* Homepage uses custom HTML and does not need the standard WP page title. */
body.home .entry-header,
body.home .entry-title {
    display: none !important;
}

/* =========================================================
   NORMAL WORDPRESS PAGES
   ========================================================= */
body:not(.home) .site-content {
    padding-top: 140px !important;
}

.entry-header,
.entry-content,
.page-header {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.entry-header {
    max-width: 1100px;
    padding: 34px 30px 0;
}

.entry-content {
    color: #c9c9d3;
    max-width: 1100px;
    padding: 20px 30px 64px;
}

.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
    text-align: center;
}

.entry-content p {
    color: #c9c9d3;
    text-align: center;
}

.entry-content a,
.site-main a {
    color: #ff2d83;
}

.entry-content a:hover,
.site-main a:hover {
    color: #c884ff;
}

.entry-content ul,
.entry-content ol {
    display: inline-block;
    margin: 1rem auto;
    max-width: 760px;
    text-align: left;
}

.entry-content img,
.wp-block-image img {
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.wp-block-buttons {
    justify-content: center;
}

.wp-block-button__link,
button,
input[type="submit"] {
    background: var(--gradient);
    border: 0;
    border-radius: 999px;
    color: var(--text) !important;
    font-weight: 700;
}

/* Homepage: full-width custom HTML content. */
body.home .entry-content,
body.home .wp-block-html {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.wf-topbar {
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    left: 0;
    min-height: 46px;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.wf-topbar-inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
    min-height: 46px;
    padding: 0.45rem 2rem;
}

/* Clear, rectangular affiliate CTA button. */
.wf-dreambabe-link {
    align-items: center;
    background: #ff0066;
    border: 2px solid #ff8bc3;
    border-radius: 8px;
    box-shadow: 0 4px 0 #8b0038, 0 8px 18px rgba(255, 0, 102, 0.42);
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 0.45rem;
    letter-spacing: 0.03em;
    line-height: 1;
    min-height: 36px;
    padding: 0.58rem 0.95rem;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.wf-dreambabe-link:hover {
    background: #ff2d83;
    box-shadow: 0 2px 0 #8b0038, 0 11px 24px rgba(255, 0, 102, 0.62);
    color: #ffffff !important;
    transform: translateY(2px);
}

.wf-dreambabe-link:active {
    box-shadow: 0 1px 0 #8b0038;
    transform: translateY(3px);
}

.wf-dreambabe-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.wf-dreambabe-spark,
.wf-dreambabe-arrow {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1;
}

.wf-social-buttons {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.wf-follow-label {
    color: #9f9fac;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-right: 0.15rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.wf-social-button {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.36rem;
    justify-content: center;
    line-height: 1;
    min-height: 30px;
    padding: 0.42rem 0.72rem;
    text-decoration: none !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.wf-social-button:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.wf-social-button svg {
    fill: currentColor;
    height: 14px;
    width: 14px;
}

.wf-instagram {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 52%, #fcb045 100%);
    border-color: transparent;
}

.wf-tiktok {
    background: #111111;
    border-color: #25f4ee;
    box-shadow: inset -2px 0 0 #fe2c55;
}

.wf-x {
    background: #000000;
    border-color: #3b3b3b;
}

/* =========================================================
   SITE NAVIGATION
   ========================================================= */
.nav {
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    left: 0;
    padding: 1rem 2rem;
    position: fixed;
    right: 0;
    top: 46px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    z-index: 1000;
}

.nav.is-scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1400px;
}

.logo {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary) !important;
}

/* =========================================================
   SHARED BUTTONS AND LAYOUT
   ========================================================= */
.btn {
    border: none;
    border-radius: 999px;
    color: var(--text) !important;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: var(--gradient);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(255, 0, 102, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text) !important;
}

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    width: 100%;
}

.section-header {
    margin: 0 auto 4rem;
    max-width: 760px;
    text-align: center;
}

.section-header h2 {
    color: var(--text);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0 auto;
}

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */
.hero {
    align-items: center;
    background: radial-gradient(ellipse at center, var(--dark-light) 0%, var(--dark) 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 10.8rem 2rem 4rem;
    position: relative;
    text-align: center;
}

.hero::before {
    animation: pulse 15s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.1) 0%, transparent 70%);
    content: "";
    height: 200%;
    left: -50%;
    position: absolute;
    top: -50%;
    width: 200%;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.hero h1 {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.4rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    text-align: center;
}

.hero-cta,
.gallery-actions,
.social-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.eyebrow {
    color: #ff2d83 !important;
    font-size: 0.85rem !important;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem !important;
    text-transform: uppercase;
}

.hero-note {
    color: var(--text-muted) !important;
    font-size: 0.86rem !important;
    margin-top: 1.5rem !important;
}

/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */
.features,
.search-section,
.gallery-preview,
.social-section,
.cta-section {
    text-align: center;
}

.features {
    background: var(--dark-light);
    padding: 6rem 2rem;
}

.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 0, 102, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.search-section {
    background: var(--dark);
    padding: 6rem 2rem;
    position: relative;
}

.search-box {
    margin: 0 auto;
    max-width: 800px;
    position: relative;
}

.search-input {
    background: var(--dark-lighter);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text);
    font-size: 1.2rem;
    padding: 1.5rem 10rem 1.5rem 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.3);
    outline: none;
}

.search-btn {
    background: var(--gradient);
    border: none;
    border-radius: 999px;
    color: var(--text) !important;
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 2rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.search-hint {
    color: var(--text-muted);
    margin: 1.5rem auto 0;
    text-align: center;
}

.search-hint a {
    color: #ff2d83;
    font-weight: 700;
}

.gallery-preview {
    background: var(--dark-light);
    padding: 6rem 2rem;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 3 / 4;
    background: var(--dark-lighter);
    border-radius: 15px;
    color: var(--text) !important;
    cursor: pointer;
    display: block;
    overflow: hidden;
    position: relative;
    text-align: center;
    text-decoration: none !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(1.03);
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    bottom: 0;
    left: 0;
    padding: 2rem 1.5rem 1.5rem;
    position: absolute;
    right: 0;
    text-align: center;
}

.gallery-overlay h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.new-badge {
    background: var(--gradient);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    position: absolute;
    right: 1rem;
    text-transform: uppercase;
    top: 1rem;
    z-index: 2;
}

.gallery-item-coming-soon {
    align-items: center;
    background: radial-gradient(circle at 20% 20%, rgba(255, 0, 102, 0.25), transparent 44%), linear-gradient(135deg, #1a1a25, #0a0a0f);
    display: flex;
    justify-content: center;
}

.coming-soon-content {
    padding: 2rem;
    text-align: center;
}

.coming-soon-content span {
    color: #ff2d83;
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-content h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.coming-soon-content p {
    color: var(--text-muted);
    margin: 0;
}

.gallery-actions {
    margin-top: 3rem;
}

.social-section {
    background: var(--dark);
    padding: 6rem 2rem;
}

.social-link {
    align-items: center;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text) !important;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-width: 150px;
    padding: 1rem 1.5rem;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--text) !important;
    transform: translateY(-3px);
}

.cta-section {
    background: var(--gradient);
    padding: 6rem 2rem;
}

.cta-section h2 {
    color: var(--text);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--text);
    font-size: 1.3rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    opacity: 0.95;
}

.cta-section .btn {
    background: var(--dark);
    color: var(--text) !important;
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.cta-section .btn:hover {
    background: var(--dark-light);
    transform: translateY(-3px);
}

.age-warning {
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid var(--primary);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    margin: 2rem auto 0;
    max-width: 900px;
    padding: 1rem 2rem;
    text-align: center;
}

/* =========================================================
   CUSTOM SITEWIDE FOOTER
   ========================================================= */
.wf-site-footer {
    background: var(--dark-lighter);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    display: block !important;
    opacity: 1 !important;
    padding: 4rem 2rem 1.5rem;
    visibility: visible !important;
}

.wf-site-footer-inner {
    display: grid;
    gap: 3rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin: 0 auto;
    max-width: 1400px;
    text-align: left;
}

.wf-site-footer h3,
.wf-site-footer h4 {
    color: var(--text);
    margin-top: 0;
}

.wf-site-footer h3 {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wf-footer-brand p {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 360px;
}

.wf-footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wf-footer-column a {
    color: var(--text-muted) !important;
    text-decoration: none;
}

.wf-footer-column a:hover {
    color: #ff2d83 !important;
}

.wf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #777783;
    font-size: 0.85rem;
    margin: 3rem auto 0;
    max-width: 1400px;
    padding-top: 1.5rem;
    text-align: center;
}

/* Anchor links stop below the two fixed bars. */
#about,
#search,
#latest {
    scroll-margin-top: 140px;
}

/* =========================================================
   FOO GALLERY / FOOBOX ISOLATION
   Do not let global theme rules restyle plugin controls.
   ========================================================= */
.foogallery button,
.foogallery input,
.foobox button,
.foobox input,
.fbx-modal button,
.fbx-modal input {
    background: initial !important;
    border-radius: initial !important;
    color: initial !important;
    font-weight: initial !important;
}

.foobox-overlay,
.foobox,
.fbx-modal,
.fbx-lightbox,
.fbx-backdrop {
    z-index: 999999 !important;
}

/* =========================================================
   MOBILE
   One definitive mobile block: no duplicate overrides.
   ========================================================= */
@media (max-width: 768px) {
    /* Topbar: first row affiliate CTA, second row social buttons. */
    .wf-topbar {
        min-height: 112px;
    }

    .wf-topbar-inner {
        align-items: center;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        min-height: 112px;
        padding: 8px 10px;
    }

    .wf-dreambabe-link {
        font-size: 0.76rem;
        min-height: 34px;
        padding: 0.5rem 0.75rem;
    }

    .wf-social-buttons {
        justify-content: center;
        width: 100%;
    }

    .wf-follow-label {
        display: none;
    }

    .wf-social-button {
        flex: 1 1 0;
        font-size: 0.70rem;
        min-height: 34px;
        min-width: 0;
        padding: 0.45rem 0.3rem;
    }

    /* Main navigation: only logo and gallery CTA on mobile. */
    .nav {
        min-height: 78px;
        padding: 0.75rem 1rem;
        top: 112px;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.45rem;
        line-height: 1.15;
        white-space: nowrap;
    }

    .nav .btn {
        font-size: 0.78rem;
        line-height: 1.15;
        padding: 0.7rem 0.85rem;
        text-align: center;
    }

    /* Homepage begins below the fixed topbar plus navigation. */
    .hero {
        min-height: auto;
        padding: 14.5rem 1.25rem 4rem;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Normal pages begin below the fixed topbar plus navigation. */
    body:not(.home) .site-content {
        padding-top: 190px !important;
    }

    .entry-header {
        padding: 28px 20px 0;
    }

    .entry-content {
        padding: 20px 20px 50px;
    }

    .section-header h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .features,
    .search-section,
    .gallery-preview,
    .social-section,
    .cta-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .wf-site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    #about,
    #search,
    #latest {
        scroll-margin-top: 200px;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 1rem;
        padding: 1.25rem 1.25rem 4.25rem;
    }

    .search-btn {
        bottom: 8px;
        left: 8px;
        right: 8px;
        top: auto;
        transform: none;
        width: calc(100% - 16px);
    }

    .search-btn:hover {
        transform: scale(1.02);
    }

    .gallery-actions,
    .social-links {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-actions .btn,
    .social-link {
        text-align: center;
        width: 100%;
    }

    .wf-site-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wf-footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
}
/* ==================================================
   MOBILE SEARCH FORM FIX
   ================================================== */

@media (max-width: 480px) {
    .search-box {
        margin: 0 auto;
        max-width: 100%;
        padding: 0;
        width: 100%;
    }

    .search-box form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .search-input {
        background: var(--dark-lighter) !important;
        border: 2px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        height: 52px !important;
        padding: 0 16px !important;
        width: 100% !important;
    }

    .search-btn {
        background: var(--gradient) !important;
        border: 0 !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        display: block !important;
        height: 52px !important;
        margin: 0 !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    .search-btn:hover,
    .search-btn:active {
        transform: none !important;
    }
}
