/**
 * Daily Login Banner Styles
 * Beautiful, modern design for the 7-day login reward system
 */

.daily-login-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 0;
    max-width: 700px;
    width: 90%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.daily-login-banner.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.daily-login-content {
    padding: 20px;
    color: white;
}

.daily-login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daily-login-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.close-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.daily-login-cycles {
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

.daily-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .daily-login-grid {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 8px;
    }
}

.daily-login-day {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.daily-login-day.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.daily-login-day.claimed {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.daily-login-day.available {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.daily-login-day.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
    }
}

.day-number {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-emoji {
    font-size: 28px;
    margin: 6px 0;
}

.day-reward {
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.day-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5722;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.daily-login-footer {
    text-align: center;
}

.claim-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.claim-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.6);
}

.claim-button:active:not(:disabled) {
    transform: translateY(0);
}

.claim-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.claim-hint {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.already-claimed {
    background: rgba(76, 175, 80, 0.2);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.already-claimed span {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.already-claimed p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.streak-info {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Success Message - In-Banner Animation */
.claim-success-message {
    margin: 0 0 15px 0;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-animation {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(129, 199, 132, 0.2));
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-animation .success-icon {
    font-size: 36px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.success-animation .success-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success-animation .cycle-complete {
    font-size: 14px;
    color: #ffd700;
    margin-top: 4px;
}

/* Overlay */
}

.cycle-complete span {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.cycle-complete p {
    margin: 0;
    font-size: 14px;
}

/* Floating button to reopen banner */
.daily-login-trigger {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-login-trigger:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

.daily-login-trigger.has-reward {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Dark overlay when banner is open */
.daily-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.daily-login-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
/* ===== CLAIM ANIMATIONS ===== */

/* Claiming state for the card */
.daily-login-day.claiming {
    animation: claimPulse 0.6s ease-out;
}

@keyframes claimPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Floating coins animation */
.floating-coin {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 10001;
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(var(--offset-x), calc(var(--offset-y) * 0.5)) scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--offset-x), var(--offset-y)) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 10001;
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(var(--rotation, 360deg));
        opacity: 0;
    }
}

/* Glow effect on claim button */
.claim-button {
    position: relative;
    overflow: hidden;
}

.claim-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.claim-button:active::before {
    width: 300px;
    height: 300px;
}