/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Sayfa kaydırmasını yumuşatır */
html {
    scroll-behavior: smooth;
}

/* Renk Paleti */
:root {
    --header-bg: #1a1a1a;        
    --body-bg: #000000;          
    --card-bg: #222222;          
    --primary-text-color: #f0f0f0; 
    --secondary-text-color: #b0b0b0; 
    --accent-color: #007bff;     
    --accent-hover: #0056b3;     
    --border-color: #333333;     
    --shadow-color: rgba(0, 0, 0, 0.4); 
    --success-color: #28a745;    
}

/* Genel Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--body-bg); 
    color: var(--primary-text-color); 
    line-height: 1.6;
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    align-items: center; 
    justify-content: flex-start;
    padding: 20px 10px; 
}

/* BAŞLIK VE NAVİGASYON MENÜSÜ */
header {
    width: 100%;
    max-width: 800px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
    text-align: center;
}

header h1 {
    font-weight: 700;
    font-size: 2.2em; 
    margin-bottom: 8px;
    letter-spacing: 1px;
}

header .subtitle {
    font-size: 1.0em; 
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 20px;
}

nav .nav-links {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px; 
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--secondary-text-color);
    font-weight: 500;
    font-size: 0.85em; /* 5 link sığması için küçültüldü */
    padding: 8px 12px; 
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav .nav-links a:hover {
    background-color: #333;
    color: var(--primary-text-color);
}

nav .nav-links a.active {
    background-color: var(--accent-color);
    color: white;
}

/* Ana İçerik Alanı */
main {
    width: 100%;
    max-width: 800px; 
    padding: 0 10px; 
    flex-grow: 1; 
}

/* Kart Yapısı */
.card {
    background-color: var(--card-bg); 
    border-radius: 15px; 
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

/* KART 2: TABLO VEYA PLACEHOLDER */
#table-placeholder {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5; 
}
.placeholder-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}
#table-placeholder h3 {
    font-size: 1.3em;
    color: var(--primary-text-color);
    margin-bottom: 5px;
}
#table-placeholder p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

#table-content-wrapper {
    opacity: 0; 
    display: none; 
    transition: opacity 0.4s ease-out; 
}

.card h2 {
    color: var(--accent-color); 
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    font-size: 1.3em; 
}

/* Form Alanı */
#car-selection-form {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 25px; 
    align-items: flex-end; 
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 200px; 
    flex: 1; 
    max-width: 280px; 
}
#car-selection-form label,
.contact-form label {
    font-weight: 500;
    color: var(--secondary-text-color);
    font-size: 0.9em;
}

#car-selection-form select,
.contact-form input,
.contact-form textarea,
#car-selection-form button {
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px; 
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease; 
    width: 100%;
    background-color: #333333; 
    color: var(--primary-text-color); 
}

#car-selection-form select {
    appearance: none; 
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b0b0b0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.6-6.4H19A17.6%2017.6%200%200%200%205.4%2069.4a17.6%2017.6%200%200%200%200%2025.3l128%20128a17.6%2017.6%200%200%200%2025.3%200l128-128c6.5-6.5%206.5-17.1%200-23.6z%22%2F%3E%3C%2Fsvg%3E'); 
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
}

#car-selection-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    outline: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form .form-group {
    max-width: 100%;
}
.contact-form textarea {
    resize: vertical;
}

/* Buton Stilleri */
#show-table-btn,
#contact-submit-btn,
#show-tip-btn { /* İpucu butonu eklendi */
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    border: none;
}
#show-table-btn:hover:not(:disabled),
#contact-submit-btn:hover:not(:disabled),
#show-tip-btn:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}
#show-table-btn:disabled,
#show-tip-btn:disabled {
    background-color: #555555; 
    cursor: not-allowed;
    opacity: 0.6;
    transform: translateY(0);
    box-shadow: none;
}

/* Hakkımızda/İletişim/Ana Sayfa İçerik Stilleri */
.content-card h3 {
    color: var(--primary-text-color);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}
.content-card p {
    color: var(--secondary-text-color);
    margin-bottom: 15px;
    line-height: 1.8;
}
.content-card ul {
    list-style-position: inside; 
    margin-left: 10px;
    margin-bottom: 15px;
    color: var(--secondary-text-color);
}
.content-card li {
    margin-bottom: 8px;
}

/* ======================================= */
/* === YENİ: İPUÇLARI SAYFASI STİLLERİ === */
/* ======================================= */
.article-image {
    width: 100%;
    height: auto; /* Otomatik yükseklik */
    max-height: 300px; 
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

#tip-body p {
    color: var(--secondary-text-color);
    margin-bottom: 15px;
    line-height: 1.8;
}
#tip-body ul, #tip-body ol {
    list-style-position: inside;
    margin-left: 10px;
    margin-bottom: 15px;
    color: var(--secondary-text-color);
}
#tip-body li {
    margin-bottom: 8px;
}
#tip-body h3 {
    color: var(--primary-text-color);
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}
#tip-body strong {
    color: var(--primary-text-color);
    font-weight: 600;
}

/* ======================================= */
/* === TABLO ALANI === */
/* ======================================= */
.table-wrapper {
    overflow-x: auto; 
}
.table-area table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.table-area th, 
.table-area td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-text-color); 
    font-weight: 500;
    vertical-align: middle;
}
.table-area thead th {
    background-color: #1a1a1a; 
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    text-align: center;
}
.table-area tbody tr:nth-child(even) {
    background-color: #2a2a2a; 
}
.table-area tbody tr:hover {
    background-color: #3a3a3a; 
}
.table-area td.details {
    color: var(--secondary-text-color); 
    font-weight: 400;
    font-size: 0.9em;
    text-align: left;
}
.table-area td.check-mark {
    text-align: center;
    font-size: 1.3em;
    color: var(--success-color); 
    white-space: nowrap; 
}

/* TABLO VURGULAMA STİLLERİ */
.table-area td.islem-degisim {
    font-weight: 600; 
    color: var(--primary-text-color); 
    opacity: 1;
}
.table-area td.islem-kontrol {
    color: var(--secondary-text-color); 
    font-style: italic; 
    opacity: 0.8;
}
.table-area td.islem-none {
    color: var(--secondary-text-color);
    opacity: 0.5; 
}

/* ======================================= */
/* === MOBİL GÖRÜNÜM === */
/* ======================================= */
@media (max-width: 768px) {
    body {
        padding: 10px; 
    }
    
    header {
        padding: 20px;
    }
    nav .nav-links {
        gap: 5px; 
    }
    nav .nav-links a {
        padding: 8px 10px; /* 5 link için ayarlandı */
        font-size: 0.8em; /* 5 linkin sığması için */
    }

    .card {
        padding: 20px;
    }
    
    #car-selection-form {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .form-group {
        max-width: 100%;
    }

    /* YARATICI MOBİL TABLO ÇÖZÜMÜ */
    .table-wrapper {
        overflow-x: hidden; 
    }
    .table-area thead {
        display: none; 
    }
    .table-area table, 
    .table-area tbody, 
    .table-area tr, 
    .table-area td {
        display: block;
        width: 100%;
    }
    .table-area tr {
        margin-bottom: 20px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        overflow: hidden; 
    }
    .table-area td {
        padding: 12px 15px 12px 45%; 
        position: relative; 
        border-bottom: 1px solid var(--border-color);
        text-align: right; 
        min-height: 1.5em; 
    }
    .table-area tr td:last-child {
        border-bottom: none; 
    }
    .table-area td::before {
        content: attr(data-label); 
        position: absolute;
        left: 15px;
        width: 40%; 
        padding-right: 10px;
        white-space: nowrap;
        text-align: left; 
        font-weight: 600;
        color: var(--secondary-text-color); 
        font-size: 0.9em;
    }
    .table-area td:first-child {
        background-color: #333; 
        color: var(--accent-color); 
        font-weight: 700;
        font-size: 1.1em;
        text-align: center;
        padding: 15px;
    }
    .table-area td:first-child::before {
        display: none; 
    }
    .table-area td.check-mark,
    .table-area td.details {
        text-align: right; 
    }
}