/* Base styles that can't be done with Tailwind */
html {
    scroll-behavior: smooth;
}
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

section {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Alpine.js */
[x-cloak] { 
    display: none !important; 
}

/* Simple fade-in animation for car cards */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Video hero styles */
.video-hero {
    position: relative;
    overflow: hidden;
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background-color: #0A0A0A !important;
    background: #0A0A0A !important;
    border-left: 1px solid rgba(42, 42, 42, 0.5);
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0A0A0A;
    z-index: -1;
}

#mobile-menu {
    background: rgb(10, 10, 10) !important;
    background-color: rgb(10, 10, 10) !important;
    opacity: 1 !important;
}

#mobile-menu * {
    opacity: 1 !important;
}

.mobile-menu.open {
    transform: translateX(0) !important;
    pointer-events: auto;
}

.mobile-menu-closed {
    transform: translateX(100%);
}

.mobile-menu-open {
    transform: translateX(0) !important;
    pointer-events: auto;
}

/* Hero flash animation */
.hero::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    animation: flash 2s infinite;
}

/* Gallery grid styles for car detail page */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 400px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.gallery-grid .main-image {
    grid-row: 1 / 3;
}

/* Custom scrollbar for filters */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Custom select arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    /* Ensure room for the built-in arrow despite utility padding classes */
    padding-right: 0.3rem !important;
}

/* Scroll animation classes */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.scroll-fade-up {
    transform: translateY(30px);
}

.scroll-animate.scroll-fade-down {
    transform: translateY(-30px);
}

.scroll-animate.scroll-fade-left {
    transform: translateX(30px);
}

.scroll-animate.scroll-fade-right {
    transform: translateX(-30px);
}

.scroll-animate.scroll-scale {
    transform: scale(0.95);
}

.scroll-animate.in-view {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* Prevent animation overflow */
[data-animate] {
    overflow: hidden;
}

/* Fix potential grid overflow */
.grid {
    overflow: hidden;
}

/* Ensure wrapper doesn't overflow */
* {
    max-width: 100vw;
}

/* Ensure sections don't overlap */
section {
    position: relative;
    z-index: 1;
}

/* Higher z-index for hero content */
.hero-overlay {
    z-index: 2;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Animation Classes */
.animate-ready {
    opacity: 0;
    transform: translateX(-50px);
}

.animate-ready.fade-left {
    transform: translateX(50px);
}

.animate-ready.fade-up {
    transform: translateY(30px);
}

.animate-ready.fade-down {
    transform: translateY(-30px);
}

.animate-ready.fade-in {
    transform: none;
}

/* Smooth animation transition */
.animate-element {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Carousel styles */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex-shrink: 0;
    padding: 0 12px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 184, 255, 0.9);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 184, 255, 0.3);
}

.carousel-nav-btn:hover {
    background: rgba(0, 184, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 184, 255, 0.4);
}

.carousel-nav-btn.prev {
    left: -24px;
}

.carousel-nav-btn.next {
    right: -24px;
}

.carousel-nav-btn.red {
    background: rgba(255, 60, 60, 0.9);
    box-shadow: 0 4px 12px rgba(255, 60, 60, 0.3);
}

.carousel-nav-btn.red:hover {
    background: rgba(255, 60, 60, 1);
    box-shadow: 0 6px 20px rgba(255, 60, 60, 0.4);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(100, 116, 139, 1);
}

.carousel-dot.active {
    background: rgba(0, 184, 255, 1);
}

.carousel-dot.active.red {
    background: rgba(255, 60, 60, 1);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px auto;
        height: auto;
    }
    
    .gallery-grid .main-image {
        grid-row: 1;
    }
    
    .gallery-thumbnails {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.5rem 0;
    }
    
    .gallery-thumbnails img {
        width: 80px;
        height: 60px;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Responsive carousel */
@media (max-width: 1279px) {
    .carousel-nav-btn.prev {
        left: -16px;
    }
    .carousel-nav-btn.next {
        right: -16px;
    }
}

@media (max-width: 767px) {
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
    .carousel-nav-btn.prev {
        left: -8px;
    }
    .carousel-nav-btn.next {
        right: -8px;
    }
}

/* Mobile menu scrollbar styles */
.mobile-menu nav {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2A2A2A #0A0A0A;
}

.mobile-menu nav::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu nav::-webkit-scrollbar-track {
    background: #0A0A0A;
}

.mobile-menu nav::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 3px;
}

.mobile-menu nav::-webkit-scrollbar-thumb:hover {
    background: #3A3A3A;
} 

/*
================================================================================
ADMIN PANEL STYLES
================================================================================
*/
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #F8F9FA; /* --color-light */
    color: #1F2937; /* --color-text-dark */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oxanium', sans-serif;
}

.font-oxanium {
    font-family: 'Oxanium', sans-serif;
}

/* Inline notifications */
.notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    color: #0b1a2b;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
}
.notice.success { border-color: #86efac; background: #f0fdf4; color: #166534; }
.notice.error   { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.notice.warn    { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.notice .close { margin-left: 8px; cursor: pointer; opacity: .7; }

.drag-over {
    border-color: #00B8FF !important; /* --color-primary */
    background-color: #dbeafe !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 184, 255, 0.15) !important;
}

[draggable="true"]:hover .drag-handle {
    opacity: 1 !important;
}

.drag-handle {
    transition: opacity 0.2s ease;
}

[draggable="true"] {
    transition: all 0.2s ease;
}

[draggable="true"]:active {
    cursor: grabbing;
}

.admin-sidebar {
    background: linear-gradient(180deg, #0A0A0A 0%, #1a1a1a 100%);
}

.section-header.primary {
    background: linear-gradient(135deg, #0b66a9 0%, #003366 100%);
}

.section-header.accent {
    background: linear-gradient(135deg, #c84121 0%, #a13218 100%);
}

.section-header.search {
    background: linear-gradient(135deg, #64748B 0%, #1E1E1E 100%);
}

.section-header.draft {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/*
================================================================================
PRIVACY POLICY DOCUMENT STYLES
================================================================================
*/

/* Privacy policy document container */
.privacy-policy-document {
    max-width: 21cm; /* A4 width */
    margin: 0 auto;
    padding: 2.5cm 2cm; /* A4 margins */
    background: white;
    color: #000;
    font-family: 'Oxanium', sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 29.7cm; /* A4 height */
    counter-reset: main-section;
}

.privacy-policy-document p {
    text-align: left;
}


/* Override Google Docs styles with proper document styling */
.privacy-policy-document .c5 {
    text-align: center;
    margin: 0 0 1.5em 0;
    font-size: 14pt;
    font-weight: bold;
}

.privacy-policy-document .c4 {
    font-weight: bold;
    font-size: 11pt;
}

.privacy-policy-document .c0 {
    font-size: 11pt;
    line-height: 1.3;
    color: #000;
}

.privacy-policy-document .c1 {
    font-size: 11pt;
    line-height: 1.3;
    color: #000;
}

.privacy-policy-document .c6 {
    margin: 0.5em 0;
}

.privacy-policy-document .c7 {
    margin: 0.3em 0;
}

.privacy-policy-document .c12 {
    margin: 0.5em 0;
}

.privacy-policy-document .c2 {
    margin: 0.3em 0;
}

.privacy-policy-document .c14 {
    margin-left: 0;
}

.privacy-policy-document .c16 {
    margin-left: 0;
}

.privacy-policy-document .c18 {
    margin-left: 1.5em;
}

.privacy-policy-document .c19 {
    margin-left: 0;
}

.privacy-policy-document .c20 {
    margin-left: 0;
}

.privacy-policy-document .c21 {
    margin-left: 1.5em;
}

.privacy-policy-document .c23 {
    margin-left: 1.5em;
}

/* List container styles */
.privacy-policy-document .c8 {
    margin: 0.5em 0;
    padding: 0;
}

/* Remove default list styles from Google Docs */
.privacy-policy-document ol[class*="lst-kix"] {
    list-style: none;
    margin: 0.5em 0;
    padding: 0;
}

.privacy-policy-document ul[class*="lst-kix"] {
    list-style: none;
    margin: 0.5em 0;
    padding: 0;
}

/* List styles with proper numbering */
.privacy-policy-document ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
    counter-reset: item;
}

.privacy-policy-document ul {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.privacy-policy-document li {
    margin: 0.3em 0;
    text-align: left;
}

/* Main sections numbering (Roman numerals) - counter at document level */

.privacy-policy-document .lst-kix_list_1-0 {
    list-style: none;
    padding-left: 0;
}

.privacy-policy-document .lst-kix_list_1-0 > li {
    counter-increment: main-section;
    position: relative;
    padding-left: 2em;
}

.privacy-policy-document .lst-kix_list_1-0 > li::before {
    content: counter(main-section, upper-roman) ". ";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sub-sections numbering (Arabic numerals) */
.privacy-policy-document .lst-kix_list_2-0,
.privacy-policy-document .lst-kix_list_4-1,
.privacy-policy-document .lst-kix_list_9-0,
.privacy-policy-document .lst-kix_list_10-0,
.privacy-policy-document .lst-kix_list_11-0,
.privacy-policy-document .lst-kix_list_16-0,
.privacy-policy-document .lst-kix_list_17-0,
.privacy-policy-document .lst-kix_list_19-0,
.privacy-policy-document .lst-kix_list_24-0 {
    counter-reset: sub-section;
    list-style: none;
    padding-left: 1em;
}

.privacy-policy-document .lst-kix_list_2-0 > li,
.privacy-policy-document .lst-kix_list_4-1 > li,
.privacy-policy-document .lst-kix_list_9-0 > li,
.privacy-policy-document .lst-kix_list_10-0 > li,
.privacy-policy-document .lst-kix_list_11-0 > li,
.privacy-policy-document .lst-kix_list_16-0 > li,
.privacy-policy-document .lst-kix_list_17-0 > li,
.privacy-policy-document .lst-kix_list_19-0 > li,
.privacy-policy-document .lst-kix_list_24-0 > li {
    counter-increment: sub-section;
    position: relative;
    padding-left: 1.5em;
}

.privacy-policy-document .lst-kix_list_2-0 > li::before,
.privacy-policy-document .lst-kix_list_4-1 > li::before,
.privacy-policy-document .lst-kix_list_9-0 > li::before,
.privacy-policy-document .lst-kix_list_10-0 > li::before,
.privacy-policy-document .lst-kix_list_11-0 > li::before,
.privacy-policy-document .lst-kix_list_16-0 > li::before,
.privacy-policy-document .lst-kix_list_17-0 > li::before,
.privacy-policy-document .lst-kix_list_19-0 > li::before,
.privacy-policy-document .lst-kix_list_24-0 > li::before {
    content: counter(sub-section) ". ";
    position: absolute;
    left: 0;
}

/* Letter numbering (a), b), c), etc.) */
.privacy-policy-document .lst-kix_list_4-1 {
    counter-reset: letter-section;
}

.privacy-policy-document .lst-kix_list_4-1 > li {
    counter-increment: letter-section;
}

.privacy-policy-document .lst-kix_list_4-1 > li::before {
    content: counter(letter-section, lower-latin) ") ";
}

/* Bullet points */
.privacy-policy-document .lst-kix_list_14-1 > li,
.privacy-policy-document .lst-kix_list_25-0 > li,
.privacy-policy-document .lst-kix_list_28-0 > li {
    list-style-type: disc;
    margin-left: 1em;
}

/* Link styles */
.privacy-policy-document a {
    color: #0066cc;
    text-decoration: underline;
}

.privacy-policy-document a:hover {
    color: #004499;
}

/* Numbered sections - main headings */
.privacy-policy-document .lst-kix_list_1-0 > li {
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 12pt;
}

/* Sub-items under main sections */
.privacy-policy-document .lst-kix_list_2-0 > li,
.privacy-policy-document .lst-kix_list_4-1 > li,
.privacy-policy-document .lst-kix_list_9-0 > li,
.privacy-policy-document .lst-kix_list_10-0 > li,
.privacy-policy-document .lst-kix_list_11-0 > li,
.privacy-policy-document .lst-kix_list_16-0 > li,
.privacy-policy-document .lst-kix_list_17-0 > li,
.privacy-policy-document .lst-kix_list_19-0 > li,
.privacy-policy-document .lst-kix_list_24-0 > li {
    font-weight: normal;
    margin: 0.5em 0;
}

/* Bullet points and sub-lists */
.privacy-policy-document .lst-kix_list_14-1 > li,
.privacy-policy-document .lst-kix_list_25-0 > li,
.privacy-policy-document .lst-kix_list_28-0 > li {
    margin: 0.3em 0;
    margin-left: 1em;
}

/* Page breaks for print */
@media print {
    .privacy-policy-document {
        box-shadow: none;
        margin: 0;
        padding: 2cm;
    }
    
    .privacy-policy-document .lst-kix_list_1-0 > li {
        page-break-after: avoid;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-policy-document {
        padding: 1rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 10pt;
    }
    
    .privacy-policy-document .c5 {
        font-size: 12pt;
    }
}
.floating-social-icons {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px; /* Spacing between icons */
    z-index: 1000;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #1E1E1E;
    color: white;
    text-decoration: none;
    border-radius: 8px 0 0 8px; /* Rounded corners on the left */
    transition: all 0.3s ease;
    position: relative;
    right: -10px; /* Initially hidden */
    opacity: 0.7;
}

.social-icon:hover {
    right: 0; /* Slide in on hover */
    opacity: 1;
    transform: translateX(-10px);
}

.social-icon i {
    font-size: 20px;
    transition: opacity 0.3s ease;
}

.social-icon span {
    position: absolute;
    right: 56px; /* Position text to the left */
    white-space: nowrap;
    background-color: #1E1E1E;
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.social-icon:hover span {
    opacity: 1;
    visibility: visible;
}

/* Specific colors for icons */
.facebook-icon {
    background-color: #3b5998; /* Facebook blue */
}

.instagram-icon {
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
