/* ----------------------------------------
   Style Guide - Dark Mode Theme
   Modern Minimalist Design
   ---------------------------------------- */

/* ----------------------------------------
   Font Imports
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------
   Root Variables - Color Scheme
   ---------------------------------------- */
:root {
    /* Primary Colors */
    --color-background: #0D0D0D;
    --color-background-subtle: rgba(255, 255, 255, 0.05);
    --color-background-elevated: rgba(26, 26, 26, 0.95);
    --color-primary: #2328FF;
    --color-primary-subtle: rgba(35, 40, 255, 0.2);
    --color-secondary: #2328FF;
    
    /* Text Colors */
    --color-text-primary: #E5E5E5;
    --color-text-secondary: #A0A0A0;
    
    /* Special Colors */
    --color-keyword-bubble: #FFD700;
    --color-delete: #FF4D4D;
    --color-accent: #A1FFAA;
    
    /* Border Colors */
    --color-border-subtle: rgba(255, 255, 255, 0.1);
    
    /* Overlay Colors */
    --color-overlay: rgba(13, 13, 13, 0.8);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2328FF 0%, #6164ff 100%);
    --gradient-hover: linear-gradient(135deg, #1E22E6 0%, #9799ff 100%);
    
    /* Transition Timings */
    --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
.font-heading {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
}

.font-body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

/* ----------------------------------------
   Dark Mode Base Styles
   ---------------------------------------- */
body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
}

/* ----------------------------------------
   Interactive Elements
   ---------------------------------------- */
.btn {
    transition: all var(--transition-standard);
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ----------------------------------------
   Card Styles
   ---------------------------------------- */
.card {
    background: var(--color-background-subtle);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-subtle);
    border-radius: 1rem;
    transition: transform var(--transition-standard),
                box-shadow var(--transition-standard);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

/* ----------------------------------------
   Input Styles
   ---------------------------------------- */
.input {
    background: var(--color-background-subtle);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-primary);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-standard);
}

.input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary-subtle);
}

/* ----------------------------------------
   Modal Styles
   ---------------------------------------- */
.modal-overlay {
    background: var(--color-overlay);
    backdrop-filter: blur(5px);
}

.modal-container {
    background: var(--color-background-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------
   Tag Styles
   ---------------------------------------- */
.tag {
    background: var(--color-keyword-bubble);
    color: var(--color-background);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ----------------------------------------
   Checkbox Styles
   ---------------------------------------- */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-standard);
}

.custom-checkbox:checked {
    background: var(--color-primary);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* ----------------------------------------
   Scrollbar Customization
   ---------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background-subtle);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.bg-primary-subtle {
    background-color: var(--color-primary-subtle);
}

.text-accent {
    color: var(--color-accent);
}

.text-delete {
    color: var(--color-delete);
}

/* ----------------------------------------
   Animation Keyframes
   ---------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ----------------------------------------
   Responsive Utilities
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .hidden-mobile {
        display: none !important;
    }
}

/* ----------------------------------------
   Accessibility Enhancements
   ---------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
