/* free-rewards-styles.css */

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
    75% { opacity: 0.5; transform: scale(0.8) rotate(270deg); }
}

@keyframes coinFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(calc(100vh + 100px)) rotate(720deg); opacity: 0; }
}

@keyframes pulseShine {
    0%, 100% { box-shadow: 0 0 15px 5px rgba(255, 223, 0, 0.3), 0 0 25px 10px rgba(255, 191, 0, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 25px 10px rgba(255, 223, 0, 0.5), 0 0 40px 15px rgba(255, 191, 0, 0.3); transform: scale(1.05); }
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.free-rewards-page-bg {
    background: linear-gradient(135deg, #1a0b2e, #2c134b, #4a1d75, #2c134b, #1a0b2e);
    background-size: 400% 400%;
    animation: gradientBG 25s ease infinite;
    min-height: 100vh; /* Ensure it covers the whole screen */
    padding-bottom: 100px; /* Space for bottom nav bar */
}

.rewards-container {
    padding: 1.5rem; /* 24px */
    max-width: 600px;
    margin: 0 auto;
}

.rewards-header {
    text-align: center;
    margin-bottom: 2rem; /* 32px */
    padding-top: 1rem;
}

.rewards-title {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem; /* 40px */
    color: #fde047; /* Bright Gold */
    text-shadow: 0 0 5px #fde047, 0 0 15px #f59e0b, 0 0 25px #d97706, 2px 2px 3px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    animation: cardEnter 0.5s ease-out forwards;
}

.rewards-subtitle {
    font-size: 1.1rem; /* 18px */
    color: #e5e7eb; /* Light Gray */
    opacity: 0.9;
    animation: cardEnter 0.5s ease-out 0.1s forwards;
    opacity: 0; /* Start hidden for animation */
}

.balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem; /* 12px 20px */
    border-radius: 50px; /* pill shape */
    margin-bottom: 2rem; /* 32px */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(253, 224, 71, 0.3); /* Gold border */
    animation: cardEnter 0.5s ease-out 0.2s forwards;
    opacity: 0; /* Start hidden for animation */
}

.balance-icon {
    font-size: 1.8rem; /* 28px */
    color: #fde047; /* Gold */
    margin-right: 0.75rem; /* 12px */
    filter: drop-shadow(0 0 5px #f59e0b);
}

.balance-amount {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.reward-card {
    background: linear-gradient(145deg, rgba(55, 22, 100, 0.7), rgba(40, 15, 80, 0.85));
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    margin-bottom: 1.75rem; /* 28px */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 15px rgba(167, 139, 250, 0.1) inset;
    border: 1px solid rgba(167, 139, 250, 0.3); /* Purple border */
    animation: cardEnter 0.5s ease-out forwards;
    opacity: 0; /* Start hidden for animation */
}

.reward-card:nth-child(3) { animation-delay: 0.3s; } /* Daily Streak Card */
.reward-card:nth-child(4) { animation-delay: 0.4s; } /* Referral Card */


.card-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #e9d5ff; /* Light Purple */
    margin-bottom: 1rem; /* 16px */
    display: flex;
    align-items: center;
}
.card-title i {
    margin-right: 0.75rem; /* 12px */
    color: #c084fc; /* Medium Purple */
}

.card-description {
    font-size: 0.95rem; /* 15px */
    color: #d1d5db; /* Lighter Gray */
    margin-bottom: 1.25rem; /* 20px */
    line-height: 1.6;
}

.daily-streak-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1.5rem; /* 24px */
    padding: 0.5rem 0;
    position: relative;
}

.daily-streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem; /* 8px */
    border-radius: 0.75rem; /* 12px */
    background-color: rgba(0,0,0, 0.2);
    width: calc(100% / 7 - 10px); /* Adjust width based on gap */
    min-width: 45px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.daily-streak-day.claimed {
    background-color: rgba(253, 224, 71, 0.25); /* Goldish tint for claimed */
    border-color: rgba(253, 224, 71, 0.6);
    transform: scale(1.05);
}
.daily-streak-day.today-claimable {
    background-color: rgba(167, 139, 250, 0.3); /* Purple tint for claimable */
    border-color: rgba(167, 139, 250, 0.7);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4), 0 4px 10px rgba(0,0,0,0.3);
}

.streak-day-number {
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    color: #cbd5e1; /* Lighter gray for day number */
    margin-bottom: 0.3rem; /* 5px */
}
.daily-streak-day.claimed .streak-day-number,
.daily-streak-day.today-claimable .streak-day-number {
    color: #fff;
}


.streak-coin-icon {
    font-size: 1.6rem; /* 26px */
    color: #9ca3af; /* Muted gold for unclaimed */
    margin-bottom: 0.3rem; /* 5px */
    transition: color 0.3s ease, transform 0.3s ease;
}
.daily-streak-day.claimed .streak-coin-icon {
    color: #fde047; /* Bright Gold */
    transform: scale(1.1);
}
.daily-streak-day.today-claimable .streak-coin-icon {
    color: #fef3c7; /* Lighter Gold */
}

.streak-reward-amount {
    font-size: 0.8rem; /* 13px */
    font-weight: 700;
    color: #a7f3d0; /* Mint green for reward amount */
}
.daily-streak-day.day-7 .streak-reward-amount {
    color: #fca5a5; /* Special color for day 7 reward */
    font-weight: 800;
}
.daily-streak-day.claimed .streak-reward-amount {
    color: #fff;
}


.claim-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem; /* 18px */
    color: #1a0b2e; /* Dark Purple text */
    padding: 0.85rem 1.5rem; /* 14px 24px */
    border-radius: 0.75rem; /* 12px */
    background: linear-gradient(45deg, #fde047, #facc15); /* Gold gradient */
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3), 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.claim-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4), 0 3px 8px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}
.claim-button:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 3px 10px rgba(250, 204, 21, 0.35), 0 1px 3px rgba(0,0,0,0.2);
}
.claim-button:disabled {
    background: linear-gradient(45deg, #a1a1aa, #71717a); /* Gray gradient for disabled */
    color: #4b5563; /* Darker gray text */
    cursor: not-allowed;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.claim-button i {
    margin-right: 0.6rem; /* 10px */
}
.claim-button.loading i {
    animation: spin 1s linear infinite;
}

.referral-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.15);
    padding: 0.75rem 1rem; /* 12px 16px */
    border-radius: 0.5rem; /* 8px */
    margin-bottom: 1rem; /* 16px */
}
.referral-count-text, .referral-reward-text {
    font-size: 0.9rem; /* 14px */
    color: #e5e7eb;
}
.referral-count-text strong, .referral-reward-text strong {
    font-weight: 700;
    color: #a7f3d0; /* Mint green */
}

.coin-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.animated-coin {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FDE047"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v2.28c.47-.17.97-.28 1.5-.28 1.66 0 3 1.34 3 3s-1.34 3-3 3c-.53 0-1.03-.11-1.5-.28V15H9c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1zm1.5 6c.83 0 1.5-.67 1.5-1.5S13.33 10 12.5 10s-1.5.67-1.5 1.5.67 1.5 1.5 1.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: coinFall 4s linear forwards; /* Duration can be adjusted */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.sparkle-effect-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff3a0; /* Light yellow for sparkles */
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 0.8s ease-out forwards;
}
.sparkle.s1 { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle.s2 { top: 20%; left: 80%; animation-delay: 0.1s; width: 10px; height: 10px; }
.sparkle.s3 { top: 70%; left: 10%; animation-delay: 0.2s; width: 18px; height: 18px; }
.sparkle.s4 { top: 80%; left: 70%; animation-delay: 0.05s; }
.sparkle.s5 { top: 40%; left: 50%; animation-delay: 0.15s; width: 12px; height: 12px; }
.sparkle.s6 { top: 50%; left: 30%; animation-delay: 0.25s; background-color: #ffe660; }
.sparkle.s7 { top: 30%; left: 65%; animation-delay: 0.1s; width: 8px; height: 8px; }
.sparkle.s8 { top: 60%; left: 85%; animation-delay: 0.18s; background-color: #fff9c0; }


.next-claim-timer {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-align: center;
    margin-top: 0.75rem;
    background-color: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.next-claim-timer strong {
    color: #a7f3d0;
}
