/*
Theme Name: Eskişehir Vatandaş Platformu
Theme URI: https://deneme1.medyaket.com
Author: Eskişehir Vatandaş Platformu
Author URI: https://deneme1.medyaket.com
Description: Eskişehir'deki altyapı, ulaşım, çevre ve diğer sorunları bildirmek için tasarlanmış vatandaş platformu teması. Faz 1: Harita entegrasyonu (Leaflet+OSM), KVKK uyumluluğu, otomatik e-posta bildirimleri, güvenlik sertleştirme, hakaret filtresi.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eskisehir-platform
Tags: citizen-platform, community, government, civic-engagement, map

Bu tema vatandaşların yerel yönetime sorun bildirebileceği bir platform sağlar.
*/

/* ============================================
   ANA STILLER - ESKIŞEHIR VATANDAŞ PLATFORMU
   ============================================ */

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

:root {
    --c-primary: #1D9E75;
    --c-primary-dark: #0F6E56;
    --c-primary-light: #E1F5EE;
    --border: #e0e0e0;
    --text-muted: #666;
    --bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a1a;
    background: var(--bg);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Navigation */
.site-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--c-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.nav-btn.active {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}

.admin-btn {
    background: var(--c-primary) !important;
    color: white !important;
    padding: 6px 16px !important;
}

.admin-btn:hover {
    background: var(--c-primary-dark) !important;
}

/* Page Layout */
.page {
    padding: 2rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.hero h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #1a1a1a;
}

.hero p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--c-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--c-primary-light);
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 0 0 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-num {
    font-size: 28px;
    font-weight: 600;
    color: var(--c-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
}

/* Filter Chips */
.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-chip {
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
}

.filter-chip.active {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-color: var(--c-primary);
}

.filter-chip:hover {
    border-color: #bbb;
}

/* Issue Cards */
.issue-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.issue-card:hover {
    border-color: #bbb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.issue-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.cat-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-altyapi { background: #E1F5EE; color: #085041; }
.cat-ulasim { background: #E6F1FB; color: #0C447C; }
.cat-cevre { background: #EAF3DE; color: #27500A; }
.cat-guvenlik { background: #FAECE7; color: #712B13; }
.cat-diger { background: #F1EFE8; color: #444; }

.issue-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    color: #1a1a1a;
}

.issue-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.dot-bekliyor { background: #EF9F27; }
.dot-inceleniyor { background: #378ADD; }
.dot-cozuldu { background: #1D9E75; }
.dot-reddedildi { background: #E24B4A; }

.vote-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
    font-weight: 500;
}

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

.vote-btn.voted {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-color: var(--c-primary);
}

.img-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

/* Forms */
.form-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.form-section h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #1a1a1a;
    font-family: inherit;
    transition: all 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-light);
}

.upload-zone p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.success-msg {
    background: var(--c-primary-light);
    border: 1px solid var(--c-primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.success-msg .icon {
    font-size: 18px;
    color: var(--c-primary-dark);
}

.success-msg p {
    font-size: 14px;
    color: var(--c-primary-dark);
    font-weight: 500;
}

.error-msg {
    background: #FCEBEB;
    border: 1px solid #E24B4A;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #791F1F;
    font-size: 14px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.modal h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    margin-top: -4px;
    line-height: 1;
}

.modal-close:hover {
    color: #1a1a1a;
}

.detail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-label {
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-bekliyor { background: #FAEEDA; color: #633806; }
.status-inceleniyor { background: #E6F1FB; color: #0C447C; }
.status-cozuldu { background: #E1F5EE; color: #085041; }
.status-reddedildi { background: #FCEBEB; color: #791F1F; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.empty-state p {
    font-size: 14px;
}

/* Site Footer */
.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--c-primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 24px;
    }
    .site-nav {
        padding: 0 1rem;
    }
    .logo {
        font-size: 14px;
    }
    .nav-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
}
