/*
Theme Name: FuturePrompt
Theme URI: https://example.com/futureprompt
Author: Antigravity
Author URI: https://example.com
Description: An ultra-premium, futuristic WordPress theme for AI tools and prompts.
Version: 2.0.0
Text Domain: futureprompt
*/

:root {
    /* Deep Space Palette */
    --bg-void: #000000;
    --bg-depth: #020617;

    /* Neon Accents */
    --neon-cyan: #00f0ff;
    --neon-purple: #bd00ff;
    --neon-pink: #ff0055;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    /* Glassmorphism */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    /* Variables */
    --container-width: 1400px;
    --font-display: 'Inter', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-display);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Aurora Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-void);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: aurora-float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--neon-purple);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--neon-cyan);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: var(--neon-pink);
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes aurora-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* --- Typography --- */
h1,
h2,
h3 {
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.display-huge {
    font-size: clamp(3rem, 10vw, 8rem);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-main {
    padding-top: 14rem;
    /* Clear fixed header */
    padding-bottom: 4rem;
}


/* --- Floating Header --- */
.site-header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    /* Reduced max-width */
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 3rem;
    /* Slightly boxier */
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Vertical stack */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.05em;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
    position: relative;
}

.hero-tags {
    margin-top: 4rem;
    display: flex;
    gap: 1rem;
    overflow: hidden;
    opacity: 0.6;
}

.tag-pill {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    /* Increased height for better media display */
    gap: 1.5rem;
    margin: 4rem 0;
}

.bento-card {
    background: var(--glass-surface);
    border: var(--glass-border);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-out, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
}

/* Hover Reveal - Media Layer */
.card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: transform 0.5s ease;
}

.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Hover Reveal - Overlay Layer */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.9) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

/* Hover Interactions */
.bento-card:hover .card-media {
    transform: scale(1.05);
}

.bento-card:hover .card-media img,
.bento-card:hover .card-media video {
    opacity: 0.4;
    /* Darken image on hover */
}

.bento-card:hover .card-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.8) 100%);
}

/* Content visibility */
.card-content-reveal {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    height: 0;
    /* Hide initially to not take space */
    overflow: hidden;
}

.bento-card:hover .card-content-reveal {
    transform: translateY(0);
    opacity: 1;
    height: auto;
    margin-top: 1rem;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    display: block;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s;
}

.btn-arrow {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    transition: all 0.3s;
}

.bento-card:hover .btn-arrow {
    background: #fff;
    color: #000;
    transform: rotate(-45deg);
}

/* Bento Spans */
.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

/* Mobile Reset */
@media (max-width: 1024px) {

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }
}


/* --- Footer --- */
.mega-footer {
    padding: 8rem 0 4rem;
    border-top: var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
}

.footer-brand {
    font-size: 15vw;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.05);
    text-align: center;
    line-height: 0.8;
    user-select: none;
    pointer-events: none;
}

/* --- Internal Pages (Tools/Prompts) --- */
.entry-content {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.8;
}

.btn-primary {
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* --- Helpers --- */
.text-gradient {
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mobile Styles */
@media (max-width: 1024px) {

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .site-main {
        padding-top: 8rem;
    }

    /* Header Adjustments */
    .site-header {
        width: 92%;
        top: 1rem;
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        border-radius: 2rem;
    }

    .site-branding {
        z-index: 1100;
        /* Above menu overlay */
    }

    /* Mobile Menu Toggle Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        /* Above menu overlay */
    }

    .hamburger-box {
        width: 30px;
        height: 24px;
        position: relative;
    }

    .hamburger-inner {
        width: 30px;
        height: 2px;
        background-color: white;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        transition: all 0.3s ease;
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        width: 30px;
        height: 2px;
        background-color: white;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .hamburger-inner::before {
        top: -10px;
    }

    .hamburger-inner::after {
        bottom: -10px;
    }

    /* Active Hamburger State */
    .menu-toggle.active .hamburger-inner {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger-inner::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* Mobile Navigation Overlay */
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        padding-top: 4rem;
        /* Clear for close button if needed, but we rely on header button */
    }

    .main-navigation.toggled {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .main-navigation a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
    }

    /* Lock body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .display-huge {
        font-size: 3rem;
        line-height: 1.1;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-tags {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bento-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .footer-brand {
        font-size: 18vw;
    }
}

/* --- Prompt Media --- */
.prompt-example-media {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    max-height: 60vh;
    /* Constrain height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.example-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.prompt-example-media img,
.prompt-example-media video {
    width: auto;
    max-width: 100%;
    max-height: 50vh;
    /* Ensure media doesn't overflow container's mental model */
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}