:root {
    --primary: #1a237e;
    --secondary: #283593;
    --accent: #d32f2f;
    --text: #212121;
    --text-light: #757575;
    --bg: #f5f5f5;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--primary);
    height: 50px;
    border-bottom: 1px solid var(--secondary);
    position: relative;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.logo img {
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.search-box {
    margin-left: 30px;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
}

.sidebar h3 {
    color: var(--text);
    font-size: 14px;
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar ul {
    list-style: none;
    margin-bottom: 25px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.sidebar ul li a:hover {
    background: var(--bg);
}

.sidebar ul li a i,
.sidebar ul li a img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 16px;
}

.sidebar ul li a img {
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Kategori İkonları ve Renkleri */
.cat-elektrikli i { color: #2196F3; }
.cat-mekanik i { color: #F44336; }
.cat-yedek-parca i { color: #4CAF50; }
.cat-lastik i { color: #FF9800; }
.cat-motor i { color: #795548; }
.cat-kaporta i { color: #9C27B0; }
.cat-performans i { color: #FF5722; }
.cat-yakit i { color: #607D8B; }
.cat-beyin i { color: #E91E63; }
.cat-egzoz i { color: #9E9E9E; }
.cat-fren i { color: #F44336; }
.cat-sanziman i { color: #3F51B5; }

/* Entry Count Badge */
.entry-count {
    margin-left: auto;
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content */
.main-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

/* Soru başlığı */
.question-title {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Soru kartı */
.question-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* Kullanıcı bilgi alanı */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.user-title {
    font-size: 12px;
    color: var(--text-light);
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

/* Soru içeriği */
.question-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}

/* Etiketler */
.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
}

.tag:hover {
    background: #e0e0e0;
}

/* Etkileşim butonları */
.interaction-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.interaction-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.interaction-btn.liked {
    color: var(--accent);
}

/* Cevaplar bölümü */
.answers-section {
    margin-top: 30px;
}

.answers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.answers-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.sort-answers {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
}

/* Cevap kartı */
.answer-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.answer-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.best-answer {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.best-answer-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* Araç bilgisi */
.vehicle-info {
    background: var(--bg);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 13px;
    color: var(--text);
}

.vehicle-info i {
    color: var(--accent);
    margin-right: 8px;
}

/* Header içine eklenecek kullanıcı menüsü */
.user-nav {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.login-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.register-btn {
    color: var(--primary);
    background: #fff;
}

.nav-btn:hover {
    opacity: 0.9;
}

/* Form stilleri */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary);
}

.btn-success {
    background: #4CAF50;
    color: #fff;
}

.btn-danger {
    background: var(--accent);
    color: #fff;
}

/* Alert mesajları */
.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .sidebar {
        display: none;
    }
    
    .search-box {
        max-width: 100%;
        margin-left: 15px;
    }
    
    .header-inner {
        padding: 0 15px;
    }
    
    .question-title {
        font-size: 20px;
    }
    
    .user-nav {
        gap: 5px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .admin-nav {
        padding: 12px;
        gap: 6px;
    }
    
    .admin-nav a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Question list item */
.question-list-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.question-list-item:first-child {
    padding-top: 0;
}

.question-list-item:last-child {
    border-bottom: none;
}

.question-list-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.question-list-title a {
    color: var(--text);
    text-decoration: none;
}

.question-list-title a:hover {
    color: var(--primary);
}

.question-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* Admin panel */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-nav a {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: var(--bg);
    border: 1px solid transparent;
}

.admin-nav a:hover {
    background: #e8e8e8;
    color: var(--primary);
}

.admin-nav a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 14px;
}

table td {
    font-size: 14px;
}

/* User dropdown */
.user-dropdown {
    position: relative;
    z-index: 1000;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-top: 5px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.user-dropdown-menu a:hover {
    background: var(--bg);
}

/* Bildirim Dropdown */
.notification-dropdown {
    position: relative;
    margin-right: 15px;
}

.notification-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-toggle i {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 5px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    max-height: 500px;
    overflow: hidden;
}

.notification-dropdown:hover .notification-dropdown-menu {
    display: block;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--bg);
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e6f2ff;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: var(--text-light);
}

.notification-dot {
    position: absolute;
    top: 18px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.notification-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    margin-top: 60px;
    padding: 50px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 13px;
    width: 18px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-stats {
    display: flex;
    gap: 25px;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.footer-stats i {
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 35px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-stats {
        flex-direction: column;
        gap: 10px;
    }

    .footer-column:first-child {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

