/* ===========================================
   MIMIS.dev Global Styles
   Fonts, Colors, and Button Components
   =========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Bungee&display=swap');

/* ===========================================
   CSS Variables - Color Palette
   =========================================== */
:root {
    /* Landing Colors */
    --color-landing-purple: #a260a5;
    --color-landing-cream: #feffed;
    --color-landing-yellow: #fde008;
    
    /* Primary Colors */
    --color-primary: #667eea;
    --color-primary-dark: #3d2a6f;
    --color-secondary: #764ba2;
    
    /* Border Colors */
    --color-border-dark: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-bg: linear-gradient(45deg, #3d2a6f 0%, #667eea 25%, #764ba2 50%, #667eea 75%, #3d2a6f 100%);
    
    /* Text Colors */
    --color-text-dark: #1a1a2e;
    --color-text-light: #ffffff;
    --color-text-muted: #6c757d;
    
    /* Status Colors */
    --color-success: #4CAF50;
    --color-error: #ff6b6b;
    --color-warning: #ffc107;
    
    /* Background Colors */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-overlay: rgba(0, 0, 0, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(102, 126, 234, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Fonts */
    --default-title-font: 'Bungee', cursive;
    --font-title: var(--default-title-font);
    --font-text: 'Amatic SC', cursive;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Highlight Effect */
    --highlight-decoration: underline;
    --highlight-thickness: 2px;
    --highlight-offset: 5px;
}

/* ===========================================
   Typography
   =========================================== */
.title-font {
    font-family: var(--font-title);
}

.text-font {
    font-family: var(--font-text);
}

/* ===========================================
   Interactive Effects - Highlight
   =========================================== */
.highlight {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    transition: all var(--transition-normal);
}

/* ===========================================
   Animations - Reusable Effects
   =========================================== */

/* Border drawing animation - used by cards, buttons, etc */
@keyframes drawBorder {
    0% {
        clip-path: inset(0 100% 100% 0);
    }
    25% {
        clip-path: inset(0 0 100% 0);
    }
    50% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Lift effect - raises element on hover */
.lift-on-hover {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.lift-on-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   Button Component System
   =========================================== */

/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-text);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast), 
                box-shadow var(--transition-fast),
                background var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Primary Button - Gradient */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Secondary Button - Outline */
.btn-secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.btn-secondary:hover {
    background: var(--color-text-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Ghost Button - Minimal */
.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Button Sizes */
.btn-xsmall {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 18px;
}

.btn-medium {
    padding: 12px 30px;
    font-size: 24px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 32px;
}

.btn-xlarge {
    padding: 20px 50px;
    font-size: 36px;
}

/* ===========================================
   Utility Classes
   =========================================== */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

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

/* ===========================================
   Dark Mode Styles
   =========================================== */
body.dark-mode {
    background: linear-gradient(45deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    background-size: 200% 200%;
    animation: bg-rotate 12s infinite;
}

body.dark-mode .jobs-section {
    background-color: #0f1419;
}

body.dark-mode .job-card {
    background-color: #1a1a2e !important;
    color: #ffffff;
    border-color: #333;
}

body.dark-mode .job-title {
    color: #ffffff;
}

body.dark-mode .job-description {
    color: #cccccc;
}

body.dark-mode .job-meta-item {
    color: #cccccc;
}

body.dark-mode .search-container {
    filter: brightness(0.9);
}

body.dark-mode .jobs-cards-container {
    background-color: #0f1419;
}

/* ===========================================
   Direct Search Button
   =========================================== */
.direct-search-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 5px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0;
    padding: 0;
    z-index: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.direct-search-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.direct-search-toggle::after {
    content: 'Direct Search';
    position: absolute;
    bottom: -35px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    font-family: var(--font-system);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.direct-search-toggle:hover::after {
    opacity: 1;
}



.filter-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.filter-column-select,
.filter-input {
    padding: 10px 12px;
    font-family: var(--font-system);
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.filter-column-select {
    min-width: 150px;
    background-color: white;
    cursor: pointer;
}

.filter-input {
    flex: 1;
    min-height: 42px;
}

.filter-column-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.filter-column-select option {
    background-color: white;
    color: #333;
}

.remove-filter-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-filter-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.remove-filter-btn:active {
    transform: scale(0.95);
}

.add-filter-btn {
    display: block;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 4px;
    font-family: var(--font-system);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-filter-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.query-button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.query-send-btn,
.query-clear-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-system);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.query-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.query-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.query-send-btn:active {
    transform: translateY(0);
}

.query-clear-btn {
    background: #e0e0e0;
    color: #333;
}

.query-clear-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.query-results-container {
    margin-top: 25px;
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.query-results-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-system);
    font-size: 13px;
}

.query-results-table thead th {
    background-color: #f0f0f0;
    color: #333;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
}

.query-results-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.query-results-table tbody tr:hover {
    background-color: #f9f9f9;
}

.query-error-message {
    color: #ff6b6b;
    padding: 15px;
    margin-top: 15px;
    background-color: #ffe6e6;
    border-radius: 4px;
    font-family: var(--font-system);
    font-size: 13px;
}

.query-no-results {
    padding: 30px;
    text-align: center;
    font-family: var(--font-system);
    color: #999;
}
