/* Genel Stil Kuralları */
:root {
    --primary-color: #005a9c; /* Daha kurumsal bir mavi */
    --secondary-color: #333; /* Koyu gri/siyah metinler için */
    --background-color: #f4f6f9; /* Hafif kirli beyaz arka plan */
    --text-color: #333;
    --white-color: #ffffff;
    --border-color: #e0e0e0; /* Daha yumuşak bir sınır rengi */
    --header-bg: #ffffff;
    --footer-bg: #2c3e50; /* Koyu lacivert/gri footer */
    --footer-text: #ecf0f1; /* Açık renk footer metni */
    --success-color: #27ae60;
    --error-color: #c0392b;
    --warning-color: #f39c12; /* YENİ EKLENDİ - Uyarı rengi */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1140px; /* Daha modern bir genişlik */
    margin: 0 auto;
    padding: 0 15px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* === HEADER VE MENÜ DÜZENLEMESİ BAŞLANGICI === */

.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Küçük ekranlar için hazırlık */
}

.site-branding {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-branding:hover .site-title {
    color: var(--primary-color);
}

.site-branding .custom-logo {
    height: 60px; /* Yüksekliği sabitleyip genişliği otomatik ayarlamak daha iyi sonuç verir */
    width: auto;
    margin-right: 15px;
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    transition: color 0.2s;
}
.site-title a { text-decoration: none; color: inherit; }

.site-description {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* Ana Navigasyon (Menü) */
.main-navigation ul {
    list-style: none;
    display: flex; /* MENÜYÜ YATAY YAPAN EN ÖNEMLİ KOD */
    flex-wrap: wrap; /* Ekran küçülürse menü elemanları alt satıra geçer */
    justify-content: flex-end; /* Menüyü sağa yaslar */
    align-items: center; /* Dikeyde ortalar */
    gap: 5px; /* Menü elemanları arası boşluk */
}

.main-navigation ul li a {
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    display: block;
    font-size: 0.95rem;
    text-align: center;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
    background-color: rgba(0, 90, 156, 0.05); /* Mavi rengin hafif bir tonu */
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation ul li.current-menu-item a {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* === HEADER VE MENÜ DÜZENLEMESİ SONU === */


/* Ana İçerik */
.site-content {
    padding: 50px 0;
}

article {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

article h1, article h2, article h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.entry-title {
    font-size: 2.8rem;
    font-weight: 800;
}

.entry-content p, .entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
}

.entry-content ul, .entry-content ol {
    padding-left: 25px;
}
.entry-content ul li::marker {
    color: var(--primary-color);
}


/* Alt Kısım (Footer) */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0;
    text-align: center;
}
.site-footer h2 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--white-color);
    border-bottom: 1px solid #4a627a;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-navigation a {
    color: var(--white-color);
    font-weight: 500;
}
.footer-navigation a:hover {
    color: #a7c0d6;
}

.site-info {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Formlar */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}


.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-group a { font-size: 0.9em; }

fieldset.form-group {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 5px;
}
fieldset.form-group legend {
    padding: 0 10px;
    font-weight: 600;
    width: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.btn:hover, .btn:focus {
    background-color: #004a80;
    border-color: #004a80;
    color: var(--white-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-success { background-color: var(--success-color); border-color: var(--success-color); }
.btn-danger { background-color: var(--error-color); border-color: var(--error-color); }
.btn-warning { background-color: var(--warning-color); border-color: var(--warning-color); color: #fff; }
.btn-warning:hover { background-color: #e67e22; border-color: #e67e22; color: #fff; }


/* Mesajlar ve Uyarılar */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}
.message.success {
    color: #1a5933;
    background-color: #d1f0df;
    border-color: #a3e0bf;
}
.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Haberler Sayfası */
.news-list {
    list-style: none;
    display: grid;
    gap: 30px;
}

.news-item {
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.news-item-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-item-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}
.news-item-content h2 a {
    text-decoration: none;
    color: var(--secondary-color);
}
.news-item-content h2 a:hover {
    color: var(--primary-color);
}
.news-item-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}
.news-item-content p {
    flex-grow: 1;
    margin-bottom: 15px;
}
.read-more {
    font-weight: 700;
    align-self: flex-start;
}

/* Haber Detay Sayfası */
.social-share {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.social-share h3 {
    margin-bottom: 10px;
}
.social-share-links a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 15px;
    border-radius: 5px;
    color: white !important; /* a:hover rengini ezer */
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.social-share-links a:hover {
    opacity: 0.85;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1DA1F2; }
.share-whatsapp { background: #25D366; }

/* Admin Paneli */
.admin-wrapper {
    display: flex;
}
.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: var(--white-color);
    min-height: 100vh;
    padding: 20px;
    flex-shrink: 0;
}
.admin-sidebar h3 {
    color: #fff;
    border-bottom: 1px solid #4a627a;
    padding-bottom: 10px;
    font-size: 1.2rem;
}
.admin-sidebar ul {
    list-style: none;
    margin-top: 20px;
}
.admin-sidebar ul li a {
    display: block;
    color: #bdc3c7;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
    padding-left: 10px;
}
.admin-sidebar ul li a:hover, .admin-sidebar ul li.active a {
    color: #fff;
    background-color: rgba(236, 240, 241, 0.1);
}

.admin-content {
    flex-grow: 1;
    padding: 30px;
    background-color: var(--background-color);
}

.dashboard-stat {
    background: var(--white-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 5px solid var(--primary-color);
}
.dashboard-stat h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #555;
}
.dashboard-stat .count {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.admin-table th, .admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #555;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table tr:hover {
    background-color: #f8f9fa;
}
.status-pending { color: #f39c12; font-weight: bold; }
.status-approved { color: var(--success-color); font-weight: bold; }
.status-rejected { color: var(--error-color); font-weight: bold; }

.action-links {
    white-space: nowrap; /* Butonların alt satıra düşmesini engelle */
}
.action-links a, .action-links button {
    margin-right: 5px;
    font-size: 0.9em;
    padding: 6px 12px; /* Buton iç boşluğunu küçült */
    vertical-align: middle; /* Buton ve form elemanlarını hizala */
}
.action-links select {
    padding: 4px; /* Select kutusunu küçült */
    vertical-align: middle;
}


/* Tüzük sayfası için özel stiller */
.MsoNormalTable {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.MsoNormalTable td, .MsoNormalTable th {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}
.MsoNormalTable thead th, .MsoNormalTable th {
    background-color: #e9ecef;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Sayfalama (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2.5rem;
    list-style: none;
}
.pagination a {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-weight: 500;
}
.pagination a:hover {
    background-color: #e9ecef;
    text-decoration: none;
}
.pagination a.current {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    cursor: default;
}