/* LIONS Hartzer Hudl - Stylesheet */
:root {
    --primary: #1a5632;
    --primary-light: #2d8a4e;
    --accent: #f59e0b;
    --danger: #dc2626;
    --success: #16a34a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 56px;
}
.nav-brand a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.nav-links li a,
.nav-links .nav-user span {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 1rem 0.75rem;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-links li a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-user { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: var(--radius);
    min-width: 150px;
    z-index: 100;
    list-style: none;
}
.dropdown-menu li a {
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
}
.dropdown-menu li a:hover { background: var(--gray-100) !important; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    width: 100%;
}

/* Typography */
h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #d97706; }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: white;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,86,50,0.15); }
select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    gap: 0.75rem;
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Tables */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}
th { background: var(--gray-100); font-weight: 600; color: var(--gray-700); white-space: nowrap; }
tr:hover { background: var(--gray-50); }

/* YouTube Player */
.yt-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: #000;
}
.yt-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Media Controls */
.media-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.media-controls .btn { flex: 1; justify-content: center; font-size: 1rem; padding: 0.6rem; }
.btn-play { background: #2196F3; color: white; }
.btn-play:hover { background: #1976D2; }
.btn-play.paused { background: #FF9800; }
.btn-play.paused:hover { background: #F57C00; }
.btn-seek { background: #607D8B; color: white; }
.btn-seek:hover { background: #455A64; }

/* Timestamp display */
.timestamp-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Play form section */
.play-form { margin-top: 1rem; }
.play-form .card { border-left: 3px solid var(--primary); }

/* Queue items */
.queue-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: grab;
}
.queue-item:active { cursor: grabbing; }
.queue-item .drag-handle { color: var(--gray-300); font-size: 1.2rem; }
.queue-item .queue-info { flex: 1; font-size: 0.85rem; }

/* Filter panel */
.filter-panel {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: var(--primary); color: white; }
.badge-accent { background: var(--accent); color: white; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Login page */
.login-wrap {
    max-width: 400px;
    margin: 3rem auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-bottom: 0.5rem;
    }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 0.75rem 0; }
    .nav-user { margin-left: 0; padding: 0.5rem 0; }
    .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.05); }
    .dropdown-menu li a { color: rgba(255,255,255,0.85) !important; padding-left: 1.5rem !important; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .media-controls { flex-wrap: wrap; }
    .media-controls .btn { min-width: calc(33% - 0.5rem); }
    .filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .filter-grid { grid-template-columns: 1fr; }
    .container { padding: 1rem 0.5rem; }
}

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.85rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.hidden { display: none; }
