/* CSS Variables for Dark Mode - Daily Challenges */
:root {
    --dc-bg-primary: #ffffff;
    --dc-bg-secondary: #f8f9fa;
    --dc-text-primary: #333333;
    --dc-text-secondary: #6b7280;
    --dc-text-muted: #9ca3af;
    --dc-border-color: #e5e7eb;
    --dc-shadow-color: rgba(0, 0, 0, 0.1);
    --dc-hover-bg: #f3f4f6;
    --dc-hover-text: #374151;
}

.dark {
    --dc-bg-primary: #1f2937;
    --dc-bg-secondary: #374151;
    --dc-text-primary: #f9fafb;
    --dc-text-secondary: #d1d5db;
    --dc-text-muted: #9ca3af;
    --dc-border-color: #4b5563;
    --dc-shadow-color: rgba(0, 0, 0, 0.3);
    --dc-hover-bg: #4b5563;
    --dc-hover-text: #f9fafb;
}

    .ad-container {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px var(--dc-shadow-color);
        transition: transform 0.3s ease;
    }
    
    .ad-container:hover {
        transform: translateY(-2px);
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .calendar-day {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        min-height: 36px;
        color: var(--dc-text-primary);
    }
    
    .calendar-day:hover {
        background-color: var(--dc-hover-bg);
    }
    
    .calendar-day.current {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: white;
        font-weight: 700;
    }
    
    .calendar-day.completed {
        background-color: #10b981;
        color: white;
    }
    
    .calendar-day.selected {
        background: #1a7ae8;
        color: white;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    }
    
    .calendar-day.disabled {
        color: var(--dc-text-muted);
        cursor: not-allowed;
    }
    
    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .month-nav-btn {
        background: none;
        border: none;
        color: var(--dc-text-secondary);
        padding: 8px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .month-nav-btn:hover {
        background-color: var(--dc-hover-bg);
        color: var(--dc-hover-text);
    }
    
    .month-nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .trophy-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: shine 3s ease-in-out infinite;
    }
    
    @keyframes shine {
        0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
        50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }
    
    .trophy-icon-daily {
        font-size: 4.5rem;
        color: #fbbf24;
        margin-bottom: 0.75rem;
        position: relative;
        z-index: 2;
    }
    
    .solitaire-ad {
        background: linear-gradient(135deg, #059669, #047857);
        color: white;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .card-icons {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin: 10px 0;
    }
    
    .card-icon {
        width: 30px;
        height: 42px;
        background: white;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .play-button {
        background: #1a7ae8;
        border: none;
        color: white;
        padding: 12px 56px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        z-index: 2;
    }
    
    .play-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    }
    
    .play-button:disabled {
        background: linear-gradient(135deg, #9ca3af, #6b7280);
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    .daily-challenge-card {
        background: var(--dc-bg-primary);
        border-radius: 12px;
        padding: 0;
        box-shadow: 0 8px 32px var(--dc-shadow-color);
        border: 1px solid var(--dc-border-color);
        max-width: 600px;
        margin: 0 auto;
        overflow: hidden;
        display: flex;
        min-height: 400px;
        transition: all 0.3s ease;
    }
    
    .trophy-section {
        background: #1a7ae8;
        flex: 0 0 180px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .calendar-section {
        flex: 1;
        padding: 20px;
        background: var(--dc-bg-primary);
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }
    
    .challenge-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        margin-bottom: 8px;
    }
    
    .month-year {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--dc-text-primary);
        margin: 0;
    }
    
    .progress-container {
        text-align: right;
    }
    
    /* Mobile responsive */
    @media (max-width: 768px) {
        .daily-challenge-card {
            flex-direction: column;
            max-width: 100%;
        }
        
        .trophy-section {
            flex: none;
            padding: 20px;
        }
        
        .calendar-section {
            padding: 20px;
        }
        
        .challenge-title {
            font-size: 1.25rem;
        }
        
        .calendar-day {
            min-height: 32px;
            font-size: 13px;
        }
    }
    
    .progress-indicator {
        display: inline-flex;
        align-items: center;
        background: #fef3c7;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        color: #92400e;
        transition: all 0.3s ease;
    }
    
    .dark .progress-indicator {
        background: #374151;
        color: #fbbf24;
    }
