/* ===============================================
   낭만드라이브 - 컴포넌트 스타일 (style-component.css)
   =============================================== */

/* ===============================================
   Hero Carousel Component
   =============================================== */
.hero-section {
    margin-top: 76px;
    position: relative;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item:nth-child(1) {
    background: linear-gradient(135deg, #ffc0db 0%, #e8d5ff 100%);
}

.carousel-item:nth-child(2) {
    background: linear-gradient(135deg, #ffe0ee 0%, #ffc0db 100%);
}

.carousel-item:nth-child(3) {
    background: linear-gradient(135deg, #e8d5ff 0%, #ffe0ee 100%);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'Jua', sans-serif;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.carousel-indicators .active {
    background-color: white;
    transform: scale(1.2);
}

/* ===============================================
   Feature Cards Component
   =============================================== */
.feature-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    border: 3px solid var(--pink-light);
    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(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(252, 116, 166, 0.25);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    box-shadow: 0 8px 20px rgba(252, 116, 166, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-family: 'Jua', sans-serif;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===============================================
   Price Cards Component
   =============================================== */
.price-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(252, 116, 166, 0.15);
    transition: all 0.3s ease;
    border: 3px solid var(--pink-light);
    position: relative;
}

.price-card:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 15px 40px rgba(252, 116, 166, 0.3);
    border-color: var(--primary-color);
}

.price-card-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--pink-pastel), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    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: 'Jua', sans-serif;
}

.price-card-body .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(252, 116, 166, 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(252, 116, 166, 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(252, 116, 166, 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: 'Jua', 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(252, 116, 166, 0.1);
    border: 2px solid var(--pink-light);
}

.info-table th {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    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(252, 116, 166, 0.3);
}

.badge-new {
    background: #ff6350;
    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(--purple-light), 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(252, 116, 166, 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(252, 116, 166, 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(252, 116, 166, 0.4);
    border: 4px solid white;
    font-family: 'Jua', 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(252, 116, 166, 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(252, 116, 166, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

#backToTop:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(252, 116, 166, 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;
    }
}