/* ==========================================================================
   Lottery Odds Calculator - Gold Lucky Theme Styles
   ========================================================================== */

/* Header title white on gold */
.calculator-wrapper h1 {
    color: #ffffff;
}

/* Calculator wrapper - relative for sparkle effects */
.calculator-wrapper {
    position: relative;
    overflow: hidden;
}

/* Button icon styling */
.btn-icon {
    display: inline-block;
    font-size: 1.25rem;
    margin-right: 4px;
}

/* ==========================================================================
   Custom Settings Section
   ========================================================================== */
.custom-settings {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.custom-settings.hidden {
    display: none;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bonus-grid {
    margin-top: 16px;
}

/* ==========================================================================
   Checkbox Styling
   ========================================================================== */
.checkbox-group {
    margin-top: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--color-text-primary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #ca8a04;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
    background: #eab308;
    border-color: #ca8a04;
}

.checkbox-label input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label:hover .checkbox-custom {
    border-color: #eab308;
}

.checkbox-text {
    line-height: 1.4;
}

/* ==========================================================================
   Lottery Info Display
   ========================================================================== */
.lottery-info {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.lottery-info-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 4px;
}

.lottery-icon {
    font-size: 1.5rem;
}

.lottery-info-details {
    font-size: 0.95rem;
    color: #78350f;
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.lottery-results {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    border-radius: 16px;
    border: 2px solid #fbbf24;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lottery-results::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%
    );
    animation: shimmer 3s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.lottery-results.hidden {
    display: none;
}

/* ==========================================================================
   Odds Display
   ========================================================================== */
.odds-display {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.odds-label {
    font-size: 1rem;
    color: #92400e;
    font-weight: 500;
    margin-bottom: 8px;
}

.odds-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b45309;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(180, 83, 9, 0.2);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.odds-percentage {
    font-size: 1.25rem;
    color: #ca8a04;
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Odds Breakdown
   ========================================================================== */
.odds-breakdown {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.breakdown-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #fde68a;
}

.breakdown-item:last-of-type {
    border-bottom: none;
}

.breakdown-label {
    font-size: 0.95rem;
    color: #78350f;
}

.breakdown-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #b45309;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 0;
    margin-top: 8px;
    border-top: 2px solid #fbbf24;
}

.breakdown-total .breakdown-label {
    font-weight: 600;
    color: #92400e;
}

.breakdown-total .breakdown-value {
    font-size: 1.1rem;
    color: #b45309;
}

/* ==========================================================================
   Fun Comparisons
   ========================================================================== */
.fun-comparisons {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.comparisons-title {
    font-size: 1rem;
    font-weight: 600;
    color: #b45309;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparisons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.4;
}

.comparison-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.comparison-text strong {
    color: #b45309;
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.recalculate-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #b45309;
    color: white;
}

.recalculate-button:hover {
    background: #92400e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4);
}

.share-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    color: #b45309;
    border: 2px solid #b45309;
}

.share-trigger-btn:hover {
    background: #fef3c7;
    transform: translateY(-2px);
}

/* ==========================================================================
   Sparkle Effects
   ========================================================================== */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.sparkle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: sparkle 1.5s ease-out forwards;
}

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5) rotate(360deg);
    }
}

/* ==========================================================================
   FAQ Section (Lottery Theme Accordion)
   ========================================================================== */
.lottery-faq-section {
    margin-top: 32px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    border-radius: 20px;
    border: 2px solid #fcd34d;
}

.lottery-faq-section h2 {
    text-align: center;
    color: #b45309;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Override base FAQ styles for lottery theme */
.lottery-faq-section .faq-list {
    gap: 12px;
}

.lottery-faq-section .faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.15);
    border: 1px solid #fde68a;
    transition: all 0.3s ease;
    overflow: hidden;
}

.lottery-faq-section .faq-item[open] {
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.2);
}

.lottery-faq-section .faq-question {
    padding: 16px 20px;
    color: #b45309;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lottery-faq-section .faq-question::after {
    border-color: #b45309;
}

.lottery-faq-section .faq-question:hover {
    background: rgba(234, 179, 8, 0.08);
}

.lottery-faq-section .faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lottery-faq-section .faq-answer {
    padding: 0 20px 16px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.lottery-faq-section .faq-answer p {
    margin: 0 0 12px 0;
}

.lottery-faq-section .faq-answer p:last-child {
    margin-bottom: 0;
}

.lottery-faq-section .faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.lottery-faq-section .faq-answer ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.lottery-faq-section .faq-answer ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
}

/* Disclaimer at bottom */
.lottery-disclaimer {
    margin-top: 28px;
    padding: 16px 20px;
    background: white;
    border-radius: 30px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 2px dashed #fcd34d;
}

.lottery-disclaimer span {
    color: #eab308;
}

/* ==========================================================================
   Calculate Button Animation
   ========================================================================== */
.calculate-button {
    position: relative;
    overflow: hidden;
}

.calculate-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.calculate-button:active::after {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .odds-number {
        font-size: 1.75rem;
    }

    .odds-percentage {
        font-size: 1rem;
    }

    .breakdown-item,
    .breakdown-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .recalculate-button,
    .share-trigger-btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    /* FAQ mobile */
    .lottery-faq-section {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .lottery-faq-section h2 {
        font-size: 1.25rem;
    }

    .lottery-disclaimer {
        padding: 14px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}
