@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;600;800&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 50%, #1a2a3a, #0f172a);
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

.game-container {
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

/* Záhlaví */
.header {
    text-align: center;
    flex-shrink: 0;
}
.title {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #34d399, #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}
.status-bar {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    background: rgba(255,255,255,0.1);
    margin-top: 4px;
    transition: all 0.3s;
}
.status-bar.ai {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.status-bar.player {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* Rozložení karet */
.opponent-area, .player-area {
    text-align: center;
    flex-shrink: 0;
    min-height: 180px;
}
.player-label {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.cards-row {
    display: flex;
    justify-content: center;
}

/* Samotná karta (3D kontejner) */
.card-container {
    position: relative;
    width: 100px;
    height: 140px;
    margin: 0 5px;
    transition: transform 0.3s cubic-bezier(0.25, 1.5, 0.5, 1);
    perspective: 1000px;
}

/* Styl karty */
.playing-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

/* Barvy karet */
.card-heart, .card-diamond { color: #dc2626; }
.card-spade, .card-club { color: #1e293b; }

/* Rozložení symbolů na kartě */
.card-symbol-top {
    font-size: 24px;
    line-height: 1;
    align-self: flex-start;
}
.card-symbol-bottom {
    font-size: 24px;
    line-height: 1;
    align-self: flex-end;
    transform: rotate(180deg);
}
.card-value-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    font-weight: 800;
    opacity: 0.9;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* Značení nejvyšší karty balíčku (Pro UI - viz app.js) */
.playing-card.is-top {
    border: 3px solid #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

/* Efekt hratelnosti karty */
.playable {
    border: 3px solid #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
    cursor: pointer;
}
.playable:hover {
    transform: scale(1.08) translateY(-5px);
}
.stunned {
    filter: grayscale(50%) brightness(0.7);
    border-color: #ef4444 !important;
}

/* Rub karty (Lízání) */
.card-back {
    background: repeating-linear-gradient(
        45deg,
        #dc2626,
        #dc2626 10px,
        #b91c1c 10px,
        #b91c1c 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.2);
}
.card-back .deck-label {
    color: rgba(255,255,255,0.8);
    font-weight: 700;
    text-align: center;
    font-size: 14px;
    transform: rotate(-45deg);
}
.deck.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Stůl a Odhazovací balíček */
.table-area {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.discard-pile {
    position: relative;
    width: 100px;
    height: 140px;
}
.discard-pile .card-container {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1.5, 0.5, 1);
}

/* Výběr barvy */
.color-picker-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.color-picker-box {
    background: #1e293b;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}
.color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.color-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.1s;
}
.color-btn:hover { transform: scale(1.1); }
.color-btn.heart { background: #dc2626; color: white; }
.color-btn.diamond { background: #fff; color: #dc2626; border: 2px solid #dc2626; }
.color-btn.spade { background: #fff; color: #1e293b; border: 2px solid #1e293b; }
.color-btn.club { background: #1e293b; color: white; }

/* Modální okno */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-box {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.3);
}
.modal-title { font-size: 32px; margin-bottom: 10px; }
.modal-title.win { color: #10b981; }
.modal-title.lose { color: #ef4444; }
.modal-subtitle { color: #94a3b8; margin-bottom: 20px; }
.modal-btn {
    background: linear-gradient(90deg, #10b981, #34d399);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}

/* Animace */
.fade-enter-active, .fade-leave-active { transition: opacity 0.3s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }