/**
 * Dashboard Improvements CSS
 * Referral program, achievements, recommended products
 */

/* ============================================
   Referral Program Banner
   ============================================ */
.referral-program-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.referral-program-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.referral-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffffff;
    flex-shrink: 0;
    animation: pulse-glow 2s ease-in-out infinite;
}

.referral-content {
    flex: 1;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.referral-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.referral-content > p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.referral-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.referral-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 14px;
    font-family: monospace;
}

.referral-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.referral-link-box .btn {
    padding: 12px 24px;
    background: #ffffff;
    color: #6366f1;
    font-weight: 600;
    transition: all 0.3s ease;
}

.referral-link-box .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.referral-stats {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    gap: 25px;
    margin: 0;
}

.referral-stats strong {
    color: #fbbf24;
}

.referral-stats i {
    margin-right: 5px;
}

/* ============================================
   Achievement Badges
   ============================================ */
.achievements-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.achievements-section h3 {
    color: #1f2937;
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievements-section h3 i {
    color: #f59e0b;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.achievement-badge {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: default;
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-badge.locked {
    opacity: 0.6;
    border-style: dashed;
}

.achievement-badge.locked .badge-icon {
    background: #9ca3af !important;
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.badge-info strong {
    color: #1f2937;
    font-size: 14px;
}

.badge-info span {
    color: #6b7280;
    font-size: 12px;
}

/* ============================================
   Recommended Section
   ============================================ */
.recommended-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommended-section h3 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommended-section h3 i {
    color: #fbbf24;
}

.recommended-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.recommended-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommended-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.recommended-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.recommended-details {
    flex: 1;
}

.recommended-details h4 {
    color: #1f2937;
    font-size: 18px;
    margin-bottom: 8px;
}

.recommended-platform {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.recommended-platform i {
    color: #6366f1;
}

.recommended-category {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.recommended-category i {
    color: #f59e0b;
}

.recommended-price {
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 15px;
}

.recommended-action {
    margin-top: auto;
}

.recommended-action .btn {
    width: 100%;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .recommended-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .referral-program-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .referral-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .referral-content h3 {
        font-size: 20px;
    }

    .referral-link-box {
        flex-direction: column;
    }

    .referral-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievements-section {
        padding: 20px;
    }

    .recommended-section {
        padding: 30px 20px;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .referral-program-banner {
        padding: 25px 15px;
    }

    .referral-content h3 {
        font-size: 18px;
    }

    .referral-content > p {
        font-size: 14px;
    }

    .referral-input {
        font-size: 12px;
        padding: 10px 12px;
    }

    .achievement-badge {
        padding: 15px;
    }

    .badge-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .badge-info strong {
        font-size: 13px;
    }

    .recommended-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .recommended-details h4 {
        font-size: 16px;
    }
}
