:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #131a24;
    --bg-card: #1a2332;
    --border: #3d4f66;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --accent-blue: #6cb6ff;
    --accent-green: #56d364;
    --accent-yellow: #e3b341;
    --accent-purple: #bc8cff;
    --accent-red: #ff7b72;
    --accent-orange: #f0883e;
    --accent-cyan: #56d4dd;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation - Mobile First */
nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    list-style: none;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0.75rem;
}

/* Header */
header {
    text-align: center;
    padding: 1.5rem 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    background: rgba(240, 136, 62, 0.15);
    color: var(--accent-orange);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.25rem;
}

.badge.filming {
    background: rgba(86, 211, 100, 0.15);
    color: var(--accent-green);
}

.badge.youpick {
    background: rgba(188, 140, 255, 0.15);
    color: var(--accent-purple);
}

/* Stats Bar - Mobile Optimized */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Section */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title .icon {
    font-size: 1.5rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Grid - Mobile First */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* Buttons - Touch Friendly */
.btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
    margin: 0.5rem 0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

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

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

/* Priority badges */
.priority {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority.must-have {
    background: rgba(86, 211, 100, 0.15);
    color: var(--accent-green);
}

.priority.should-have {
    background: rgba(227, 179, 65, 0.15);
    color: var(--accent-yellow);
}

.priority.nice-to-have {
    background: rgba(108, 182, 255, 0.15);
    color: var(--accent-blue);
}

/* Table - Mobile Optimized */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}

th, td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--accent-orange);
    position: sticky;
    top: 0;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(240, 136, 62, 0.05);
}

/* Shot tracking checkbox - Touch Friendly */
.shot-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--accent-green);
}

.shot-row.completed {
    opacity: 0.6;
    background: rgba(86, 211, 100, 0.05);
}

.shot-row.completed td {
    text-decoration: line-through;
}

/* Filters - Mobile Stacked */
.filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-group select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
}

/* Progress indicator */
.progress-container {
    margin: 1rem 0;
}

.progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), #2ea043);
    transition: width 0.3s;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Teleprompter Styles */
.teleprompter-container {
    background: #000;
    color: #fff;
    padding: 2rem 1rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.teleprompter-text {
    font-size: 1.5rem;
    line-height: 2;
    text-align: center;
}

.teleprompter-text p {
    margin-bottom: 1.5rem;
}

.teleprompter-text .section-break {
    border-top: 2px solid var(--accent-orange);
    margin: 2rem 0;
    padding-top: 1rem;
}

.teleprompter-text .section-label {
    color: var(--accent-orange);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.teleprompter-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.teleprompter-controls button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.teleprompter-controls button.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* Day Cards */
.day-card {
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.day-card.monday {
    border-left-color: var(--accent-cyan);
}

.day-card.tuesday {
    border-left-color: var(--accent-purple);
}

.day-card.wednesday {
    border-left-color: var(--accent-green);
}

/* Quick Reference Cards */
.quick-ref-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.quick-ref-item strong {
    color: var(--accent-orange);
}

/* Content pages */
.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.content-page h2 {
    color: var(--accent-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page h3 {
    color: var(--accent-purple);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page ul, .content-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page blockquote {
    border-left: 4px solid var(--accent-orange);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        border-bottom: none;
        padding: 0;
        gap: 0.5rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    header {
        padding: 2rem 1rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .btn {
        display: inline-block;
        width: auto;
    }
    
    .filters {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-group {
        width: auto;
    }
    
    .filter-group select {
        flex: none;
    }
    
    .teleprompter-text {
        font-size: 2rem;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print styles */
@media print {
    nav {
        display: none;
    }
    
    .btn {
        display: none;
    }
    
    .filters {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card, table {
        border: 1px solid #ccc;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    color: var(--text-secondary);
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
}
