/* ===== MOBILE-FIRST CSS ===== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== HEADER ===== */
.header {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* ===== INFO SECTION ===== */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section details {
    cursor: pointer;
}

.info-section summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    user-select: none;
    padding: 0.5rem 0;
}

.info-section summary:hover {
    color: #764ba2;
}

.info-content {
    padding-top: 1rem;
    color: #555;
    line-height: 1.7;
}

.info-content h3 {
    font-size: 1rem;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

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

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

.info-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info-content a:hover {
    text-decoration: underline;
}

/* ===== INPUT SECTION ===== */
.input-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-section label {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.input-section input {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== BUTTONS ===== */
.button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.button-primary:active {
    transform: scale(0.98);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.button-secondary {
    background: #f0f0f0;
    color: #333;
    width: 100%;
}

.button-secondary:hover {
    background: #e0e0e0;
}

.button-nav {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.button-nav:hover {
    background: #667eea;
    color: white;
}

/* ===== HOUR SECTION ===== */
.hour-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.hour-display {
    flex: 1;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.result-seat {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 700;
    color: #764ba2;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* ===== TABLET/DESKTOP IMPROVEMENTS ===== */
@media (min-width: 640px) {
    .container {
        max-width: 700px;
        padding: 2rem;
        gap: 2rem;
    }

    .header {
        padding: 2.5rem 2rem;
    }

    .header h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .input-section,
    .info-section,
    .hour-section,
    .results-section {
        padding: 2rem;
    }

    .input-section {
        gap: 1.25rem;
    }

    .hour-section {
        gap: 1.5rem;
    }

    .button {
        font-size: 1.1rem;
        padding: 1.1rem;
    }

    .result-item {
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .result-name {
        font-size: 1.2rem;
    }

    .result-seat {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }

    body {
        padding: 2rem 0;
    }
}
