/* Par Spil - Complete Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   TV Interface Styles
   ========================================================================== */

.tv-interface {
    display: none;
    text-align: center;
}

.game-header {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.game-code {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    margin: 20px auto;
    border-radius: 10px;
    display: block;
    padding: 10px;
}

.current-content {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    min-height: 300px;
}

.question-text {
    font-size: 2.5em;
    margin-bottom: 30px;
    line-height: 1.2;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.option {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.5em;
    border: 3px solid transparent;
}

.action-text {
    font-size: 2em;
    margin-bottom: 20px;
    line-height: 1.3;
}

.scores {
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.couple-score {
    text-align: center;
    padding: 15px 25px;
    border-radius: 10px;
    min-width: 150px;
    flex: 1;
    min-width: 140px;
}

.couple-1 { background: #ff6b6b; }
.couple-2 { background: #4ecdc4; }
.couple-3 { background: #45b7d1; }
.couple-4 { background: #f9ca24; }

.couple-names {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.couple-points {
    font-size: 2em;
    font-weight: bold;
}

/* Results display */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.results-section {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
}

.results-section h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.answer-item {
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.correct-guess {
    background: rgba(46, 204, 113, 0.3);
    border: 2px solid #2ecc71;
}

.incorrect-guess {
    background: rgba(231, 76, 60, 0.3);
    border: 2px solid #e74c3c;
}

/* ==========================================================================
   Phone Interface Styles
   ========================================================================== */

.phone-interface {
    display: none;
    max-width: 400px;
    margin: 0 auto;
}

.phone-header {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.player-info {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.phone-content {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.phone-option {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin: 8px 0;
    text-align: left;
}

.phone-option:hover {
    background: rgba(255,255,255,0.3);
}

.phone-option.selected {
    background: #4ecdc4;
    border: 2px solid white;
}

/* ==========================================================================
   Setup & Join Interface Styles
   ========================================================================== */

.setup-interface {
    display: block;
    text-align: center;
}

.setup-form, .join-form {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.join-interface {
    display: none;
    text-align: center;
}

.join-form {
    max-width: 400px;
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.9);
    color: #333;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.create-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.create-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.create-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Button variations */
.btn-accept { background: #2ecc71; }
.btn-decline { background: #e74c3c; }
.btn-complete { background: #f39c12; }
.btn-next { background: #3498db; }

.btn-accept:hover { background: #27ae60; }
.btn-decline:hover { background: #c0392b; }
.btn-complete:hover { background: #e67e22; }
.btn-next:hover { background: #2980b9; }

/* ==========================================================================
   Status & State Indicators
   ========================================================================== */

.status-indicator {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.status-setup { background: #f39c12; }
.status-playing { background: #2ecc71; }
.status-finished { background: #e74c3c; }

.round-indicator {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #f39c12;
}

.instruction-text {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.waiting-message {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* Success/Error states */
.success-state {
    background: rgba(46, 204, 113, 0.2) !important;
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.error-state {
    background: rgba(231, 76, 60, 0.2) !important;
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

/* ==========================================================================
   Animations & Loading
   ========================================================================== */

.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .question-text {
        font-size: 1.8em;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scores {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-code {
        font-size: 2em;
    }
    
    .container {
        padding: 10px;
    }
    
    .current-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .phone-interface {
        padding: 0 10px;
    }
    
    .phone-content {
        padding: 20px;
        margin-bottom: 10px;
    }
    
    .phone-option {
        padding: 12px;
        font-size: 1em;
    }
    
    .create-btn {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    
    .setup-form, .join-form {
        padding: 20px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .phone-interface, .tv-interface, .setup-interface, .join-interface {
        display: none;
    }
}