/**
 * EUROREPAR Car Service Günal Otomotiv Yetkili Servis - Custom CSS
 * Tailwind CDN handles all utility classes.
 * This file only contains custom component styles.
 *
 * @package GUNAL_Otomotiv
 */

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* Selection */
::selection { background-color: #f97316; color: #09090b; }

/* Details/Summary */
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* Gold Gradient */
.text-gold-gradient {
    background-image: linear-gradient(135deg, #fed7aa 0%, #f97316 45%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Site header sticky (JS target) */
.site-header {
    position: sticky;
    transition: padding 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Premium compact header */
.header-premium .header-inner {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}
.header-premium.is-compact .header-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.header-premium.is-compact .logo-wrap img,
.header-premium.is-compact .logo-wrap svg {
    height: 2.25rem;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu-drawer.open {
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu-drawer.open #mobile-menu-panel {
    transform: translateX(0);
}

/* Mobile Hizmetler accordion */
.mobile-hizmetler-sub {
    overflow: hidden;
    max-height: 0 !important;
    transition: max-height 0.3s ease;
}
.mobile-hizmetler-wrap.open .mobile-hizmetler-sub {
    max-height: 2000px !important;
}
.mobile-hizmetler-wrap.open .mobile-hizmetler-chevron {
    transform: rotate(180deg);
}

/* Mobile Corporate accordion */
.corporate-mobile-wrap {
    overflow: hidden;
    max-height: 0 !important;
    transition: max-height 0.3s ease;
}
.corporate-mobile-wrap.open {
    max-height: 2000px !important;
}
.corporate-mobile-wrap.open .mobile-corporate-chevron {
    transform: rotate(180deg);
}

/* Mobile Group sub-accordions */
.mobile-group-wrap .mobile-group-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}
.mobile-group-wrap.open .mobile-group-sub {
    max-height: 600px;
}
.mobile-group-wrap.open .mobile-group-chevron {
    transform: rotate(180deg);
}

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega-menu-panel {
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    overscroll-behavior: contain;
    will-change: opacity, transform;
}
.mega-menu-panel::-webkit-scrollbar {
    width: 5px;
}
.mega-menu-panel::-webkit-scrollbar-track {
    background: transparent;
}
.mega-menu-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.mega-menu-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mega menu column hover */
.mega-menu-column {
    transition: all 0.2s ease;
}

/* Mega menu search input */
#mega-menu-search {
    transition: all 0.2s ease;
}
#mega-menu-search:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Mega menu panel translate animation */
.mega-menu-panel.translate-y-[-8px] {
    transform: translateY(-8px);
}
.mega-menu-panel.translate-y-0 {
    transform: translateY(0);
}
.mega-menu-backdrop {
    transition: opacity 0.2s ease;
}
.menu-item-has-mega-menu .mega-menu-btn {
    outline: none;
}
.menu-item-has-mega-menu .mega-menu-btn:focus-visible,
.menu-item-has-mega-menu.mega-menu-active .mega-menu-btn {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 75, 0, 0.4);
}

/* Corporate menu active state */
.menu-item-has-corporate-menu .corporate-menu-btn {
    outline: none;
}
.menu-item-has-corporate-menu .corporate-menu-btn:focus-visible,
.menu-item-has-corporate-menu.mega-menu-active .corporate-menu-btn {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 75, 0, 0.4);
}

/* Corporate mega panel width guard */
#corporate-menu-panel {
    width: 600px !important;
    max-width: calc(100vw - 2rem) !important;
}

/* ============================================================
   MOBILE BOTTOM ACTION BAR
   ============================================================ */
.mobile-bottom-bar {
    transition: transform 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-bar.translate-y-full {
    transform: translateY(100%);
}
/* Body padding so content isn't hidden behind the bar */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}
/* Admin bar offset for mobile bottom bar */
body.admin-bar .mobile-bottom-bar {
    bottom: 32px;
}
body.admin-bar .site-header {
    background-color: rgb(9 9 11) !important;
}
@media (max-width: 782px) {
    body.admin-bar .mobile-bottom-bar {
        bottom: 46px;
    }
}

.opacity-40 {
    opacity: .4;
    background-image: radial-gradient(700px circle at 25% 30%, rgb(255 75 0 / 0%), #09090b 55%) !important;
}
.hero-section {
    background-color: #09090b !important;
}
#hero {
    background-color: #09090b !important;
}
@supports (color:color-mix(in lab, red, red)) {
    .to-\[var\(--color-ink\)\]\/40 {
        --tw-gradient-to: color-mix(in oklab, #000000 40%, #00000000);
    }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .mobile-hizmetler-sub,
    .mobile-group-sub,
    .mega-menu-panel,
    .mobile-bottom-bar,
    .site-header,
    .header-inner {
        transition: none !important;
    }
}

/* ============================================================
   SCHEDULE DROPDOWN
   ============================================================ */
#schedule-panel {
    transition: opacity 0.2s ease;
}

/* ============================================================
   QUICK CONTACT
   ============================================================ */
#quick-contact-panel {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ============================================================
   ACTIVE MENU ITEMS
   ============================================================ */
.current-menu-item > a,
.current-page-parent > a {
    color: #ff4b00;
    background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
}
.pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.pagination .page-numbers > li {
    display: inline-block;
}
.pagination .page-numbers:not(li) > .page-numbers,
.pagination .page-numbers > li > .page-numbers,
.pagination .page-numbers > li > span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-zinc-300);
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination .page-numbers > li > a:hover,
.pagination .page-numbers > li > span:hover {
    color: var(--color-eurorepar);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-eurorepar);
}
.pagination .page-numbers.current,
.pagination .page-numbers[aria-current="page"] {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-eurorepar-light), #f97316);
    border-color: var(--color-eurorepar);
    pointer-events: none;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0.5rem 0.875rem;
    min-width: auto;
    width: auto;
    font-weight: 600;
}
.pagination .page-numbers.next {
    margin-left: auto;
}
.pagination .page-numbers.prev {
    margin-right: auto;
}
.pagination .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   DETAILS/ SUMMARY OPEN STATE
   ============================================================ */
details[open] > summary {
    background-color: #fff;
    border-color: #fdba74;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
details[open] > summary.open\:bg-white { background-color: #fff; }
details[open] > summary.open\:border-amber-300 { border-color: #fdba74; }
details[open] > summary.open\:shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Last child */
.last\:mb-0:last-child { margin-bottom: 0; }

/* ============================================================
   CONTENT-VISIBILITY (below-the-fold sections)
   ============================================================ */
.section-below-fold,
main > section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ============================================================
   STICKY FOOTER
   ============================================================ */
html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
main, .main-content {
    flex: 1;
}
.site-footer {
    flex-shrink: 0;
}
.quick-contact,
.mobile-bottom-bar {
    flex: 0 0 0;
}

/* Group open (FAQ accordion) */
details[open] > summary .faq-arrow,
.group-open\:rotate-45 { transform: rotate(45deg); }
details[open] > summary .faq-arrow { transform: rotate(45deg); }

/* ============================================================
   WORDPRESS ADMIN BAR FIX
   ============================================================ */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

/* ============================================================
   PAGE TEMPLATE BREADCRUMBS
   ============================================================ */
.page-template-page-hakkimizda .breadcrumb,
.page-template-page-iletisim .breadcrumb,
.single-hizmet .breadcrumb,
.archive-hizmet .breadcrumb,
.archive-marka .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a1a1aa;
}
.page-template-page-hakkimizda .breadcrumb a,
.page-template-page-iletisim .breadcrumb a,
.single-hizmet .breadcrumb a,
.archive-hizmet .breadcrumb a,
.archive-marka .breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 150ms;
}
.page-template-page-hakkimizda .breadcrumb a:hover,
.page-template-page-iletisim .breadcrumb a:hover,
.single-hizmet .breadcrumb a:hover,
.archive-hizmet .breadcrumb a:hover,
.archive-marka .breadcrumb a:hover {
    color: #fff;
}

/* =============================================================
   EUROREPAR YETKİLİ SERVİS - Fixed Badge (Sol Alt)
   ============================================================= */
.eurorepar-badge-fixed {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255, 75, 0, 0.35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 75, 0, 0.15),
        0 0 20px rgba(255, 75, 0, 0.25);
    font-family: var(--font-family-base);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    pointer-events: auto;
}
.eurorepar-badge-fixed:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 75, 0, 0.3),
        0 0 28px rgba(255, 75, 0, 0.4);
}
.eurorepar-badge-fixed__inner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem 0.625rem 0.625rem;
}
.eurorepar-badge-fixed__shield {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-eurorepar), var(--color-eurorepar-dark, #E64300));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 6px rgba(255, 75, 0, 0.3);
}
.eurorepar-badge-fixed__icon {
    width: 20px;
    height: 20px;
    color: #fff;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.eurorepar-badge-fixed__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.eurorepar-badge-fixed__title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
}
.eurorepar-badge-fixed__subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    margin-top: 2px;
}
.eurorepar-badge-fixed__divider {
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 20%,
        rgba(255, 255, 255, 0.12) 80%,
        transparent 100%);
    margin: 0 0.75rem;
}
.eurorepar-badge-fixed__company {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.875rem 0.5rem;
    font-size: 11px;
    line-height: 1.2;
}
.eurorepar-badge-fixed__company-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}
.eurorepar-badge-fixed__company-loc {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
/* Mobilde mobile-bottom-bar'ın üstünde dur */
@media (max-width: 767px) {
    .eurorepar-badge-fixed {
        left: 8px;
        bottom: 68px;
        transform: scale(0.92);
        transform-origin: bottom left;
    }
    .eurorepar-badge-fixed:hover {
        transform: translateY(-2px) scale(0.92);
    }
}
/* Masaüstünde quick-contact butonunun üstünde dur */
@media (min-width: 768px) {
    .eurorepar-badge-fixed {
        left: 16px;
        bottom: 16px;
    }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eurorepar-badge-fixed,
    .eurorepar-badge-fixed:hover {
        transition: none !important;
        transform: none !important;
    }
}

/* ============================================================
   TEXT WHITE OVERRIDE - dark background for white text
   ============================================================ */
.text-white {
    color: var(--color-white);
    /* background: #09090b; */
}
