/* =========================================
   1. Reset & Variables (From Creanext)
   ========================================= */
:root {
    --bg-color: #050505;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1f2937 0%, #050505 70%);
    --card-bg: rgba(30, 30, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-color: #3b82f6; /* Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --highlight-color: #eab308; /* Yellow */
    --font-main: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --header-height: 80px;

    /* Prompt Generator Specific Variables (Mapped to Creanext) */
    --bg-start: var(--bg-color);
    --bg-end: var(--bg-color);
    --accent: var(--accent-color);
    --accent-secondary: #8e54e9; /* Keeping this for gradient variety */
    --text-primary: var(--text-main);
    --shadow-soft: 0 20px 60px rgba(10, 8, 35, 0.55);
    --shadow-card: 0 10px 30px rgba(8, 12, 40, 0.4);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: var(--glass-border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--text-main);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
    box-shadow: 0 0 10px var(--accent-color);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* =========================================
   4. Prompt Generator Specific Styles
   ========================================= */
main {
    padding: 6rem clamp(1rem, 6vw, 6rem) 0;
    margin-top: var(--header-height);
}

.hero-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 4vw, 4rem);
    margin-top: 2rem;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(142, 84, 233, 0.05));
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
    filter: blur(40px);
    z-index: 0;
}

.hero-section::before {
    top: -80px;
    right: -40px;
}

.hero-section::after {
    bottom: -120px;
    left: -80px;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeSlide 1.1s ease forwards;
}

.hero-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin: 0 0 1rem;
    line-height: 1.15;
    font-weight: 800;
}

.hero-subtitle {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
    filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.orb-one {
    top: 10%;
    right: 15%;
}

.orb-two {
    bottom: 5%;
    left: 10%;
    animation-delay: 1.5s;
}

.glass-panel {
    width: min(320px, 90%);
    padding: 1.75rem;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-card);
    animation: pulse 4s ease-in-out infinite;
}

.panel-label {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.panel-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.panel-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(33, 212, 253, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
}

.panel-title {
    margin: 0;
    font-weight: 600;
}

.panel-text {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.primary-btn {
    border: none;
    cursor: pointer;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.primary-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

.primary-btn.ripple::after,
.primary-btn:active::after {
    width: 220px;
    height: 220px;
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.prompt-section {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.prompt-card {
    width: min(900px, 100%);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 30px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow-soft);
}

.prompt-card-header h2 {
    margin: 0;
    font-size: 2rem;
}

.prompt-card-header p {
    margin-top: 0.4rem;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    min-height: 150px;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    transition: border 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.5);
}

.input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.auto-category-panel {
    flex: 1;
    min-width: 280px;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-panel-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
}

.category-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #dcd9ff;
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    align-self: flex-start;
}

.category-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

.category-panel-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.generate-btn {
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}

.prompt-output-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.prompt-output-content {
    color: var(--text-muted);
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    line-height: 1.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.copy-btn {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.features-section {
    margin-top: 6rem;
    text-align: center;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-kicker {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* =========================================
   5. Footer
   ========================================= */
footer {
    background-color: #020202;
    padding: 2rem 2rem;
    margin-top: 2rem;
    border-top: var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.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;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   6. Animations & Cursor
   ========================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(8, 12, 40, 0.4); }
    50% { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.btn.ripple::after {
    animation: rippleEffect 0.6s linear forwards;
}

/* Custom Cursor - Desktop Only */
@media (hover: hover) and (pointer: fine) {
    .cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--accent-color);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease;
        mix-blend-mode: screen;
    }

    .cursor-follower {
        position: fixed;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, border-color 0.3s;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: var(--glass-border);
        display: flex;
        flex-direction: column;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    nav a {
        font-size: 1.5rem;
        display: block;
        padding: 0.5rem 0;
    }

    .header-buttons {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        order: -1;
        min-height: 250px;
    }
    .glass-panel {
        margin: 0 auto;
    }
    .input-row {
        flex-direction: column;
    }
    .auto-category-panel {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
