/* ===================================
   🆕 New Update Banner & Modal
   =================================== */

/* 배너 스타일 - HOT GOLD */
.new-update-banner {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
    cursor: pointer;
    animation: pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.new-update-banner:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 165, 0, 0.5);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.banner-icon {
    font-size: 20px;
    animation: bounce 1s ease-in-out infinite;
}

.banner-text {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(255, 165, 0, 0.3);
}

.banner-click-text {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    margin-left: 4px;
    animation: blink 1.2s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 0, 100, 0.6);
    background: rgba(255, 0, 100, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.banner-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #FF4500;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.8);
}

/* 애니메이션 - HOT GOLD GLOW */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 165, 0, 0.6), 0 0 60px rgba(255, 140, 0, 0.4);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 모달 스타일 */
.update-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.update-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    font-size: 36px;
}

.modal-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 서비스 카드 그리드 */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:nth-child(1) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.card-arrow {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
}

.service-card:hover .card-arrow {
    transform: translateX(8px);
    color: #764ba2;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .new-update-banner {
        top: 70px;
        right: 15px;
        padding: 10px 18px;
        box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5), 0 0 15px rgba(255, 165, 0, 0.3);
    }
    
    .new-update-banner:hover {
        box-shadow: 0 8px 32px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 165, 0, 0.5);
    }
    
    .banner-text {
        font-size: 14px;
    }
    
    .banner-click-text {
        font-size: 11px;
        margin-left: 2px;
    }
    
    .banner-icon {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 24px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .card-title {
        font-size: 19px;
    }
    
    .card-description {
        font-size: 14px;
    }
}

/* 스크롤바 스타일 (모달) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
