/* ===============================================
   청춘드라이브 - 컴포넌트 스타일 (style-component.css)
   =============================================== */

/* ===============================================
   Hero Carousel Component - 글래스모피즘 & 모던 블롭 스타일
   =============================================== */
.hero-section {
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -100%;
    left: -100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 193, 227, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.carousel-item {
    height: 650px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* 그라디언트 배경을 더 세련되게 */
.carousel-item:nth-child(1) {
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

.carousel-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.carousel-item:nth-child(2) {
    background: linear-gradient(135deg, #48dbfb 0%, #ff6b9d 100%);
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite reverse;
    position: relative;
    overflow: hidden;
}

.carousel-item:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatBubble 25s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-100px) scale(1.2); }
}

.carousel-item:nth-child(3) {
    background: linear-gradient(135deg, #feca57 0%, #48dbfb 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    position: relative;
}

.carousel-item:nth-child(3)::before,
.carousel-item:nth-child(3)::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.carousel-item:nth-child(3)::before {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 20%;
}

.carousel-item:nth-child(3)::after {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation-delay: -15s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 오버레이를 더 부드럽게 */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
                rgba(201, 24, 74, 0.2) 0%, 
                rgba(255, 107, 157, 0.1) 50%, 
                rgba(201, 24, 74, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

/* 텍스트 컨텐츠 스타일 개선 */
.hero-content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
    z-index: 2;
    position: relative;
    padding: 50px;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.15) 0%, 
                rgba(255, 255, 255, 0.05) 100%);
    border-radius: 40px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.3s ease;
}

.hero-content:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
    background: linear-gradient(45deg, #ffffff, #fff0f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 35px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
    font-weight: 300;
}

/* 이모지 애니메이션 개선 */
.hero-emoji {
    font-size: 6rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* 버튼 스타일 개선 */
.hero-content .btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
}

.hero-content .btn i {
    margin-right: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Carousel Controls - 더 세련된 컨트롤 */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev { left: 30px; }
.carousel-control-next { right: 30px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    background-size: 50%;
}

/* 인디케이터 스타일 개선 */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    background: rgba(255, 255, 255, 0.4);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicators .active {
    background: white;
    width: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .carousel-item {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-emoji {
        font-size: 4rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev { left: 15px; }
    .carousel-control-next { right: 15px; }
}

/* ===============================================
   Feature Cards Component
   =============================================== */
.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--pink-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.3;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    color: var(--primary-color);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===============================================
   Price Cards Component
   =============================================== */
.price-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.price-card-img {
    width: 100%;
    height: 200px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.price-card-img::after {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.price-card-body {
    padding: 30px;
}

.price-card-body h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

.price-card-body .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
}

.price-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255, 99, 80, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===============================================
   Info Cards Component
   =============================================== */
.info-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15);
    transition: all 0.3s ease;
    border: 3px solid var(--pink-light);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--pink-light) 0%, transparent 70%);
    border-radius: 50%;
}

.info-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    border-color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

/* ===============================================
   Tables Component
   =============================================== */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.1);
    border: 2px solid var(--pink-light);
}

.info-table th {
    background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
    color: var(--accent-color);
    font-weight: 600;
    padding: 20px;
    text-align: center;
    border: none;
}

.info-table td {
    padding: 20px;
    background: white;
    border: none;
    vertical-align: top;
}

.info-table tr {
    border-bottom: 2px solid var(--pink-light);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: #fffcfd;
}

/* ===============================================
   Badge Components
   =============================================== */
.badge-notice {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3);
}

.badge-new {
    background: #ff8fab;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===============================================
   Process Timeline Component
   =============================================== */
.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--pink-light), var(--pink-medium), var(--pink-light));
    transform: translateX(-50%);
    border-radius: 2px;
}

.process-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.process-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-item:nth-child(odd) .process-content {
    text-align: right;
    padding-right: 50px;
    padding-left: 0;
}

.process-content {
    flex: 1;
    padding-left: 50px;
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15);
    border: 2px solid var(--pink-light);
    transition: all 0.3s ease;
}

.process-content:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    border-color: var(--primary-color);
}

.process-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
    border: 4px solid white;
   font-family:'Malgun Gothic',"맑은 고딕",AppleGothic,Dotum,"돋움", sans-serif;
}

/* ===============================================
   Pagination Component
   =============================================== */
.pagination {
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.page-link {
    color: var(--text-dark);
    border: 2px solid var(--pink-light);
    margin: 0 3px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    background: white;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
    border-radius: 25px;
    width: auto;
    padding: 0 20px;
}

/* ===============================================
   Back to Top Button Component
   =============================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#backToTop:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* ===============================================
   Component Responsive
   =============================================== */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .process-timeline::before {
        left: 30px;
    }

    .process-item {
        flex-direction: column !important;
        text-align: left !important;
    }

    .process-number {
        left: 30px;
        transform: translateX(-50%);
    }

    .process-content {
        padding-left: 80px !important;
        padding-right: 20px !important;
        text-align: left !important;
        margin-bottom: 20px;
    }
}