/**
 * Roses System Styles
 * Notifications, badges, and UI components
 */

/* ==================== ROSE NOTIFICATION ==================== */
.rose-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(238, 90, 36, 0.5);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.rose-notification.show {
    transform: translateX(0);
}

.rose-notification i {
    font-size: 1.5rem;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
}

/* ==================== ROSE BALANCE WIDGET ==================== */
.rose-balance-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 25px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rose-balance-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.rose-balance-widget i {
    font-size: 1.2rem;
    color: #e74c3c;
}

.rose-balance-widget span {
    font-size: 1rem;
}

/* ==================== BADGE DISPLAY ==================== */
.badges-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge-item {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* Badge levels with different colors */
.badge-item.bronze {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

.badge-item.silver {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.badge-item.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.badge-item.platinum {
    background: linear-gradient(135deg, #E5E4E2, #C0C0C0);
}

.badge-item.diamond {
    background: linear-gradient(135deg, #B9F2FF, #00CED1);
}

.badge-item.master {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
}

/* ==================== ACTIVITY STATS ==================== */
.activity-stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.activity-stats-card h5 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.stat-value.roses {
    color: #e74c3c;
}

/* ==================== MILESTONE PROGRESS ==================== */
.milestone-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.milestone-name {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.milestone-reward {
    color: #e74c3c;
    font-weight: 600;
}

.milestone-progress {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.milestone-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    transition: width 0.3s ease;
}

.milestone-completed {
    opacity: 0.7;
}

.milestone-completed .milestone-progress-bar {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

/* ==================== STREAK DISPLAY ==================== */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3);
}

.streak-badge i {
    font-size: 1.2rem;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .rose-notification {
        right: 10px;
        top: 70px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .rose-notification i {
        font-size: 1.2rem;
    }
    
    .badge-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .badge-icon {
        font-size: 1.2rem;
    }
    
    .rose-balance-widget {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .activity-stats-card {
        padding: 15px;
    }
    
    .milestone-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .rose-notification {
        right: 5px;
        left: 5px;
        top: 60px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .badges-container {
        gap: 8px;
    }
    
    .badge-item {
        padding: 6px 10px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ==================== LOADING STATES ==================== */
.roses-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
