/* Quick Reading CSS for 5-Card Spread */
.quick-reading-section {
    padding: 3rem 5% 6rem 5%;
    background: linear-gradient(to bottom, #0f0518, #1a0b2e);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.quick-reading-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

.quick-reading-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.reading-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Slots */
.card-slots {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 200px;
    width: 100%;
}

.card-slot {
    width: 110px;
    height: 170px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card-slot.filled {
    border-style: solid;
    border-color: var(--primary-color);
}

/* Controls */
.reading-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.deck-pile {
    width: 100%;
    max-width: 600px;
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    margin-bottom: 2rem;
    touch-action: none;
}

.deck-pile .deck-card {
    width: 100px;
    height: 150px;
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--primary-dark);
    border-radius: 8px;
    position: absolute;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.deck-pile .deck-card:hover {
    transform: translateY(-20px) scale(1.05);
    z-index: 100;
    box-shadow: 0 0 20px var(--primary-color);
    border-color: var(--primary-color);
}

.click-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes shuffle-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px) rotate(-1deg);
    }

    75% {
        transform: translateX(5px) rotate(1deg);
    }
}

.deck-pile.shuffling {
    animation: shuffle-shake 0.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Result Area */
.quick-result {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.5s ease;
}

.quick-result h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.reading-text-content {
    color: #e0e0e0;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Visual Card in Slot */
.slot-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 10px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slot-card.revealed {
    transform: rotateY(180deg);
}

.slot-card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slot-card .face.back {
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--primary-dark);
    z-index: 2;
    transform: rotateY(0deg);
    color: var(--primary-color);
    font-size: 2.5rem;
}

.slot-card .face.front {
    background: white;
    transform: rotateY(180deg);
    color: #333;
    border: 1px solid #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-img {
    width: 100%;
    height: 85%;
    object-fit: contain;
    background: #fff;
    display: block;
}

.slot-card-name {
    height: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    background: #fff;
    color: #000;
    width: 100%;
    border-top: 1px solid #eee;
    padding: 0 4px;
    text-align: center;
}

/* Hero Integrated Styles */
.hero-reading-area {
    margin-top: 1rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.hero-game-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Deck Selector Styling */
.deck-selector-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.selector-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: bold;
}

.deck-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    border-radius: 50px;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: #000;
}

/* Question Input */
.reading-intro-grid {
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-game-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.question-input {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* Humanized Reading Layout */
.humanized-reading {
    text-align: left;
    max-width: 100%;
}

.card-vivencial-block {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.card-vivencial-block h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reading-meta {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .quick-reading-section {
        padding: 2rem 5% 4rem;
    }

    .quick-reading-header h2 {
        font-size: 1.8rem;
    }

    .card-slot {
        width: 60px;
        height: 95px;
        font-size: 1rem;
    }

    .card-slots {
        min-height: 100px;
        gap: 8px;
        padding: 0 5px;
    }

    @media (max-width: 360px) {
        .card-slot {
            width: 52px;
            height: 80px;
            font-size: 0.9rem;
        }

        .card-slots {
            gap: 5px;
        }
    }

    .deck-pile {
        height: 120px;
        margin-bottom: 1rem;
    }

    .deck-pile .deck-card {
        width: 70px;
        height: 105px;
    }

    .reading-meta {
        grid-template-columns: 1fr;
    }

    .quick-result {
        padding: 1.2rem;
    }

    .hero-reading-area {
        padding: 1rem;
    }
}