/*
|--------------------------------------------------------------------------
| GLOBAL THEME STYLESHEET (css/style.css)
|--------------------------------------------------------------------------
|
| DESCRIPTION:
|   This is the master design file. It controls the entire look and feel
|   of the website through CSS Variables.
|   THEME: Dark Mode (Black & Yellow)
|
*/

:root {
    /* --- BRAND COLORS (Black & Yellow Theme) --- */
    --color-primary: #FFE135;       /* Bright Banana Yellow */
    --color-primary-hover: #FCD34D; /* Lighter Yellow/Gold for hover */
    --color-text-on-primary: #111827; /* Dark text on yellow background */

    /* --- BACKGROUNDS --- */
    --color-bg: #111827;            /* Deep Dark Blue/Gray (Page Background) */
    --color-card: #1F2937;          /* Dark Gray (Card/Modal Background) */
    --color-border: #374151;        /* Dark Gray (Borders) */
    
    /* --- TYPOGRAPHY --- */
    --color-text-main: #F9FAFB;     /* White/Light Gray (Main Text) */
    --color-text-muted: #9CA3AF;    /* Muted Gray (Secondary Text) */
    --color-accent: #FFE135;        /* Yellow Accent */
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* --- SHAPES --- */
    --radius-sm: 0.5rem;    /* Slightly rounder */
    --radius-md: 1rem;      /* Soft corners */
    --radius-lg: 1.5rem;    /* Very friendly, rounded cards */
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6; /* Increased line height for readability */
    font-size: 18px;  /* Larger base font size */
}

h1, h2, h3 { font-family: var(--font-heading); }

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem; /* Larger touch targets */
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
    box-shadow: 0 4px 6px -1px rgba(255, 225, 53, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(255, 225, 53, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-border); 
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: #374151; /* Dark gray hover */
    border-color: #4B5563;
    color: white;
}

/* --- Form Elements --- */
input, textarea, select {
    width: 100%;
    padding: 1rem; 
    background: #111827; /* Dark input background */
    color: white;
    border: 2px solid var(--color-border); 
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 225, 53, 0.2);
}

/* --- Modal Base --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); /* Darker overlay for contrast */
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid var(--color-border);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 2rem; 
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.5rem;
}
.close-modal:hover { color: white; }