/* Kart Seçim Alanı */
.card-selection-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.card-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.selectable-card {
    width: 80px;
    height: 133px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.selectable-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255,255,255,0.4);
    filter: brightness(1.2);
}

.selectable-card.selected {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.8);
    border: 3px solid #ffd700;
    filter: brightness(1.3);
}

.selectable-card.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.card-number {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ffd700;
    color: #333;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.selectable-card.selected .card-number {
    display: flex;
}

/* Seçim Bilgisi */
.selection-info {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.selection-counter {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.selection-progress {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.selection-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Spread Seçimi */
.spread-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.spread-btn {
    padding: 15px 30px;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.spread-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spread-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 5px 20px rgba(255,255,255,0.4);
}

.spread-btn .spread-count {
    display: block;
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Sonuç Kartları */
.result-cards-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.result-card-container {
    perspective: 1000px;
}

.result-card {
    width: 200px;
    height: 333px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.result-card.flipped {
    transform: rotateY(180deg);
}

.result-card.reversed {
    transform: rotateY(180deg) rotateZ(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card-back {
    background-size: cover;
    background-position: center;
}

.card-front {
    transform: rotateY(180deg);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 3px solid #667eea;
}

.card-front.reversed-card {
    transform: rotateY(180deg) rotateZ(180deg);
}

.card-front img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-front h5 {
    font-size: 1rem;
    text-align: center;
    margin: 10px 0 5px 0;
    color: #333;
}

.card-front .card-type {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.card-position-label {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

/* Animasyonlar */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-card-container {
    animation: cardAppear 0.5s ease-out backwards;
}

.result-card-container:nth-child(1) { animation-delay: 0.1s; }
.result-card-container:nth-child(2) { animation-delay: 0.2s; }
.result-card-container:nth-child(3) { animation-delay: 0.3s; }
.result-card-container:nth-child(4) { animation-delay: 0.4s; }
.result-card-container:nth-child(5) { animation-delay: 0.5s; }
.result-card-container:nth-child(6) { animation-delay: 0.6s; }
.result-card-container:nth-child(7) { animation-delay: 0.7s; }
.result-card-container:nth-child(8) { animation-delay: 0.8s; }
.result-card-container:nth-child(9) { animation-delay: 0.9s; }
.result-card-container:nth-child(10) { animation-delay: 1.0s; }

/* Yorum Kutuları */
.card-interpretation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #667eea;
}

.reversed-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

.upright-badge {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .card-deck-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    
    .selectable-card {
        width: 60px;
        height: 100px;
    }
    
    .result-card {
        width: 150px;
        height: 250px;
    }
}
