/* ============================================================
   BASE.CSS - Variables, Reset, and Global Utilities
   ============================================================ */

/* CSS Variables */
:root {
    /* Fulgur AI Brand Colors (HSL format) */
    --purple-primary: hsl(258, 90%, 66%);
    --orange-primary: hsl(27, 94%, 54%);
    --pink-primary: hsl(330, 85%, 70%);
    --yellow-accent: hsl(45, 100%, 51%);

    /* Background Colors */
    --bg-primary: hsl(240, 20%, 8%);
    --bg-secondary: hsl(240, 15%, 12%);
    --bg-card: hsl(240, 15%, 15%);
    --bg-dark: hsl(240, 20%, 10%);

    /* Text Colors */
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(0, 0%, 70%);

    /* Border Colors */
    --border-color: rgba(139, 92, 246, 0.2);
}

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

/* Vue.js v-cloak - Hide elements until Vue is ready */
[v-cloak] {
    display: none !important;
}

/* Custom Scrollbars - Fulgur AI Style */
/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple-primary), var(--orange-primary));
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, hsl(258, 90%, 76%), hsl(27, 94%, 64%));
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--purple-primary) var(--bg-dark);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--purple-primary);
    outline-offset: 2px;
}

/* Common Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--purple-primary), var(--orange-primary));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--purple-primary);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--purple-primary);
    transform: translateY(-2px);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-primary);
    border: 1px solid var(--purple-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-small:hover {
    background: var(--purple-primary);
    color: white;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Display */
.hide {
    display: none !important;
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Gap */
.gap-05 { gap: 0.5rem; }
.gap-075 { gap: 0.75rem; }
.gap-1 { gap: 1rem; }
.gap-15 { gap: 1.5rem; }
.gap-2 { gap: 2rem; }

/* Width */
.w-full { width: 100%; }
.w-250 { width: 250px; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Size */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 0.875rem; }
.text-md { font-size: 0.9rem; }
.text-lg { font-size: 1rem; }

/* Font Family */
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-sans { font-family: 'Inter', sans-serif; }

/* Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-orange { color: var(--orange-primary); }
.text-purple { color: var(--purple-primary); }
.text-success { color: hsl(120, 60%, 50%); }
.text-error { color: hsl(0, 70%, 60%); }

/* Margins */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-2px { margin-top: 2px; }

.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mr-05 { margin-right: 0.5rem; }
.mr-1 { margin-right: 0.5rem; }
.mr-6px { margin-right: 6px; }

.ml-05 { margin-left: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }

.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

/* Links */
.link-reset {
    color: var(--text-secondary);
    text-decoration: none;
}

.link-purple {
    color: var(--purple-primary);
    text-decoration: underline;
}

.link-orange {
    color: var(--orange-primary);
    text-decoration: none;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid var(--purple-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Code blocks */
pre {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Print styles */
@media print {
    header, footer, .btn-signin, .cta-buttons {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hide-mobile {
        display: none !important;
    }
}
