/* Streak Button in Navbar */
.streak-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 20px;
    color: #ff6b00;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.streak-btn:hover::before {
    width: 200px;
    height: 200px;
}

.streak-btn:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.5);
    transform: scale(1.05);
}

.streak-btn-icon {
    font-size: 1.1rem;
    animation: flameFlicker 2s ease-in-out infinite;
}

.streak-btn-count {
    position: relative;
    z-index: 1;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

/* Streak Popup Overlay */
.streak-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.streak-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.streak-popup {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98) 0%, rgba(25, 25, 30, 0.98) 100%);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 20px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-popup-overlay.show .streak-popup {
    transform: scale(1) translateY(0);
}

.streak-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.streak-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

/* Popup Header */
.streak-popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.streak-flame-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: flameBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.6));
}

@keyframes flameBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.streak-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.streak-popup-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Streak Stats */
.streak-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.streak-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.streak-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
}

.streak-stat-card.current {
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 107, 0, 0.05);
}

.streak-stat-card.longest {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.streak-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.streak-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.streak-stat-card.current .streak-stat-value {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.streak-stat-card.longest .streak-stat-value {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.streak-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Info Section */
.streak-info {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.streak-info-title {
    color: #4a9eff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.streak-info-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Calendar */
.streak-calendar {
    margin-bottom: 16px;
}

.streak-calendar-header {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.streak-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    transition: opacity 0.3s ease;
}

.streak-calendar-day {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.streak-calendar-day.active {
    background: rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.5);
    color: #ff6b00;
}

.streak-calendar-day.active::after {
    content: '🔥';
    position: absolute;
    font-size: 1.2rem;
}

.streak-calendar-day.today {
    border-color: #4a9eff;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
}

/* Message */
.streak-message {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.streak-message i {
    color: #4a9eff;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .streak-popup {
        padding: 24px;
        max-width: 95%;
    }
    
    .streak-flame-icon {
        font-size: 3rem;
    }
    
    .streak-popup-title {
        font-size: 1.5rem;
    }
    
    .streak-stats {
        gap: 12px;
    }
    
    .streak-stat-card {
        padding: 16px;
    }
    
    .streak-stat-value {
        font-size: 2rem;
    }
    
    .streak-calendar-grid {
        gap: 6px;
    }
}

/* Scrollbar */
.streak-popup::-webkit-scrollbar {
    width: 8px;
}

.streak-popup::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.streak-popup::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 4px;
}

.streak-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.5);
}
