/* Ana Renk Paleti */
:root {
    --bg-dark: #121212;
    --bg-header: #1A1A1A;
    --accent-gold: #e2c86e;
    --text-light: #ffffff;
    --box-bg: #323a4e;
}

/* GENEL SIFIRLAMA VE BOX MODEL KURALI */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Genel Stil Ayarları */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-image: url('header.png');
    background-size: cover;
    background-attachment: fixed;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Masaüstü için Header boşluğu */
}

a {
    text-decoration: none;
    color: var(--text-light);
}

/* --- HEADER STİLLERİ --- */

.main-header {
    background-color: var(--bg-header);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo img.tc-remaps-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

/* Navigasyon ve Menü */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    padding-bottom: 5px;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.dropbtn:hover {
    opacity: 1;
    color: var(--accent-gold);
}

/* Alt Çizgi Vurgusu */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease-out;
}

.main-nav a:hover::after,
.main-nav .current-page::after {
    width: 100%;
}

/* --- DROPDOWN MENÜ STİLLERİ --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-header);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.7);
    z-index: 1001;
    top: calc(100% + 1px);
    right: 0;
    text-align: left;
    border: 1px solid #333;
    border-top: none;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    display: block;
    font-size: 13px;
    text-transform: none;
    opacity: 1;
}

.dropdown-content a:hover {
    background-color: var(--box-bg);
    color: var(--accent-gold);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.main-nav .dropbtn {
    padding-right: 20px;
}

/* --- MOBİL MENÜ İÇİN TEMEL AYARLAR (Masaüstünde Gizli) --- */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none; /* Masaüstünde gizli */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- ANA İÇERİK STİLLERİ --- */

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.feature-box {
    background-color: var(--box-bg);
    padding: 20px;
    border-radius: 5px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s;
    border-left: 3px solid var(--accent-gold);
}

.feature-box:hover {
    background-color: #3e4860;
}

.feature-box strong {
    margin-top: 5px;
    color: var(--accent-gold);
    font-weight: 700;
}

.tuning-calculator-section {
    background-color: var(--bg-header);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.tuning-calculator-section h3 {
    border-bottom: 2px solid var(--box-bg);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-align: center;
    font-size: 24px;
}

#ecuCalculateTool {
    margin-top: 20px;
    min-height: 50px;
}

/* --- FOOTER STİLLERİ --- */
footer {
    background-color: var(--bg-header);
    padding: 20px 15px;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto 15px auto;
    flex-wrap: wrap;
}

.footer-links div {
    padding: 5px 10px;
}

.footer-links a, .footer-links div {
    color: var(--accent-gold) !important;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-light) !important;
}

/* --- HİZMET VE BİLGİ SAYFASI STİLLERİ --- */

.service-page {
    padding-top: 50px;
    min-height: 80vh;
}

.service-title {
    color: var(--accent-gold);
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--box-bg);
}

.service-content {
    background-color: var(--bg-header);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ccc;
}

.service-content strong {
    color: var(--accent-gold);
    font-weight: 700;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-box {
    background-color: var(--box-bg);
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid var(--accent-gold);
}

.detail-box h4 {
    color: var(--accent-gold);
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px dashed #555;
    padding-bottom: 5px;
}

.detail-box p {
    font-size: 14px;
    margin-bottom: 0;
    color: #eee;
}

.social-links {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #333;
}

.social-links a {
    font-size: 24px;
    margin: 0 15px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.1);
}

.chip-tuning-info-section {
    background-color: var(--bg-header);
    padding: 30px;
    border-radius: 5px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chip-tuning-info-section .info-title {
    color: var(--accent-gold);
    text-align: center;
    font-size: 24px;
    border-bottom: 2px solid var(--box-bg);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.info-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    background-color: var(--box-bg);
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--accent-gold);
}

.info-box h4 {
    color: var(--text-light);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 15px;
    line-height: 1.5;
    color: #ccc;
}

.info-box strong {
    color: var(--accent-gold);
}

/* ============== MOBİL UYUMLULUK VE HAMBURGER MENÜ ============== */
@media (max-width: 768px) {

    /* Header Yapısı: Logo Sola, İkon Sağa */
    .main-header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative; /* Mobilde sabit kalmasını istemiyorsan 'relative' yap */
    }

    /* Header relative olunca üst boşluğa gerek kalmaz */
    body {
        padding-top: 0;
    }

    /* Logonun boyutu */
    .logo img.tc-remaps-logo {
        max-height: 45px;
    }

    /* Hamburger İkonunu Görünür Yap */
    .menu-icon {
        display: flex;
        z-index: 1002;
    }

    /* Navigasyon Menüsünü Başlangıçta Gizle ve Pozisyonla */
    .main-nav {
        display: none; /* Gizli */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        border-top: 1px solid #333;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 1000;
        animation: slideDown 0.3s ease forwards;
    }

    /* Menü Listesi Dikey Hizalama */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        width: 100%;
    }

    .main-nav li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        font-size: 16px;
        display: block;
        padding: 10px;
        width: 100%;
    }

    /* --- MENÜNÜN AÇILMA MANTIĞI (Checkbox Checked) --- */
    #menu-toggle:checked ~ .main-nav {
        display: block;
    }

    /* İkon Animasyonu (X şekli) */
    #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }
    #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    /* Dropdown Menü Mobilde Hep Görünür Olabilir veya Tıklanınca */
    .dropdown-content {
        position: static;
        background-color: rgba(255,255,255,0.05);
        box-shadow: none;
        border: none;
        display: none; /* İstersen 'block' yapıp hep açık tutabilirsin */
        width: 100%;
    }

    /* Mobilde dropdown başlığına gelince aç */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Diğer Mobil Düzenlemeler */
    .container {
        padding: 0 15px;
    }

    .features {
        gap: 10px;
    }

    .info-content-grid,
    .service-details {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .service-title {
        font-size: 24px;
    }

    .service-content {
        padding: 20px;
    }
}

/* Menü Açılış Animasyonu */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}