/**
 * 이메일 뉴스레터 스타일
 */

.newsletter-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 80px 20px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float-circle 10s ease-in-out infinite;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float-circle 8s ease-in-out infinite reverse;
}

@keyframes float-circle {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

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

.newsletter-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);
    text-align: center;
}

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

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

.newsletter-subtitle {
    font-size: 1.2em;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.95em;
    color: #475569;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

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

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-privacy {
    margin-top: 20px;
    font-size: 0.85em;
    color: #94a3b8;
}

.newsletter-privacy a {
    color: #f5576c;
    text-decoration: none;
    font-weight: 600;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

.newsletter-success {
    background: #10b981;
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 구독자 수 카운터 */
.subscriber-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 25px;
    font-size: 1em;
    color: #10b981;
    font-weight: 700;
    margin-top: 25px;
}

.subscriber-number {
    font-size: 1.3em;
    color: #059669;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 15px;
    }
    
    .newsletter-card {
        padding: 40px 25px;
    }
    
    .newsletter-title {
        font-size: 1.8em;
    }
    
    .newsletter-subtitle {
        font-size: 1em;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
    
    .newsletter-benefits {
        grid-template-columns: 1fr;
    }
}

/* 로딩 스피너 (버튼용) */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
