/* Music Practice SRS - Styles */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Pro:wght@300;400;600&display=swap');

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

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #c9a961;
    --accent-light: #e8d7b1;
    --text: #e8e8e8;
    --text-muted: #a8a8b8;
    --success: #4ecca3;
    --error: #e84545;
    --warning: #ffa726;
}

body {
    font-family: 'Crimson Pro', serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.author {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(201, 169, 97, 0.3);
}

/* Stats Card */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-value.highlight {
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu Actions */
.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Buttons */
.btn {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.3rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Forms */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
    font-weight: 600;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    color: var(--text);
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.measure-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Practice Session */
.practice-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.practice-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tempo-display {
    margin-bottom: 2rem;
}

.tempo-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.tempo-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.tempo-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tempo-stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
}

.tempo-stat-value.highlight {
    color: var(--accent);
}

.tempo-stat-value.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tempo-toggle {
    text-align: center;
}

.practice-prompt {
    background: rgba(201, 169, 97, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.practice-prompt p {
    margin: 0;
    font-size: 1.1rem;
}

#current-measure {
    color: var(--accent);
    font-weight: 600;
}

/* History */
.history {
    margin-top: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 0.95rem;
}

.history-item.success {
    border-color: var(--success);
}

.history-item.error {
    border-color: var(--error);
}

/* Queue & Library */
.queue-item,
.library-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.queue-item h4,
.library-item h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.item-detail {
    display: flex;
    flex-direction: column;
}

.item-detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.item-detail-value {
    color: var(--text);
    font-weight: 600;
}

.overdue {
    color: var(--error);
}

.due-soon {
    color: var(--warning);
}

/* Library Tabs */
.library-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(201, 169, 97, 0.2);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--accent-light);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Session Summary */
.session-summary {
    background: rgba(201, 169, 97, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    color: var(--text);
    font-weight: 600;
}

.summary-value.highlight {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Screens */
.screen {
    display: block;
}

.screen.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tempo-info {
        grid-template-columns: 1fr;
    }

    .measure-input-group {
        grid-template-columns: 1fr;
    }

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

    .library-tabs {
        overflow-x: auto;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
}
