/* Oto Turbo Servisleri teması */

:root {
    --theme-primary: #2563eb;
    --theme-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
    /* Sabit ust bar yuksekligi kadar offset: ankra atlamada baslik altinda kalmasin */
    scroll-padding-top: 5rem;
}

.theme-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .theme-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .theme-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.theme-hero-bg {
    background-color: var(--theme-dark);
    background-image:
        radial-gradient(ellipse 70% 55% at 75% 15%, rgba(var(--theme-primary-rgb), 0.32), transparent 60%),
        radial-gradient(ellipse 45% 40% at 8% 85%, rgba(var(--theme-primary-rgb), 0.18), transparent 60%),
        conic-gradient(from 220deg at 80% 25%, rgba(var(--theme-primary-rgb), 0.10), transparent 35%, transparent 70%, rgba(var(--theme-primary-rgb), 0.08)),
        linear-gradient(165deg, var(--theme-dark) 0%, #111c33 45%, var(--theme-dark) 100%);
}

/* Hero arka plan turbo gorseli */
.theme-hero-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56%;
    max-width: 760px;
    opacity: 0.65;
    object-fit: contain;
    z-index: 0;
}

.theme-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, var(--theme-dark) 22%, rgba(15, 23, 42, 0.55) 52%, transparent 100%);
}

@media (max-width: 1023px) {
    .theme-hero-img {
        display: none;
    }
    .theme-hero-overlay {
        display: none;
    }
}

.theme-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(var(--theme-primary-rgb), 0.25);
    border-color: rgba(var(--theme-primary-rgb), 0.45);
}

/* Galeri kartlari */
.theme-gallery-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -16px rgba(var(--theme-primary-rgb), 0.4);
}

/* Blog kartlari */
.theme-blog-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.theme-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -16px rgba(var(--theme-primary-rgb), 0.32);
    border-color: rgba(var(--theme-primary-rgb), 0.45);
}

/* Duzenleme modu: blog kartlari uzerinde duzenle/sil butonlari */
.theme-blog-cardwrap { position: relative; height: 100%; }
.theme-blog-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    gap: 6px;
}
.theme-blog-actbtn {
    height: 34px;
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.3);
    transition: transform 0.15s, filter 0.15s;
}
.theme-blog-actbtn:hover { transform: scale(1.08); filter: brightness(1.08); }
.theme-blog-actbtn--edit { background: #2563eb; }
.theme-blog-actbtn--del { background: #ef4444; }

/* Tekil blog yazisi govdesi: zengin metin tipografisi */
.theme-article-body > :first-child { margin-top: 0; }
.theme-article-body p { margin: 0 0 1.1em; }
.theme-article-body h2 {
    margin: 1.6em 0 .6em;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--theme-dark);
}
.theme-article-body h3 {
    margin: 1.4em 0 .5em;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--theme-dark);
}
.theme-article-body h4 {
    margin: 1.2em 0 .5em;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-dark);
}
.theme-article-body ul,
.theme-article-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.theme-article-body ul { list-style: disc; }
.theme-article-body ol { list-style: decimal; }
.theme-article-body li { margin: 0 0 .4em; }
.theme-article-body a {
    color: var(--theme-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.theme-article-body a:hover { filter: brightness(1.1); }
.theme-article-body blockquote {
    margin: 1.2em 0;
    padding: .6em 1.1em;
    border-left: 4px solid var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.06);
    border-radius: 0 .6rem .6rem 0;
    color: #475569;
    font-style: italic;
}
.theme-article-body strong { font-weight: 700; }

.theme-nav-link {
    position: relative;
    transition: color 0.2s;
}

.theme-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--theme-primary);
    transition: width 0.25s ease;
}

.theme-nav-link:hover {
    color: var(--theme-primary);
}

.theme-nav-link:hover::after {
    width: 100%;
}

.theme-demo-banner {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
}

/* Turbo fan: hover'da hizlanan donus animasyonu */
.theme-logo-spin svg {
    transition: transform 0.6s ease;
}

.theme-logo-spin:hover svg {
    animation: theme-spin 0.9s linear infinite;
}

@keyframes theme-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.theme-contact-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.theme-cta-bg {
    background-color: var(--theme-dark);
    background-image:
        radial-gradient(circle at 80% 50%, rgba(var(--theme-primary-rgb), 0.28), transparent 55%),
        radial-gradient(circle at 15% 30%, rgba(var(--theme-primary-rgb), 0.12), transparent 50%);
}

.theme-wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

@media (max-width: 639px) {
    .theme-wa-float span {
        display: none;
    }
    .theme-wa-float {
        padding: 0.875rem;
    }
}

[hidden] {
    display: none !important;
}

.theme-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.theme-mobile-menu.is-open {
    max-height: 22rem;
}

/* Mobil hamburger butonu: cizgiler acilinca X'e doner */
.theme-burger-box {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
}

.theme-burger-line {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.theme-burger-line:nth-child(1) { top: 0; }
.theme-burger-line:nth-child(2) { top: 6px; }
.theme-burger-line:nth-child(3) { top: 12px; }

.theme-burger.is-open {
    color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.08);
    border-color: rgba(var(--theme-primary-rgb), 0.35);
}

.theme-burger.is-open .theme-burger-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.theme-burger.is-open .theme-burger-line:nth-child(2) {
    opacity: 0;
}

.theme-burger.is-open .theme-burger-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ---------------- Mobil alt aksiyon cubugu ---------------- */
.theme-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
}

.theme-mobilebar-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    border-radius: 0.85rem;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.1;
    color: #64748b;
    text-align: center;
    transition: color 0.2s, background 0.2s;
}

.theme-mobilebar-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-mobilebar-item:hover {
    color: var(--theme-primary);
}

.theme-mobilebar-item:active {
    background: rgba(var(--theme-primary-rgb), 0.08);
}

.theme-mobilebar-cta {
    color: var(--theme-primary);
    justify-content: flex-end;
}

.theme-mobilebar-cta-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-top: -1.6rem;
    border-radius: 9999px;
    background: var(--theme-primary);
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb), 0.45);
}

@media (max-width: 767px) {
    body {
        padding-bottom: 4.75rem;
    }
    /* Alt cubuk WhatsApp'i zaten icerdiginden yuzen butonu mobilde gizle */
    .theme-wa-float {
        display: none;
    }
}

/* Hizmet bolgeleri (lokasyon SEO) — ic link cipleri */
.theme-region-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgb(226 232 240);
    background: #fff;
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.1;
    color: rgb(71 85 105);
    transition: color .2s, background-color .2s, border-color .2s;
}

.theme-region-chip:hover {
    border-color: rgba(var(--theme-primary-rgb), 0.4);
    background: rgba(var(--theme-primary-rgb), 0.06);
    color: var(--theme-primary);
}

.theme-region-chip--active {
    border-color: var(--theme-primary);
    background: rgba(var(--theme-primary-rgb), 0.1);
    color: var(--theme-primary);
}
