/* ==========================================================================
   Phuket Cozy Car - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cfdbe7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c739a;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* --------------------------------------------------------------------------
   Mobile Menu Styles
   -------------------------------------------------------------------------- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   Language Switcher
   -------------------------------------------------------------------------- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 8px;
}

.dark .lang-switcher {
    background: #1e293b;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #64748b;
}

.lang-btn:hover {
    color: #137fec;
}

.lang-btn.active {
    background: #137fec;
    color: white;
}

.lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Hero Section Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.booking-widget {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* --------------------------------------------------------------------------
   Card Hover Effects
   -------------------------------------------------------------------------- */
.car-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Button Ripple Effect
   -------------------------------------------------------------------------- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* --------------------------------------------------------------------------
   Form Styles
   -------------------------------------------------------------------------- */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* --------------------------------------------------------------------------
   Loading States
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* --------------------------------------------------------------------------
   Trust Indicators Animation
   -------------------------------------------------------------------------- */
.trust-indicator {
    transition: transform 0.3s ease;
}

.trust-indicator:hover {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Step Cards Hover
   -------------------------------------------------------------------------- */
.step-card .step-icon {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-icon {
    background-color: #137fec;
    color: white;
}

/* --------------------------------------------------------------------------
   Testimonial Cards
   -------------------------------------------------------------------------- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Footer Social Icons
   -------------------------------------------------------------------------- */
.social-icon {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   CTA Section Pulse
   -------------------------------------------------------------------------- */
.cta-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    header,
    footer,
    .booking-widget,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #137fec;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   LINE Button Styles
   -------------------------------------------------------------------------- */
.line-btn {
    background-color: #00B900;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.line-btn:hover {
    background-color: #009900;
    transform: scale(1.02);
}

.line-btn svg {
    width: 24px;
    height: 24px;
}

/* --------------------------------------------------------------------------
   Facebook Button Styles
   -------------------------------------------------------------------------- */
.fb-btn {
    background-color: #1877F2;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.fb-btn:hover {
    background-color: #166FE5;
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   WhatsApp Floating Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* LINE Floating Button */
.line-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #00B900;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.line-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.5);
}
