/* ============================================
   CSS Variables - Fertan Motor - Brand Colors
   ============================================ */
:root {
    /* Projenin ana renkleri - styles.css ile uyumlu */
    --primary: #E30A17;
    --primary-dark: #c00814;
    --primary-light: rgba(227, 10, 23, 0.1);
    --secondary: #4D4D4D;
    --secondary-dark: #333333;
    --success: #28a745;
    --success-dark: #20c997;
    --danger: #dc3545;
    --warning: #fd7e14;
    --info: #17a2b8;
    --dark: #1A1A1A;
    --gray: #6c757d;
    --light: #FAFAFA;
    --white: #ffffff;
    --border: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 15px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--dark);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, #1A1A1A 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.header h1 {
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.header-badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* ============================================
   EHLIYET SEÇİM PANELİ
   ============================================ */
.license-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 30px;
    margin-bottom: 24px;
}
.license-panel-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.license-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.license-card {
    flex: 1 1 0;
    min-width: 100px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
	display: flex;
    flex-direction: column;
    align-items: center;
}
.license-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.license-card.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(227,10,23,0.35);
    transform: translateY(-2px);
}
.license-card.active .lc-code { color: white; }
.license-card.active .lc-desc { color: rgba(255,255,255,0.85); }
.lc-icon { 
    font-size: 1.8em; 
    margin-bottom: 6px; 
    height: 35px; /* İkon küçülse bile kutu yüksekliği sabit kalır */
    display: flex;
    align-items: center;
    justify-content: center;
}
.lc-code {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.lc-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
}
.license-card.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

/* Tümü butonu */
.license-card.all-card .lc-icon { font-size: 1.5em; }

/* ============================================
   FİLTRE PANEL
   ============================================ */
.filter-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 30px;
    margin-bottom: 24px;
}
.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}
.filter-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-group select,
.filter-group input {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.filter-group select:disabled {
    background: var(--light);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
}
.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.btn-reset {
    padding: 10px 18px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-reset:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(220,53,69,0.05);
}

/* ============================================
   SONUÇ ÖZETI
   ============================================ */
.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}
.results-count {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.results-count strong {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-tag {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(227,10,23,0.25);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   TABLO
   ============================================ */
.table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead th {
    background: linear-gradient(135deg, #495057 0%, var(--gray) 100%);
    color: var(--white);
    padding: 14px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
thead th:first-child { border-radius: 0; }
thead th.center { text-align: center; }
tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: rgba(227,10,23,0.03); }
tbody tr.yasak-row { background: rgba(220,53,69,0.04); }
tbody tr.yasak-row:hover { background: rgba(220,53,69,0.07); }

.td-center { text-align: center; }

/* Marka badge */
.marka-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 13px;
    color: var(--dark);
}

/* Kategori badge */
.kategori-tag {
    background: var(--light);
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Ehliyet badge'leri */
.eh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: var(--transition);
}
.eh-badge.yes {
    background: rgba(40,167,69,0.12);
    color: var(--success);
    border-color: rgba(40,167,69,0.25);
}
.eh-badge.no {
    background: var(--light);
    color: #ced4da;
    border-color: var(--border);
}
.eh-badge.highlighted {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(227,10,23,0.35);
    transform: scale(1.1);
}

/* YASAK satırı */
.yasak-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(220,53,69,0.1);
    color: var(--danger);
    border: 1px solid rgba(220,53,69,0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

/* Hız sınırı */
.hiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(23,162,184,0.1);
    color: var(--info);
    border: 1px solid rgba(23,162,184,0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.hiz-none {
    color: var(--border);
    font-size: 13px;
}

/* ============================================
   BOŞ DURUM
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}
.empty-state .icon { font-size: 3.5em; margin-bottom: 14px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1em; color: var(--dark); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ============================================
   NOTLAR KUTUSU
   ============================================ */
.notes-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 28px;
    margin-top: 24px;
    border-left: 4px solid var(--primary);
}
.notes-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.notes-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notes-box ul li {
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.5;
    /* Flex iptal edildi, madde işareti için soldan boşluk bırakıldı */
    position: relative;
    padding-left: 14px; 
    margin-bottom: 8px; /* gap yerine satırlar arası boşluk */
}

.notes-box ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: 700;
    /* Madde işaretini metinden bağımsız olarak en sola sabitler */
    position: absolute;
    left: 0;
    top: 0; 
}

.page-footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    margin-top: 20px;
}

/* ============================================
   ANİMASYON
   ============================================ */
@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-row { animation: fadeInRow 0.2s ease; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    .main-content { padding: 16px; }
    .header-content { padding: 0 16px; }
    .header h1 { font-size: 1.1em; }
    .header-badge { font-size: 11px; padding: 3px 10px; }

    /* Ehliyet kartları */
    .license-panel { padding: 20px 16px; }
    .license-cards { gap: 8px; }
    .license-card { min-width: 80px; padding: 12px 8px; }
    .lc-icon { font-size: 1.5em; height: 28px; }
    .lc-code { font-size: 1.05em; }
    .lc-desc { font-size: 11px; }

    /* Filtreler — her biri tam genişlik, dikey yığın */
    .filter-panel { padding: 18px 16px; }
    .filter-row { gap: 10px; }
    .filter-group { min-width: 0; flex: 0 0 100%; }
    .filter-actions { width: 100%; }
    .btn-reset { width: 100%; justify-content: center; }

    /* Sonuç özeti */
    .results-summary { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Tablo */
    thead th, tbody td { padding: 10px 10px; font-size: 13px; }

    /* Notlar */
    .notes-box { padding: 18px 16px; }

    /* Footer */
    .page-footer-credits { flex-direction: column; gap: 12px; align-items: center; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 0.95em; }
    .license-card { min-width: 60px; padding: 10px 6px; }
    .lc-icon { font-size: 1.3em; }
    .lc-desc { font-size: 10px; }
    .lc-code { font-size: 0.95em; }
}