/* Daily Tarot CSS - Free Reading Styles */
/* NO BODY STYLING - This is component-specific CSS only */

/* Ensure reading result cards have transparent backgrounds */
.reading-result {
    background: transparent !important;
    border: 1px solid rgba(214, 166, 81, 0.2) !important;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light) !important;
}

/* Ensure deck controls are positioned under the deck */
.deck-controls {
    display: flex;
    justify-content: center !important;
    gap: 1rem !important;
    margin: 1rem 0 !important;
    order: 2; /* Position under the deck */
}

/* Mobile styles for deck controls */
@media (max-width: 768px) {
    .deck-controls {
        flex-direction: row; /* Keep buttons inline on mobile */
        gap: 0.5rem !important;
    }
    
    .deck-controls .btn,
    .deck-controls .reading-button {
        width: auto; /* Don't force full width */
        margin: 0;
    }
}

/* Shuffle and auto-select buttons should use btn-secondary */
.shuffle-button,
.auto-select-button {
    background: var(--btn-secondary-bg, #6c757d);
    color: var(--btn-secondary-text, #fff);
    border: 1px solid var(--btn-secondary-border, #6c757d);
}

.shuffle-button:hover,
.auto-select-button:hover {
    background: var(--btn-secondary-hover-bg, #5a6268);
    border-color: var(--btn-secondary-hover-border, #545b62);
}

/* Get Reading button should use btn-primary */
.reading-button {
    background: var(--btn-primary-bg, #007bff);
    color: var(--btn-primary-text, #fff);
    border: 1px solid var(--btn-primary-border, #007bff);
}

.reading-button:hover {
    background: var(--btn-primary-hover-bg, #0056b3);
    border-color: var(--btn-primary-hover-border, #0056b3);
}

/* Back to question button should also use btn-primary */
.back-to-question {
    background: var(--btn-primary-bg, #007bff);
    color: var(--btn-primary-text, #fff);
    border: 1px solid var(--btn-primary-border, #007bff);
}

.back-to-question:hover {
    background: var(--btn-primary-hover-bg, #0056b3);
    border-color: var(--btn-primary-hover-border, #0056b3);
}

/* Ensure tarot deck stays in one row on mobile */
.tarot-deck {
    order: 1; /* Deck appears first */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap; /* Prevent wrapping to multiple rows */
    max-width: 100%;
    overflow: hidden; /* Hide overflow instead of visible */
    border-radius: 10px;
    width: 100%;
}

.free-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.reading-header {
    text-align: center;
    margin-bottom: 30px;
}

.reading-header h2 {
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reading-question {
    font-style: italic;
    color: #E6C88E;
    margin-top: 10px;
}

/* Daily Tarot Cards Container */
.daily-tarot-cards {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Daily Card Row - Alternating Layout */
.daily-card-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(44, 27, 71, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.daily-card-row.right-image {
    flex-direction: row-reverse;
}

/* Card Image Container */
.card-image-container {
    flex-shrink: 0;
    text-align: center;
    width: 200px;
}

.daily-tarot-card-image {
    width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.daily-tarot-card-image:hover {
    transform: scale(1.05);
}

.daily-tarot-card-image.card-preview {
    cursor: pointer;
}

.card-name {
    margin-top: 2rem;
    font-size: 1.25rem;
}

/* Card Description */
.card-description {
    flex: 1;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #FFFBE6;
    margin: 0;
    text-align: justify;
}

/* Reading Footer */
.reading-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background: rgba(230, 200, 142, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(230, 200, 142, 0.3);
}

.free-reading-note {
    color: #E6C88E;
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .daily-card-row {
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
        padding: 15px;
    }
    
    /* Fix order for right-image cards on mobile - always show image first */
    .daily-card-row.right-image {
        flex-direction: column !important;
    }
    
    .card-image-container {
        width: 100%;
        max-width: 180px;
        /* Ensure image always appears first on mobile */
        order: 1;
    }
    
    .card-description {
        padding: 0;
        text-align: center;
        /* Ensure description always appears second on mobile */
        order: 2;
    }
    
    .daily-tarot-card-image {
        width: 150px;
    }
    

} 