/* ViewFindr Dark Cinema Design System */

/* CSS Variables - Based on Brandbook */
:root {
    /* Primary Colors */
    --noir-black: #0a0a0a;
    --deep-black: #121212;
    --gold: #d4af37;
    --gold-light: #f0e68c;
    --gold-dark: #b8941e;
    --red-accent: #8b0000;

    /* Neutral Colors */
    --gray-100: #1a1a1a;
    --gray-200: #2a2a2a;
    --gray-300: #3a3a3a;
    --white: #ffffff;
    --gray-text: #cccccc;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Typography */
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

body {
    background: var(--noir-black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 300;
}

h1 {
    font-size: 4rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

h2 {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    color: var(--gold);
}

h3 {
    font-size: 1.5rem;
    color: var(--gold-light);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(180deg, var(--deep-black) 0%, var(--noir-black) 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link.active {
    color: var(--gold-light);
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-sans);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gold);
    color: var(--noir-black);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-danger {
    background: var(--red-accent);
    color: var(--white);
}

.btn-danger:hover {
    background: #a00000;
}

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

/* Cards */
.card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.card-text {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Forms */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: var(--gold-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-group input::placeholder {
    color: var(--gray-text);
    opacity: 0.5;
}

.input-group.error input {
    border-color: var(--red-accent);
}

.error-message {
    color: var(--red-accent);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

.flash-message.error {
    border-left-color: var(--red-accent);
}

.flash-message.success {
    border-left-color: var(--gold);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--noir-black), var(--deep-black));
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.login-box {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 50px;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-text);
    font-size: 1rem;
}

/* Dashboard */
.dashboard-header {
    padding: 60px 0 40px;
}

.section-header {
    border-left: 4px solid var(--gold);
    padding-left: 30px;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

/* Table */
.table-container {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gray-200);
}

th {
    padding: 20px;
    text-align: left;
    color: var(--gold-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

td {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-text);
}

tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-200);
    color: var(--gray-text);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.status-active {
    background: var(--gold);
    color: var(--noir-black);
}

.badge.status-inactive {
    background: var(--red-accent);
    color: var(--white);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-text);
    margin-bottom: 30px;
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 10px;
}

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .login-box {
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }

    .navbar-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Focus States */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
