@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    --moto-primary: #0056b3;
    /* Kral Motor Blue */
    /* Can be overridden dynamically */
    --moto-dark: #121212;
    --moto-glass: rgba(255, 255, 255, 0.08);
    --moto-glass-border: rgba(255, 255, 255, 0.12);
    --moto-text-color: #f0f0f0;
}

body {
    background-color: #0a0a0a;
    /* Dark theme default for this page */
    color: #fff;
    font-family: 'Outfit', sans-serif !important;
    padding-bottom: 3rem;
    /* Add spacing at bottom too */
}

/* TAB DÜZELTMESİ (ÖNCEKİ SORUN İÇİN) */
.tab-content>.tab-pane {
    display: none !important;
}

.tab-content>.active {
    display: block !important;
    opacity: 1 !important;
}

.moto-detail-wrapper {
    overflow-x: hidden;
    position: relative;
}

/* 1. HERO SECTION */
.moto-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.moto-hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.moto-hero-video-wrapper iframe {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.35);
    /* Zoom to crop black bars */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.moto-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.0);
    transition: transform 10s linear, opacity 0.3s ease;
    /* Added opacity transition */
    z-index: 0;
}

/* Subtle Zoom Effect on Load */
.moto-hero:hover .moto-hero-bg {
    transform: scale(1.05);
}

.moto-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* More sophisticated gradient */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.0) 60%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.moto-hero .container {
    position: relative;
    z-index: 2;
}

/* Typography */
.moto-year {
    color: #3b82f6;
    /* Logo Mavisi */
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--moto-primary);
    padding-bottom: 5px;
}

.moto-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background: -webkit-linear-gradient(#fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.moto-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 650px;
    border-left: 4px solid var(--moto-primary);
    padding-left: 20px;
    margin-bottom: 40px;
}

/* Quick Specs in Hero - Updated Stylish Floating Menu */
.moto-quick-specs {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.quick-spec-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 20px;
    position: relative;
}

.quick-spec-item:last-child {
    border: none;
}

.spec-val {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: #fff;
}

.spec-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
    color: #ddd;
}

/* 2. GLASS CARD COMPONENTS */
.glass-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Price Card */
.moto-price-card .price-label {
    font-size: 1rem;
    opacity: 0.8;
}

.moto-price-card .price-val {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Calculator Style */
.moto-calc-card input[type=range] {
    accent-color: var(--moto-primary);
}

.moto-calc-card .form-select option {
    background: #222;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* 3. INTERACTIVE SECTION Styles */
.moto-gallery-section {
    background: #fff;
    /* Contrast section */
    color: #111;
    position: relative;
    z-index: 2;
}

/* 360 Viewer */
.moto-360-viewer {
    position: relative;
    cursor: grab;
    user-select: none;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
}

.moto-360-viewer:active {
    cursor: grabbing;
}

.rotate-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0.8;
    pointer-events: none;
}

.moto-info-content .section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #111;
}

.color-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.color-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd, 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.1);
}

/* 4. TABS SECTION Styling */
.moto-specs-tabs {
    background: #f4f4f4;
}

.custom-pills .nav-link {
    background: transparent;
    color: #555;
    border: 2px solid transparent;
    font-weight: 700;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 15px 30px;
    transition: all 0.3s;
}

.custom-pills .nav-link.active {
    background: transparent;
    color: var(--moto-primary);
    border-bottom-color: var(--moto-primary);
}

/* Dark mode tabs content */
.bg-light .glass-card {
    /* Override for light section to look like card */
    background: #fff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.spec-name {
    font-weight: 600;
    color: #777;
}

.spec-value {
    font-weight: 800;
    color: #000;
}

/* 5. RESPONSIVE ADJUSTMENTS */
@media (max-width: 991px) {
    .moto-title {
        font-size: 3rem;
    }

    .moto-hero {
        text-align: center;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .moto-quick-specs {
        justify-content: center;
        margin-top: 30px;
    }

    .quick-spec-item {
        border: none;
        padding: 0 15px;
    }

    .moto-tagline {
        margin: 0 auto 30px;
        border: none;
        padding: 0;
    }
}

/* 6. NEW SPECS GRID & ICONS */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.spec-item-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.spec-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #e0e0e0;
}

.spec-icon {
    font-size: 2rem;
    color: #3b82f6;
    /* Logo Mavisi */
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    /* Hafif mavi fon */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.spec-item-card:hover .spec-icon {
    color: #1e293b;
    /* Koyu Mavi/Siyahımsı (hover) */
    background: #e2e8f0;
    /* Gri fon */
    animation: icon-bounce 0.6s ease;
}

.spec-content {
    flex: 1;
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* 7. FLOATING COMPARE BAR */
.compare-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 9999;
    color: #fff;
}

.compare-item-thumb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-item-thumb img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.compare-item-thumb .name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.compare-item-thumb button {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    margin-left: 5px;
}

.compare-item-thumb button:hover {
    color: #ff0000;
}

/* Breadcrumb Adjustments */
.moto-info-section .breadcrumb-item+.breadcrumb-item::before {
    color: #ccc;
}

/* Dealer Modal Refinements */
.dealer-phone a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.dealer-phone a:hover {
    color: #3b82f6;
}

.list-group-item-action:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.ls-1 {
    letter-spacing: 1px;
}

/* 8. GALLERY & LIFESTYLE IMPROVEMENTS */
.gallery-item-wrapper {
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    cursor: pointer;
}

.gallery-item-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lifestyle-item-wrapper .gallery-img {
    aspect-ratio: 16 / 9;
}

.gallery-item-wrapper:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.5rem;
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.lifestyle-item-wrapper {
    position: relative;
    transition: all 0.4s ease;
}

.lifestyle-item-wrapper:hover {
    transform: scale(1.01);
}

/* 9. 360 VIEWER ENHANCEMENTS */
.moto-360-container {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 30px;
}

.moto-360-nav-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: white;
    color: var(--moto-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.nav-btn:hover {
    transform: scale(1.15) translateY(-2px);
    background: var(--moto-primary);
    color: white;
}

.nav-btn.play-btn.playing {
    background: var(--moto-primary);
    color: white;
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.5);
}

/* Spec Card Enhancements */
.spec-item-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 86, 179, 0.1);
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 4px solid var(--moto-primary) !important;
}

.spec-item-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.spec-key {
    color: #aaa;
    letter-spacing: 0.5px;
}

.spec-value {
    color: #fff;
    font-size: 1.1rem;
}

.spec-group-title {
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.moto-360-colors .color-dot {
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #eee;
    width: 50px !important;
    height: 50px !important;
}

.moto-360-colors .color-dot.active {
    box-shadow: 0 0 0 2px var(--moto-primary);
    transform: scale(1.15);
}

#rotateImg {
    transition: transform 0.3s ease;
    user-drag: none;
    -webkit-user-drag: none;
}

#moto360:active #rotateImg {
    transform: scale(1.02);
}

/* Fix for broken image icon appearing as a small dot/circle */
img:not([src]),
img[src=""],
img[src="null"] {
    display: none !important;
}

/* 10. 360 SMOOTH CROSSFADE TRANSITIONS */
.rotate-img-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.rotate-img-container img {
    transition: opacity 0.12s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.rotate-img-container .rotate-img-current {
    position: relative;
    z-index: 2;
}

.rotate-img-container .rotate-img-next {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    max-height: 600px;
}

/* Smooth drag feel */
#moto360 {
    cursor: grab;
}

#moto360:active {
    cursor: grabbing;
}

/* Nav button enhancements */
.nav-btn.zoom-btn {
    background: linear-gradient(135deg, var(--moto-primary), #00a8ff);
    color: white;
}

.nav-btn.zoom-btn:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

/* Fancybox custom overrides for better gallery experience */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95);
}

.fancybox__caption {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.fancybox__nav {
    --fancybox-accent-color: var(--moto-primary);
}

/* Improved touch response */
@media (hover: none) and (pointer: coarse) {
    .rotate-img-container img {
        transition: opacity 0.08s ease-out;
    }
}

/* 11. NEW DESIGN: HERO INFO BAND & PRICE BAND */

/* Hero Info Band (Sol-Alt Köşe, Kutusuz ve Zarif) */
.moto-hero-info-band {
    position: absolute;
    bottom: 50px;
    left: 5%;
    width: 90%;
    max-width: 700px;
    z-index: 10;
    padding: 1rem 0;
}

/* Şık metin gölgeleri daha belirgin okunabilirlik için */
.moto-year {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

.moto-title {
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0,0,0,0.5);
}

.moto-tagline {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    background: rgba(0,0,0,0.2) !important;
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .moto-hero-info-band {
        bottom: 30px;
        left: 20px;
        width: calc(100% - 40px);
    }
    
    .moto-quick-specs {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 15px;
        border-radius: 20px;
    }
    
    .quick-spec-item {
        border: none;
        padding: 5px 15px;
    }
}

/* Price Band (Hero Altı Fiyat Şeridi) */
.price-band {
    background: #0f1015; /* Koyu premium arka plan */
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.price-band-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0;
}

.price-band-cash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.pb-label {
    font-size: 0.75rem;
    color: var(--moto-primary);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.pb-cash-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.pb-sublabel {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.price-band-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 0 2rem;
}

.price-band-installments {
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    overflow-x: auto;
    padding-bottom: 5px; /* Scrollbar için yer */
    scrollbar-width: thin;
    scrollbar-color: var(--moto-primary) transparent;
}

.price-band-installments::-webkit-scrollbar {
    height: 4px;
}
.price-band-installments::-webkit-scrollbar-thumb {
    background: var(--moto-primary);
    border-radius: 4px;
}

.pb-inst-col {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.pb-inst-count {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.pb-inst-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 2px;
}

.pb-inst-monthly {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    color: var(--moto-primary);
}

.pb-inst-amount {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.pb-inst-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 991px) {
    .price-band-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 0;
    }
    
    .price-band-divider {
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 1.5rem 0;
    }
    
    .price-band-installments {
        width: 100%;
        gap: 1.5rem;
    }
}