/* Reset för hela sidan */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Reset för scoreboard container */
.padel-scoreboard-liggande-container {
    background: #4a90e2;
    color: white;
    padding: 4px;
    font-family: Arial, sans-serif;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

/* Tar bort WordPress standardmarginaler */
.entry-content, .site-content, .content-area {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100vw !important;
}

/* Header-stil */
.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    min-height: 40px;
    gap: 4px;
}

.scoreboard-header h2 {
    margin: 0;
    font-size: 22px;
    text-align: center;
    flex: 1;
}

/* Knappstilar */
.reset-btn, .tie-btn {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    min-height: 40px;
    min-width: 70px;
    transition: background-color 0.2s;
}

.reset-btn:hover, .tie-btn:hover {
    background: #e0e0e0;
}

/* Spelarrad-stil */
.player-row {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    gap: 8px;
    min-height: 50px;
    flex: 1;
}

/* Game score container */
.game-score {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 140px;
}

/* Digital display stil */
.digital-display {
    background: #000;
    color: #ffeb3b;
    font-family: 'Digital-7', monospace;
    font-size: 38px;
    padding: 4px 8px;
    min-width: 45px;
    text-align: center;
    border-radius: 4px;
    line-height: 1;
    flex: 1;
}

/* Set-poäng container */
.set-scores {
    display: flex;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-around;
}

.set-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 45px;
}

.set-number {
    font-size: 14px;
    line-height: 1;
}

.set-display {
    font-size: 26px;
    min-width: 35px;
    padding: 2px 4px;
}

/* Kontrollknappar */
.score-btn {
    background: #2c3e50;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.score-btn:hover {
    background: #34495e;
}

.set-controls {
    display: flex;
    gap: 3px;
}

/* Spelarnamn stil */
.player-name {
    min-width: 90px;
    font-weight: bold;
    font-size: 18px;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-name:hover {
    background: rgba(255, 255, 255, 0.1);
}

.player-name.editing {
    background: #fff;
    color: #000;
    outline: none;
    border: none;
    cursor: text;
}

/* Landscape-optimering */
@media (orientation: landscape) {
    .padel-scoreboard-liggande-container {
        padding: 2px;
        gap: 2px;
        height: 100vh;
        justify-content: space-evenly;
    }
    
    .player-row {
        padding: 1px 2px;
        min-height: 45px;
        gap: 4px;
    }
    
    .scoreboard-header {
        min-height: 35px;
    }
    
    .scoreboard-header h2 {
        font-size: 20px;
    }
    
    .reset-btn, .tie-btn {
        padding: 4px 8px;
        font-size: 15px;
        min-height: 35px;
        min-width: 65px;
    }
    
    .digital-display {
        font-size: 34px;
        padding: 2px 4px;
    }
    
    .score-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .player-name {
        font-size: 16px;
        padding: 2px;
        min-width: 80px;
    }

    .game-score {
        min-width: 120px;
    }

    .set-container {
        min-width: 40px;
    }

    .set-display {
        font-size: 24px;
        min-width: 32px;
    }

    .fullscreen-btn {
        padding: 4px 8px;
        font-size: 15px;
        min-height: 35px;
        min-width: 35px;
    }
}

/* Särskild optimering för mycket låga skärmar i landscape */
@media (orientation: landscape) and (max-height: 400px) {
    .padel-scoreboard-liggande-container {
        padding: 1px;
        gap: 1px;
    }

    .scoreboard-header {
        min-height: 30px;
    }
    
    .scoreboard-header h2 {
        font-size: 18px;
    }
    
    .reset-btn, .tie-btn {
        padding: 2px 6px;
        font-size: 14px;
        min-height: 30px;
        min-width: 55px;
    }
    
    .player-row {
        min-height: 35px;
        padding: 1px;
        gap: 3px;
    }
    
    .digital-display {
        font-size: 28px;
        min-width: 32px;
    }
    
    .set-display {
        font-size: 22px;
        min-width: 28px;
    }
    
    .player-name {
        min-width: 70px;
        font-size: 15px;
        padding: 1px 2px;
    }
    
    .score-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .set-number {
        font-size: 12px;
    }

    .game-score {
        min-width: 110px;
        gap: 2px;
    }

    .set-container {
        min-width: 35px;
        gap: 1px;
    }

    .set-scores {
        gap: 4px;
    }

    .fullscreen-btn {
        padding: 2px 6px;
        font-size: 14px;
        min-height: 30px;
        min-width: 30px;
    }
}

.fullscreen-btn {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    min-height: 40px;
    min-width: 40px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: #e0e0e0;
} 