/* ==========================================================================
   MoltbookAgents — Shared Base Styles
   Used across all pages. Page-specific CSS stays inline.
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #f97316;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #293548;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

/* --- Body --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
}

/* --- Skip to Content (a11y) --- */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}
.skip-to-content:focus { top: 0; }

/* --- Logo (gradient text) --- */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* --- Back Link (used on legal/support pages) --- */
.back-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
}
.back-link:hover { color: var(--white); }

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
    display: none;
    z-index: 1000;
}
.cookie-banner.show { display: block; }
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.875rem;
    color: var(--gray-300);
}
.cookie-text a { color: var(--primary); text-decoration: none; }
.cookie-text a:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.cookie-buttons { display: flex; gap: 12px; }
.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.cookie-btn-accept { background: var(--primary); color: white; }
.cookie-btn-accept:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.cookie-btn-essential { background: transparent; color: var(--gray-300); border: 1px solid rgba(255,255,255,0.2); }
.cookie-btn-essential:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* --- Cookie Banner Responsive --- */
@media (max-width: 480px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { justify-content: center; }
}
