/* --- Genel Stil ve Modern Tasarım --- */
:root {
    --primary-color: #FF8C00;
    /* Turuncu */
    --secondary-color: #28a745;
    /* Yeşil */
    --light-color: #FFFFFF;
    /* Beyaz */
    --dark-color: #2c3e50;
    /* Koyu Mavi/Gri */
    --grey-color: #f0f2f5;
    --border-color: #e0e0e0;
    --container-width: 1100px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--grey-color);
    color: var(--dark-color);
}

.container {
    max-width: var(--container-width);
    margin: auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Header --- */
.main-header {
    background: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    color: var(--dark-color);
    font-size: 28px;
    font-weight: 700;
}

.main-header .logo span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* --- Ana İçerik --- */
.main-content {
    padding: 30px 0;
}

/* --- Kart Yapısı (Post, Form vb.) --- */
.card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h1,
.card h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* --- Gönderi Listesi --- */
.post {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post h2 a {
    color: var(--dark-color);
    transition: color 0.3s;
}

.post h2 a:hover {
    color: var(--primary-color);
}

.post.card {
    display: flex;
    gap: 15px;
}

/* --- Oylama Konteyneri --- */
.vote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 15px;
    border-right: 1px solid var(--border-color);
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
    transition: color 0.3s;
}

.vote-btn:hover {
    color: var(--primary-color);
}

.vote-score {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

/* --- Butonlar --- */
.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #e67e22;
}

/* --- Formlar --- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type='text'],
input[type='email'],
input[type='password'],
textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    color: #777;
}

/* --- Bildirim Dropdown Stilleri --- */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .nav-link .badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    position: absolute;
    top: 0;
    right: 0;
}

.nav-item-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-color);
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.nav-item-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--grey-color);
}

/* --- Mobil Uyumluluk (Responsive) --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav ul li {
        margin-left: 0;
    }
}