/*
Theme Name: Motodeo Ultra Enterprise
Theme URI: https://motodeo.com/
Author: Gemini Custom Craft
Description: Enterprise-grade WordPress theme with modular architecture, custom post types for brands/models, dedicated media center, advanced technical SEO controls, and high-performance optimizations.
Version: 3.0.0
Text Domain: motodeo
*/

:root {
    --motodeo-bg: #0a0a0a;
    --motodeo-surface: #111111;
    --motodeo-border: #1f1f1f;
    --motodeo-text: #ffffff;
    --motodeo-text-muted: #b3b3b3;
    --motodeo-primary: #ff5722;
    --motodeo-secondary: #00e5ff;
    --font-primary: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
}

* { box-sizing: border-box; }
body { background-color: var(--motodeo-bg); color: var(--motodeo-text); font-family: var(--font-primary); margin: 0; padding: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--motodeo-primary); text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
a:hover { color: var(--motodeo-secondary); }

img { max-width: 100%; height: auto; display: block; }

/* Structural Layouts */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Layout Separation Components */
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; text-transform: uppercase; font-weight: 900; letter-spacing: 1px; margin: 0 0 15px 0; }
.section-header p { color: var(--motodeo-text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* Buttons */
.motodeo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: var(--motodeo-primary); color: #fff !important; padding: 14px 30px; font-weight: 700; text-transform: uppercase; border-radius: 4px; border: 2px solid var(--motodeo-primary); font-size: 14px; cursor: pointer; }
.motodeo-btn:hover { background-color: transparent; color: var(--motodeo-primary) !important; }
.motodeo-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: transparent; color: #fff !important; padding: 14px 30px; font-weight: 700; text-transform: uppercase; border-radius: 4px; border: 2px solid #fff; font-size: 14px; cursor: pointer; }
.motodeo-btn-secondary:hover { background-color: #fff; color: var(--motodeo-bg) !important; }

/* Cards & Interface modules */
.card-surface { background: var(--motodeo-surface); border: 1px solid var(--motodeo-border); border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; }
.card-surface:hover { transform: translateY(-5px); border-color: var(--motodeo-primary); }

/* Header & Nav CSS */
.site-header { background-color: rgba(10, 10, 10, 0.95); border-bottom: 1px solid var(--motodeo-border); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.site-title a { font-size: 28px; font-weight: 900; color: #fff; letter-spacing: 1px; }
.site-title span { color: var(--motodeo-primary); }

.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-navigation a { color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: var(--motodeo-primary); }

/* Mobile Navigation Controls */
.mobile-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.off-canvas-menu { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: var(--motodeo-surface); border-left: 1px solid var(--motodeo-border); z-index: 2000; padding: 40px 30px; transition: right 0.4s ease; }
.off-canvas-menu.active { right: 0; }
.off-canvas-close { background: none; border: none; color: #fff; font-size: 24px; position: absolute; top: 20px; right: 20px; cursor: pointer; }
.off-canvas-menu ul { list-style: none; padding: 40px 0 0 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.off-canvas-menu a { color: #fff; font-size: 18px; font-weight: 600; text-transform: uppercase; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 1999; display: none; }
.menu-overlay.active { display: block; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .mobile-nav-toggle { display: block; }
    .main-navigation { display: none; }
    .section-padding { padding: 50px 0; }
    .section-header h2 { font-size: 28px; }
}
/* Hero */
.hero-section {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 160px 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    max-width: 750px;
    color: var(--motodeo-text-muted);
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.brands-showcase {
    background: #0f0f0f;
    border-bottom: 1px solid var(--motodeo-border);
}

.models-showcase {
    background: var(--motodeo-bg);
}

.media-showcase {
    background: #0b0b0b;
    border-top: 1px solid var(--motodeo-border);
    border-bottom: 1px solid var(--motodeo-border);
}

.contact-showcase {
    background-color: #060606;
    border-top: 1px solid var(--motodeo-border);
}

/* Brand Cards */
.brand-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-height: 70px;
    width: auto;
}

.brand-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.brand-excerpt,
.brands-empty,
.models-empty,
.media-empty {
    font-size: 14px;
    color: var(--motodeo-text-muted);
    margin: 0;
}

.brands-empty,
.models-empty,
.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

/* Model Cards */
.model-card {
    display: flex;
    flex-direction: column;
}

.model-image-link {
    display: block;
    background: #151515;
}

.model-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.model-content {
    padding: 25px;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.model-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.model-title a {
    color: #fff;
}

.model-price {
    background: var(--motodeo-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.model-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--motodeo-text-muted);
    margin-bottom: 20px;
    border-top: 1px solid var(--motodeo-border);
    padding-top: 10px;
}

.model-excerpt {
    color: var(--motodeo-text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.model-actions {
    display: grid;
    gap: 10px;
}

.model-detail-btn,
.model-contact-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
}

/* Media Cards */
.media-card {
    padding: 20px;
}

.media-date {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--motodeo-primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.media-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.media-title a {
    color: #fff;
}

.media-excerpt {
    font-size: 13px;
    color: var(--motodeo-text-muted);
    margin-bottom: 15px;
}

.media-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Contact */
.contact-grid {
    align-items: start;
    gap: 40px;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card,
.contact-action-panel {
    background: var(--motodeo-surface);
    border: 1px solid var(--motodeo-border);
    padding: 30px;
    border-radius: 8px;
}

.contact-card-primary {
    border-top: 4px solid var(--motodeo-primary);
}

.contact-card-secondary {
    border-top: 4px solid var(--motodeo-secondary);
}

.contact-card h3,
.contact-email-box h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #777;
    text-transform: uppercase;
    font-weight: 900;
}

.contact-phone {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-address {
    color: var(--motodeo-text-muted);
    margin: 15px 0 10px 0;
    font-size: 14px;
}

.contact-route {
    font-size: 13px;
    font-weight: 700;
    color: var(--motodeo-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-route-secondary {
    color: var(--motodeo-secondary);
}

.contact-email-box {
    padding-left: 5px;
}

.contact-email {
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.contact-action-panel {
    padding: 40px 30px;
}

.contact-action-panel h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
}

.contact-action-panel h3 i {
    color: #25d366;
}

.contact-action-buttons,
.online-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-service-btn {
    border-color: #25d366;
    color: #25d366 !important;
}

.online-stores,
.social-links-box {
    margin-top: 30px;
    border-top: 1px solid var(--motodeo-border);
    padding-top: 25px;
}

.online-stores h4,
.social-links-box h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    text-transform: none;
    text-align: center;
    color: var(--motodeo-text-muted);
}

.sahibinden-btn {
    background-color: #ffc107;
    color: #000 !important;
    border-color: #ffc107;
}

.arabam-btn {
    border-color: #d32f2f;
    color: #d32f2f !important;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #1f1f1f;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
}

/* Mobile Refinements */
@media (max-width: 767px) {
    .hero-section {
        padding: 110px 0;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-description {
        font-size: 16px;
    }

    .model-header {
        flex-direction: column;
    }

    .contact-phone {
        font-size: 20px;
    }
}
/* Footer */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--motodeo-border);
    padding: 30px 0;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 14px;
    color: var(--motodeo-text-muted);
}

.footer-meta {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #666;
}

.single-model-extra-description {
    margin-top: 30px;
    padding: 25px;
    background: var(--motodeo-surface);
    border: 1px solid var(--motodeo-border);
    border-radius: 8px;
    color: var(--motodeo-text-muted);
}

.single-model-gallery {
    margin-top: 50px;
}

.single-model-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.single-model-gallery-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--motodeo-border);
    background: #111;
}

.single-model-gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.single-model-videos {
    margin-top: 50px;
}

.single-model-videos .single-model-video {
    margin-top: 20px;
}

@media (max-width: 767px) {
    .single-model-gallery-grid {
        grid-template-columns: 1fr;
    }

    .single-model-gallery-grid img {
        height: auto;
    }
}

/* Model gallery image animation */
.single-model-gallery-grid a {
    position: relative;
    overflow: hidden;
}

.single-model-gallery-grid img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.single-model-gallery-grid a:hover img {
    transform: scale(1.06);
    filter: brightness(1.12);
}

.motodeo-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:30px;
}

.motodeo-lightbox.active{
    display:flex;
}

.motodeo-lightbox-image{
    max-width:90%;
    max-height:90vh;
    border-radius:12px;
}

.motodeo-lightbox-close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:42px;
    color:#fff;
    cursor:pointer;
    line-height:1;
}

.motodeo-lightbox-prev,
.motodeo-lightbox-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.12);
    border:none;
    width:56px;
    height:56px;
    border-radius:50%;
    cursor:pointer;
    color:#fff;
    font-size:20px;
}

.motodeo-lightbox-prev{
    left:25px;
}

.motodeo-lightbox-next{
    right:25px;
}

.motodeo-lightbox-prev:hover,
.motodeo-lightbox-next:hover{
    background:rgba(255,255,255,.22);
}

.model-image-wrap {
    position: relative;
    overflow: hidden;
}

.model-image-link {
    display: block;
    overflow: hidden;
}

.model-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.model-card:hover .model-image {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.model-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.model-stock-badge,
.model-brand-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,.72);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.model-stock-badge {
    background: rgba(37,211,102,.85);
    color: #06140b;
}

.model-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.model-detail-btn,
.model-contact-btn {
    width: 100%;
    text-align: center;
}

.brand-card-link {
    display: block;
    color: inherit;
}

.brand-card-link:hover {
    color: inherit;
}

.brand-official-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 800;
    color: var(--motodeo-primary);
    text-transform: uppercase;
}

@media (max-width: 767px) {
    #blog-showcase .grid-3 {
        display: flex;
        overflow-x: auto;
        gap: 18px;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    #blog-showcase .grid-3 article {
        min-width: 82%;
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

.blog-card-image-link {
    display: block;
    overflow: hidden;
}

.blog-card-image,
.blog-card-placeholder {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.blog-card-placeholder {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 40px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    min-height: 56px;
}

.blog-card-title a {
    color: #fff;
}

.blog-card-excerpt {
    color: var(--motodeo-text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--motodeo-border);
    padding-top: 15px;
    gap: 15px;
}

.blog-card-footer span {
    font-size: 12px;
    color: #666;
}

.blog-card-footer a {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--motodeo-primary);
    white-space: nowrap;
}

.blog-all-link {
    text-align: center;
    margin-top: 40px;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #555;
    padding: 40px 0;
}

@media (max-width: 767px) {
    #blog-showcase .blog-grid {
        display: flex;
        overflow-x: auto;
        gap: 18px;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    #blog-showcase .blog-card {
        min-width: 82%;
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

.contact-showcase h2,
.contact-showcase h3,
.online-stores-section h2,
.online-stores-section h3,
.social-media-section h2,
.social-media-section h3 {
    text-transform: uppercase !important;
}

.brand-card {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.brand-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 0;
}

.brand-card > * {
    position: relative;
    z-index: 1;
}

.brand-logo img {
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 15px auto;
}

/* Marka kartları: logo eşitleme + arka planı düzgün gösterme */
.brand-card {
    min-height: 240px;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.brand-logo {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-width: 180px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.single-brand-logo {
    text-align: center;
    margin-bottom: 40px;
}

.single-brand-logo img {
    max-width: 260px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Genel koyuluğu biraz yumuşat */
:root {
    --motodeo-bg: #121418;
    --motodeo-surface: #1b1f26;
    --motodeo-border: rgba(255,255,255,.13);
}

/* Marka kartlarında arka plan karartmasını azalt */
.brand-card::before {
    background: rgba(0,0,0,.48) !important;
}

/* Logo görünürlüğünü artır */
.brand-logo {
    min-height: 110px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(4px);
}

.brand-logo img {
    max-width: 210px !important;
    max-height: 85px !important;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.65));
}

/* T-Bike gibi açık/renkli logolar arka planda kaybolmasın */
.brand-card:hover .brand-logo {
    background: rgba(0,0,0,.52);
}

.brand-excerpt {
    display: block !important;
    max-width: 260px;
    margin: 18px auto 0 auto !important;
    color: #fff !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 3px 12px rgba(0,0,0,.85);
}

.brand-card {
    justify-content: center !important;
}