/* Recorded Games - Mobile-First Design */

/* Main Container */
.recorded-games-container {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Page Header */
.recorded-games-container .page-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.recorded-games-container .page-header h1 {
    font-size: 28px;
    color: var(--off-yellow);
    font-weight: 600;
    margin-bottom: 8px;
}

.recorded-games-container .page-header .subtitle {
    font-size: 16px;
    color: var(--off-white);
    opacity: 0.8;
}

/* Filter Controls */
.recorded-games-container .filter-controls {
    margin-top: 20px;
    margin-bottom: 25px;
}

.recorded-games-container .filter-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recorded-games-container .username-filter {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--off-white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.recorded-games-container .username-filter::placeholder {
    color: var(--off-white);
    opacity: 0.6;
}

.recorded-games-container .username-filter:focus {
    outline: none;
    border-color: var(--lavendar);
    background: rgba(0, 0, 0, 0.15);
}

/* Games List */
.recorded-games-container .games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Game Item - Clickable Card */
.recorded-games-container .game-item {
    display: block;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.recorded-games-container .game-item:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recorded-games-container .game-item.user-game {
    border-color: var(--lavendar);
    background: rgba(217, 187, 255, 0.05);
}

.recorded-games-container .game-item.user-game:hover {
    background: rgba(217, 187, 255, 0.1);
    border-color: var(--lavendar-darker);
}

/* Game Date */
.recorded-games-container .game-date {
    font-size: 14px;
    color: var(--off-white);
    opacity: 0.7;
    margin-bottom: 15px;
    text-align: center;
}

/* Game Teams Container */
.recorded-games-container .game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* VS Container */
.recorded-games-container .vs-container {
    font-size: 14px;
    font-weight: 600;
    color: var(--off-white);
    opacity: 0.6;
    margin: 0 10px;
    text-align: center;
}

/* Team Styling */
.recorded-games-container .team {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.recorded-games-container .team.winner {
    background: rgba(255, 218, 185, 0.05);
    border-color: rgba(255, 255, 224, 0.3);
    border-width: 1px;
}

/* Player Styling */
.recorded-games-container .player {
    margin-top: 8px;
}

.recorded-games-container .player:first-child {
    margin-top: 0;
}

.recorded-games-container .player-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--off-white);
    display: block;
    margin-bottom: 4px;
}

.recorded-games-container .team.winner .player-name {
    color: var(--off-white);
    opacity: 0.95;
}

.recorded-games-container .player-elo {
    font-size: 12px;
    color: var(--off-white);
    opacity: 0.6;
    font-weight: 500;
}

/* Score Display */
.recorded-games-container .score {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.recorded-games-container .score {
    font-size: 18px;
    font-weight: 700;
    color: var(--off-yellow);
}

/* Your Game Indicator */
.recorded-games-container .your-game-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--lavendar);
    color: #333;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.recorded-games-container .no-games {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.recorded-games-container .no-games h2 {
    font-size: 24px;
    color: var(--off-yellow);
    margin-bottom: 15px;
    font-weight: 600;
}

.recorded-games-container .no-games p {
    font-size: 16px;
    color: var(--off-white);
    opacity: 0.8;
}

/* Large Phone Styles - 400px+ */
@media (min-width: 400px) {
    .recorded-games-container {
        width: auto;
        max-width: 640px;
    }

    .recorded-games-container .filter-row {
        flex-direction: row;
        align-items: center;
    }

    .recorded-games-container .username-filter {
        flex: 1;
        margin-right: 15px;
    }

    .recorded-games-container .page-header h1 {
        font-size: 32px;
    }

    .recorded-games-container .game-teams {
        margin-bottom: 20px;
    }

    .recorded-games-container .team {
        padding: 18px 15px;
    }

    .recorded-games-container .vs-container {
        font-size: 16px;
        margin: 0 15px;
    }
}

/* Tablet Styles - 768px+ */
@media (min-width: 768px) {
    .recorded-games-container {
        max-width: 800px;
    }

    .recorded-games-container .page-header h1 {
        font-size: 36px;
    }

    .recorded-games-container .page-header .subtitle {
        font-size: 18px;
    }

    .recorded-games-container .filter-controls {
        margin-bottom: 35px;
    }

    .recorded-games-container .games-list {
        gap: 20px;
    }

    .recorded-games-container .game-item {
        padding: 25px;
    }

    .recorded-games-container .game-date {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .recorded-games-container .team {
        padding: 20px;
    }

    .recorded-games-container .player-name {
        font-size: 14px;
    }

    .recorded-games-container .player-elo {
        font-size: 14px;
    }

    .recorded-games-container .score {
        font-size: 20px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .recorded-games-container .vs-container {
        font-size: 18px;
        margin: 0 20px;
    }

    .recorded-games-container .your-game-indicator {
        top: 16px;
        right: 16px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .recorded-games-container .no-games {
        padding: 80px 40px;
    }

    .recorded-games-container .no-games h2 {
        font-size: 28px;
    }

    .recorded-games-container .no-games p {
        font-size: 18px;
    }
}

/* Desktop Styles - 1024px+ */
@media (min-width: 1024px) {
    .recorded-games-container {
        max-width: 900px;
    }

    .recorded-games-container .game-item {
        padding: 30px;
    }

    .recorded-games-container .game-teams {
        margin-bottom: 25px;
    }

    .recorded-games-container .team {
        padding: 25px 20px;
    }

    .recorded-games-container .vs-container {
        font-size: 20px;
        margin: 0 25px;
    }

    .recorded-games-container .player-name {
        font-size: 15px;
    }

    .recorded-games-container .score {
        font-size: 22px;
    }
}