/* UNO Professional Gaming UI */
@import url('game-styles.css');

body {
    overflow: hidden !important;
}

.game-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen {
    overflow-y: auto !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

/* Bot Selection */
.bot-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.bot-btn {
    padding: 20px 40px;
    font-size: 1.3em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.bot-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Game Info */
.game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.current-player {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.current-player span {
    color: #fbbf24;
}

.game-direction {
    font-size: 2em;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Opponents Area */
.opponents-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.opponent {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    min-width: 120px;
    text-align: center;
}

.opponent.active {
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.opponent-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.opponent-cards {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 5px;
}

.opponent-card-back {
    width: 20px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Play Area */
.play-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.deck-area {
    display: flex;
    gap: 30px;
    align-items: center;
}

.deck {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.deck:hover {
    transform: scale(1.05);
}

.deck-count {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fbbf24;
}

.discard-pile {
    min-width: 100px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    width: 100px;
    height: 140px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card.disabled:hover {
    transform: none;
}

.card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5em;
}

.card.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.card.yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

.card.green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.card.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.card.wild {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.card-value {
    font-size: 2em;
}

.card-small-value {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 0.8em;
}

.card-small-value-bottom {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 0.8em;
    transform: rotate(180deg);
}

/* Player Hand */
.player-hand {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    min-height: 160px;
    max-height: 200px;
    overflow-x: auto;
}

.player-hand::-webkit-scrollbar {
    height: 6px;
}

.player-hand::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.player-hand::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Color Selector */
.color-selector {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.color-selector p {
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.color-btn {
    width: 80px;
    height: 80px;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    font-weight: 600;
    color: white;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
}

.color-btn.red {
    background: #ef4444;
}

.color-btn.yellow {
    background: #fbbf24;
    color: #1f2937;
}

.color-btn.green {
    background: #22c55e;
}

.color-btn.blue {
    background: #3b82f6;
}

/* Game Message */
.game-message {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    min-height: 30px;
    margin-top: 10px;
}

.game-message.error {
    color: #ef4444;
}

.game-message.success {
    color: #22c55e;
}

.game-message.info {
    color: #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        width: 70px;
        height: 100px;
        font-size: 1.5em;
    }
    
    .player-hand {
        gap: 5px;
    }
    
    .opponents-area {
        gap: 10px;
    }
    
    .opponent {
        min-width: 100px;
        padding: 8px 12px;
    }
}
