/* ==========================================================================
   AI Agency System - Custom Stylesheet & Design Utilities
   File: assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Theme Variables
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #020617;        /* Slate 950 */
    --bg-card: #0f172a;        /* Slate 900 */
    --border-card: #1e293b;    /* Slate 800 */
    --accent-indigo: #6366f1;  /* Indigo 500 */
    --accent-indigo-hover: #4f46e5;
    --accent-emerald: #10b981; /* Emerald 500 */
    --accent-rose: #f43f5e;    /* Rose 500 */
    --text-primary: #f8fafc;   /* Slate 50 */
    --text-muted: #94a3b8;     /* Slate 400 */
}

/* --------------------------------------------------------------------------
   2. Custom Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --------------------------------------------------------------------------
   3. Background Patterns & Mesh Effects
   -------------------------------------------------------------------------- */
.bg-grid-pattern {
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-dot-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Glowing background ambient lights */
.glow-spot-indigo {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
}

/* --------------------------------------------------------------------------
   4. Glassmorphism & Cards
   -------------------------------------------------------------------------- */
.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   5. Custom Form Controls & Elements
   -------------------------------------------------------------------------- */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background-color: #0b1329;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: #0f172a;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #475569;
}

/* --------------------------------------------------------------------------
   6. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-subtle {
    animation: pulse-subtle 3s ease-in-out infinite;
}

.skeleton-loader {
    background: linear-gradient(90deg, #0f172a 25%, #1e293b 50%, #0f172a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --------------------------------------------------------------------------
   7. Code & JSON Display Blocks
   -------------------------------------------------------------------------- */
pre, code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}

.code-block {
    background-color: #030712;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #e2e8f0;
    font-size: 0.8125rem;
    overflow-x: auto;
}
