/* ============================================
   DAILY REWARDS SYSTEM STYLES
   ============================================ */

.daily-reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 20000; /* Above everything else */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.daily-reward-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.daily-reward-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.2);
    transform: scale(0.9);
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    to { transform: scale(1); opacity: 1; }
}

.daily-reward-header {
    margin-bottom: 24px;
}

.daily-reward-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.daily-reward-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Streak Counter */
.streak-display-container {
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.streak-counter {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    margin-bottom: 4px;
    display: block;
}

.streak-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Day Cards Grid */
.daily-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.daily-day-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.daily-day-card.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.daily-day-card.claimed {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    opacity: 0.7;
}

.daily-day-card.today {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.1));
}

/* Big 7th Day spans full width */
.daily-day-card.day-7 {
    grid-column: span 4;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-color: #fbbf24;
}

.day-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.daily-day-card.day-7 .day-label {
    margin-bottom: 0;
    font-weight: 700;
    color: #fbbf24;
}

.reward-icon-small {
    font-size: 20px;
    margin-bottom: 4px;
}

.reward-amount-small {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.status-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    color: var(--primary);
    opacity: 0;
}

.daily-day-card.claimed .status-icon {
    opacity: 1;
}

/* Claim Button */
.claim-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.claim-btn:active {
    transform: translateY(1px);
}

.claim-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Close Button */
.daily-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.daily-close-btn:hover {
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .daily-reward-content {
        padding: 24px;
        width: 95%;
    }
    
    .streak-counter {
        font-size: 36px;
    }
}
