/* assets/style.css - Emerald & Purple SaaS Theme */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --accent: #10b981; /* Emerald Green */
    --accent-purple: #8b5cf6; /* Electric Violet */
    --border: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(139, 92, 246, 0.08);
    --radius: 14px;
}

[data-theme="dark"] {
    --bg-main: #0b0f17;
    --bg-surface: #131b2e;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --card-shadow: 0 4px 25px -2px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-primary); line-height: 1.6; transition: background-color 0.3s, color 0.3s; overflow-x: hidden; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Announcement Bar & Header */
.top-bar { background: linear-gradient(135deg, var(--accent), var(--accent-purple)); color: #fff; text-align: center; padding: 8px 15px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }
header { background: var(--bg-surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }

/* DESKTOP NAVBAR LAYOUT (UNCHANGED) */
.nav-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 65px; 
    gap: 15px;
}

.logo { 
    font-size: 1.2rem; 
    font-weight: 800; 
    color: var(--text-primary); 
    text-decoration: none; 
    letter-spacing: -0.5px;
    white-space: nowrap; 
}
.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    gap: 20px; 
    list-style: none; 
    align-items: center; 
    margin: 0;
    padding: 0;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-weight: 500; 
    font-size: 0.88rem; 
    transition: color 0.2s; 
    white-space: nowrap; 
}
.nav-links a:hover { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hide Hamburger Menu Button On Desktop */
.menu-toggle {
    display: none;
}

/* Badges & Buttons */
.badge { display: inline-block; padding: 6px 14px; background: rgba(16, 185, 129, 0.12); color: var(--accent); border-radius: 20px; font-size: 0.82rem; font-weight: 700; border: 1px solid rgba(16, 185, 129, 0.2); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #059669); color: #fff; border: none; padding: 12px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4); }
.btn-toggle { background: transparent; border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; cursor: pointer; color: var(--text-primary); font-weight: 600; font-size: 0.85rem; }

/* Grid Layouts & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 24px; margin-top: 24px; }
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--card-shadow); transition: transform 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.4); }

.adsense-placeholder { background: rgba(139, 92, 246, 0.03); border: 1px dashed var(--accent-purple); border-radius: 10px; text-align: center; padding: 15px; margin: 30px 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }

#toast { visibility: hidden; min-width: 240px; background-color: var(--accent); color: #fff; text-align: center; border-radius: 8px; padding: 12px 20px; position: fixed; z-index: 1000; bottom: 30px; right: 30px; font-weight: 600; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s, bottom 0.3s; }
#toast.show { visibility: visible; opacity: 1; bottom: 40px; }


/* ======================================================
   📱 ONLY MOBILE RESPONSIVE FIXES (DESKTOP IS UNTOUCHED)
   ====================================================== */

@media screen and (max-width: 768px) {
    .top-bar {
        font-size: 0.72rem;
        padding: 6px 10px;
        line-height: 1.3;
    }

    .nav-wrapper {
        position: relative;
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* Show Hamburger Button on Mobile */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .menu-toggle .bar {
        height: 2.5px;
        width: 100%;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Mobile Dropdown Menu Container */
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 280px; /* Smooth Dropdown Open */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 0.95rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* Cards & Grids on Mobile */
    .grid-2, .grid-3, #promptGrid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .card {
        padding: 20px 15px !important;
    }

    input[type="text"], input[type="number"], select, .btn-primary {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .prompt-code, div[style*="font-family: monospace"] {
        max-height: 180px !important;
        word-break: break-word !important;
    }
}