/**
 * Referral Overlay Styles
 * Professional gradient design matching Share Results CTA
 */

/* Overlay Container */
.referral-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.referral-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop */
.referral-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

/* Card - Noir Luxe Design */
.referral-overlay-card {
    position: relative;
    background: linear-gradient(135deg, var(--cta-primary), var(--accent-gold-dim));
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-gold);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* REMOVED: pulse-glow animation - simpler plain design */

.referral-overlay.active .referral-overlay-card {
    transform: scale(1) translateY(0);
}

/* Close Button - White on gradient */
.referral-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-emphasis);
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.referral-overlay-close:hover {
    background: rgba(10, 10, 10, 0.8);
    transform: rotate(90deg);
}

/* Header - White text on gradient */
.referral-overlay-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.referral-overlay-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: rgba(10, 10, 10, 0.4);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.referral-overlay-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    color: var(--bg-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.referral-overlay-header p {
    font-size: 1.1rem;
    color: var(--bg-primary);
    margin: 0;
    opacity: 0.9;
}

/* Body */
.referral-overlay-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Platform Buttons - Smaller, icon-only design */
.referral-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid var(--border-emphasis);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.referral-platform-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--bg-surface);
    border: 2px solid var(--border-emphasis);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.referral-platform-btn span {
    display: none; /* Hide text labels for cleaner look */
}

.referral-platform-btn i {
    font-size: 1.5rem;
}

.referral-platform-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Platform-specific colors */
.referral-platform-btn.whatsapp i {
    color: #25D366;
}

.referral-platform-btn.facebook i {
    color: #1877F2;
}

.referral-platform-btn.x i {
    color: #000000;
}

.referral-platform-btn.pinterest i {
    color: #E60023;
}

.referral-platform-btn.instagram i {
    color: #E4405F;
}

.referral-platform-btn.email i {
    color: var(--secondary-color);
}

/* Copy Button - Noir Luxe */
.referral-copy-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.referral-copy-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 112, 0.4);
}

.referral-copy-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.referral-copy-btn:hover i {
    transform: scale(1.2);
}

/* Notification */
.referral-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.referral-notification.active {
    opacity: 1;
    transform: translateX(0);
}

.referral-notification i {
    font-size: 1.5rem;
}

.referral-notification-success {
    border-left: 4px solid #4caf50;
}

.referral-notification-success i {
    color: #4caf50;
}

.referral-notification-error {
    border-left: 4px solid #f44336;
}

.referral-notification-error i {
    color: #f44336;
}

.referral-notification-info {
    border-left: 4px solid #2196f3;
}

.referral-notification-info i {
    color: #2196f3;
}

.referral-notification span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .referral-overlay-card {
        padding: 2.5rem 2rem;
        max-width: 95%;
    }

    .referral-overlay-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .referral-overlay-header h2 {
        font-size: 1.8rem;
    }

    .referral-overlay-header p {
        font-size: 1rem;
    }

    .referral-platforms {
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .referral-platform-btn {
        width: 48px;
        height: 48px;
    }

    .referral-platform-btn i {
        font-size: 1.3rem;
    }

    .referral-copy-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .referral-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .referral-overlay-card {
        padding: 2rem 1.5rem;
    }

    .referral-overlay-header h2 {
        font-size: 1.5rem;
    }

    .referral-overlay-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .referral-platforms {
        gap: 0.5rem;
    }

    .referral-platform-btn {
        width: 44px;
        height: 44px;
    }

    .referral-platform-btn i {
        font-size: 1.2rem;
    }
}
