/**
 * 추천인 프로그램 스타일
 */

.referral-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 80px 20px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.referral-section::before {
    content: '🎁';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    animation: float-gift 6s ease-in-out infinite;
}

@keyframes float-gift {
    0%, 100% { transform: translate(-50%, -50%) rotate(-15deg); }
    50% { transform: translate(-50%, -55%) rotate(-20deg); }
}

.referral-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.referral-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 60px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.referral-header {
    text-align: center;
    margin-bottom: 50px;
}

.referral-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.referral-title {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.referral-subtitle {
    font-size: 1.2em;
    color: #64748b;
    line-height: 1.6;
}

.referral-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.referral-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.referral-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.referral-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #4facfe, #00f2fe);
}

.referral-step:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
}

.step-number {
    font-size: 2em;
    font-weight: 800;
    color: #4facfe;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2em;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.5;
}

.referral-rewards {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4b3 100%);
    padding: 30px;
    border-radius: 20px;
    border: 3px dashed #f59e0b;
}

.rewards-title {
    font-size: 1.5em;
    color: #d97706;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-bottom: 15px;
}

.reward-icon {
    font-size: 2em;
}

.reward-text strong {
    color: #d97706;
    font-weight: 700;
    font-size: 1.1em;
}

.reward-text p {
    color: #78350f;
    font-size: 0.9em;
    margin-top: 5px;
}

.referral-link-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.link-label {
    font-size: 1.1em;
    font-weight: 700;
    color: #475569;
    margin-bottom: 15px;
}

.link-input-group {
    display: flex;
    gap: 15px;
}

.link-input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #cbd5e1;
    border-radius: 15px;
    font-size: 1em;
    background: white;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.link-input:focus {
    outline: none;
    border-color: #4facfe;
}

.copy-btn {
    padding: 18px 40px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-radius: 20px;
}

.stat-box-number {
    font-size: 2.5em;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 5px;
}

.stat-box-label {
    font-size: 0.9em;
    color: #64748b;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 968px) {
    .referral-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .referral-section {
        padding: 60px 15px;
    }
    
    .referral-card {
        padding: 40px 25px;
    }
    
    .referral-title {
        font-size: 1.8em;
    }
    
    .referral-subtitle {
        font-size: 1em;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
}

/* 복사 성공 애니메이션 */
.copy-success {
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #10b981, #059669);
    }
    100% {
        transform: scale(1);
    }
}
