/* Braai Vibes - Main Styles */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b0e 100%);
    color: #fff;
    min-height: 100vh;
}

/* Layout */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.room-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.room-info .room-code {
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

.game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.game-clock {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 8px;
}

.game-day {
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Create/Join Game Sections */
.create-game-section,
.join-game-section {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.create-game-section h2,
.join-game-section h2 {
    margin-bottom: 20px;
    color: #f39c12;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #f39c12;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
}

/* Player List */
.player-list-section {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.player-list-section h2 {
    margin-bottom: 15px;
    color: #f39c12;
}

.player-list {
    list-style: none;
}

.player-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.player-list li.ready {
    border-left: 4px solid #27ae60;
}

.player-name {
    font-weight: 600;
}

.player-status {
    color: rgba(255,255,255,0.7);
}

/* Host Controls */
.player-actions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.player-status label {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.player-status input[type="checkbox"] {
    margin-right: 10px;
}

/* Game Screen */
.game-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.braai-scene {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.braai-scene h2 {
    margin-bottom: 15px;
    color: #f39c12;
}

.braai-placeholder {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 15px;
}

.braai-placeholder p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

.game-actions {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
}

.game-actions h2 {
    margin-bottom: 15px;
    color: #f39c12;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.action-btn {
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #f39c12;
}

.game-status {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
}

.game-status h2 {
    margin-bottom: 15px;
    color: #f39c12;
}

.phase-display,
.timer-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 1.1rem;
}

.phase-display span:first-child,
.timer-display span:first-child {
    color: rgba(255,255,255,0.7);
}

.phase-display span:last-child,
.timer-display span:last-child {
    font-weight: bold;
    color: #f39c12;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #2d1b0e;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 2px solid #e67e22;
}

.modal h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 20px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    display: flex;
    gap: 10px;
}

.spinner-circle {
    width: 20px;
    height: 20px;
    background: #f39c12;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-circle:nth-child(1) { animation-delay: -0.32s; }
.spinner-circle:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Responsive */
@media (max-width: 600px) {
    .header h1 { font-size: 2rem; }
    
    .main-content { padding: 15px; }
    
    .create-game-section, .join-game-section {
        padding: 20px;
    }
    
    .braai-placeholder { padding: 20px; }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
