/* Reusable Components Styles (components.css) */

/* Custom Cursor */
.cursor-follower,
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--highlight-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.toast-success {
    background: var(--success-color);
}

.toast-notification.toast-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.toast-notification.toast-error {
    background: var(--highlight-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Timeline Component */
.timeline-section {
    padding: 8rem 0;
    background: var(--light-color);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-medium);
    z-index: 2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--highlight-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-light);
    z-index: 3;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-top: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 2rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
}

/* 3D Value Cards */
.values-section {
    padding: 8rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.values-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.value-card-3d {
    width: 100%;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
}

.value-card-3d:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-heavy);
}

.card-front {
    background: var(--white);
    color: var(--dark-color);
}

.card-back {
    background: var(--light-color);
    color: var(--dark-color);
    transform: rotateY(180deg);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconBounce 3s ease-in-out infinite;
}

.card-front h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.card-back p {
    line-height: 1.6;
    font-size: var(--font-size-base);
}

/* Testimonials Carousel */
.testimonials-section {
    padding: 8rem 0;
    background: var(--light-color);
    position: relative;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    opacity: 0;
    transform: translateX(100px);
    transition: var(--transition);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.stars {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffc107;
}

.testimonial-content p {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 2rem;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-color);
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.carousel-btn:hover {
    background: var(--highlight-color);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Interactive Map */
.map-section {
    padding: 8rem 0;
    background: var(--white);
}

.interactive-map {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.map-container {
    position: relative;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
}

.korea-map {
    position: relative;
    width: 100%;
    height: 500px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><path d="M200 50 L350 100 L380 200 L350 400 L300 550 L200 580 L100 550 L50 400 L20 200 L50 100 Z" fill="%23e9ecef" stroke="%232e528f" stroke-width="2"/></svg>') no-repeat center;
    background-size: contain;
}

.map-pin {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.pin-dot {
    width: 20px;
    height: 20px;
    background: var(--highlight-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-medium);
    animation: pinPulse 2s infinite;
    transition: var(--transition);
}

.map-pin:hover .pin-dot {
    transform: scale(1.2);
    animation: none;
}

.pin-popup {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.map-pin:hover .pin-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.pin-popup h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pin-popup p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

/* Location Details */
.location-details {
    padding: 2rem;
}

.location-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.location-card.active {
    opacity: 1;
    transform: translateY(0);
}

.location-card h3 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
}

.location-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.activity-tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 500;
}

/* Floating Action Button */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
    font-size: var(--font-size-xl);
}

.main-fab {
    background: var(--gradient-highlight);
    color: var(--white);
}

.main-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-extreme);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-actions:hover .fab-menu,
.floating-actions.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu .fab {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    position: relative;
    animation: fabSlideIn 0.3s ease forwards;
}

.fab-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.fab:hover .fab-label {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.video-modal-close:hover {
    color: var(--dark-color);
}

.video-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

/* Keyframe Animations */
@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(207, 53, 64, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(207, 53, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 53, 64, 0); }
}

@keyframes fabSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        top: 20px;
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 2rem;
        margin-right: 2rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item::before,
    .timeline-item::after {
        left: 2rem;
    }
    
    .interactive-map {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .values-3d {
        grid-template-columns: 1fr;
    }
    
    .value-card-3d {
        height: 250px;
    }
    
    .card-face {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content p {
        font-size: var(--font-size-base);
    }
}
