/* Modern Variables */
:root {
    --primary: #0284c7; /* Koyu Mavi */
    --primary-light: #38bdf8;
    --primary-dark: #075985;
    --secondary: #0f172a; /* Çok koyu lacivert (Neredeyse siyah) */
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header & Navbar */
.navbar { background: var(--surface); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(2, 132, 199, 0.18)); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; color: var(--text-main); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero { position: relative; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%); color: white; padding: 6rem 0; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml;utf8,<svg opacity="0.05" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white"/></svg>') center/cover; }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.025em; line-height: 1.1; }
.hero p { font-size: 1.25rem; color: #e0f2fe; margin-bottom: 3rem; }

/* Advanced Search Bar */
.search-box { background: var(--surface); padding: 0.5rem; border-radius: 999px; display: flex; box-shadow: var(--shadow-lg); max-width: 700px; margin: 0 auto; gap: 0.5rem; }
.search-input { flex: 1; border: none; padding: 1rem 1.5rem; font-size: 1rem; border-radius: 999px; outline: none; background: transparent; color: var(--text-main); }
.search-select { border: none; padding: 1rem; border-left: 1px solid var(--border-color); outline: none; background: transparent; color: var(--text-main); font-weight: 500; cursor: pointer; }
.search-btn { background: var(--primary); color: white; border: none; padding: 1rem 2rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.search-btn:hover { background: var(--primary-dark); }

/* Section Titles */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin: 4rem 0 2rem 0; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--secondary); letter-spacing: -0.025em; }
.view-all { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
.view-all:hover { color: var(--primary-dark); text-decoration: underline; }
.category-hero { background: var(--surface); border-bottom: 1px solid var(--border-color); padding: 3rem 0; }
.category-hero p { max-width: 720px; margin-top: 1rem; color: var(--text-muted); font-size: 1.05rem; }
.empty-state { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 3rem; text-align: center; box-shadow: var(--shadow-sm); }
.empty-state h2 { color: var(--secondary); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); }

/* Cards Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }

/* Modern Card (Sportif Hover Efektli) */
.card { background: var(--surface); border-radius: 24px; padding: 1rem; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.02); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; border: 2px solid transparent; }
.card:hover { transform: translateY(-10px) rotate(1deg); border-color: var(--primary-light); box-shadow: 0 30px 60px rgba(2, 132, 199, 0.15); }
.card-img { height: 220px; background-color: #e2e8f0; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
/* Pseudo image since we don't have real uploads yet */
.card-img::after { content: "Resim Yok"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.875rem; background: linear-gradient(45deg, #f1f5f9, #e2e8f0); }
.card-img.has-image::after { display: none; }
.badge { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); color: var(--primary-dark); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; z-index: 10; }
.card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--secondary); }
.card-location { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.25rem; }
.card-desc { font-size: 0.95rem; color: var(--text-main); margin-bottom: 1.5rem; flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.views { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }

/* Detail Page */
.detail-header { padding: 4rem 0; background: var(--surface); border-bottom: 1px solid var(--border-color); }
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary); }
.detail-title { font-size: 3rem; font-weight: 800; color: var(--secondary); margin-bottom: 1rem; line-height: 1.2; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-edit-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; padding: 0.55rem 0.8rem; border-radius: 999px; background: #e0f2fe; color: var(--primary-dark); border: 1px solid rgba(14, 165, 233, 0.22); font-size: 0.9rem; font-weight: 800; box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12); }
.admin-edit-link::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.admin-edit-link:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.detail-meta { display: flex; gap: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.detail-content { padding: 4rem 0; background: var(--bg-color); }
.content-body { max-width: 800px; background: var(--surface); padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); font-size: 1.125rem; }
.content-body h2 { font-size: 1.75rem; margin: 2rem 0 1rem 0; color: var(--secondary); }
.content-body p { margin-bottom: 1.5rem; }
.content-body ul { list-style: none; margin: 0 0 1.5rem 0; padding: 0; }
.content-body li { position: relative; padding-left: 2rem; margin-bottom: 0.65rem; }
.content-body li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 1.15rem; height: 1.15rem; background-color: var(--primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Cpath d='m5 12 3 3'/%3E%3Cpath d='m19 12-3 3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Cpath d='m5 12 3 3'/%3E%3Cpath d='m19 12-3 3'/%3E%3C/svg%3E") center / contain no-repeat; }
.map-section { width: 100%; max-width: 800px; margin-top: 2rem; background: var(--surface); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.map-section h2 { margin: 0 0 1rem 0; color: var(--secondary); font-size: 1.5rem; }
.map-frame { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--border-color); aspect-ratio: 16 / 9; background: #e2e8f0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { display: inline-flex; margin-top: 1rem; color: var(--primary); font-weight: 700; }
.map-link:hover { color: var(--primary-dark); text-decoration: underline; }
.content-body figure.table { width: 100%; margin: 1.75rem 0 2rem; overflow-x: auto; border: 1px solid rgba(14, 165, 233, 0.18); border-radius: var(--radius-md); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06); background: linear-gradient(180deg, #f8fdff 0%, #ffffff 100%); }
.content-body table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 1rem; line-height: 1.45; }
.content-body table thead { background: linear-gradient(135deg, var(--primary-dark), #0e7490); color: #fff; }
.content-body table th { padding: 0.95rem 1rem; text-align: left; font-weight: 800; letter-spacing: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); white-space: nowrap; }
.content-body table th:first-child { border-top-left-radius: var(--radius-md); }
.content-body table th:last-child { border-top-right-radius: var(--radius-md); }
.content-body table td { padding: 0.9rem 1rem; color: var(--text-main); border-bottom: 1px solid #e0f2fe; background: rgba(255, 255, 255, 0.92); }
.content-body table tbody tr:nth-child(even) td { background: #f0f9ff; }
.content-body table tbody tr:hover td { background: #e0f2fe; }
.content-body table tbody tr:last-child td { border-bottom: 0; }
.content-body table td:first-child { font-weight: 700; color: var(--primary-dark); }

/* Comments */
.comments-section { width: 100%; max-width: 800px; margin-top: 3rem; }
.comments-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.comments-kicker { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.comments-kicker::before { content: ""; width: 1.15rem; height: 1.15rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19c3 0 3-2 6-2s3 2 6 2 3-2 6-2'/%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M5 14h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19c3 0 3-2 6-2s3 2 6 2 3-2 6-2'/%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7 8 5-5 5 5'/%3E%3Cpath d='M5 14h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.comments-heading h2 { margin: 0.25rem 0 0; font-size: 1.7rem; color: var(--secondary); }
.comments-count { flex: 0 0 auto; padding: 0.35rem 0.75rem; border: 1px solid rgba(2, 132, 199, 0.18); border-radius: 999px; background: #f0f9ff; color: var(--primary-dark); font-size: 0.85rem; font-weight: 800; }
.comment-notice { padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; font-weight: 700; }
.comment-notice.success { background: #dcfce7; color: #166534; }
.comment-notice.error { background: #fee2e2; color: #991b1b; }
.comments-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.comment-card { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; background: var(--surface); border: 1px solid rgba(2, 132, 199, 0.14); border-radius: var(--radius-lg); padding: 1.15rem; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06); transition: border-color 0.2s, box-shadow 0.2s; }
.comment-card:hover { border-color: rgba(2, 132, 199, 0.28); box-shadow: 0 18px 34px rgba(2, 132, 199, 0.10); }
.comment-avatar { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #e0f2fe, #ccfbf1); color: var(--primary-dark); border: 1px solid rgba(2, 132, 199, 0.18); font-weight: 900; font-size: 1.1rem; text-transform: uppercase; }
.comment-author { color: var(--primary-dark); font-weight: 800; margin-bottom: 0.35rem; }
.comment-main p { margin: 0; color: var(--text-main); line-height: 1.65; }
.comments-empty { background: var(--surface); border: 1px dashed rgba(2, 132, 199, 0.32); border-radius: var(--radius-lg); padding: 1.5rem; color: var(--text-muted); display: grid; gap: 0.25rem; }
.comments-empty strong { color: var(--secondary); }
.comment-form-card { background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid rgba(2, 132, 199, 0.16); }
.comment-form-heading { margin-bottom: 1.25rem; }
.comment-form-heading h3 { margin: 0; color: var(--secondary); font-size: 1.3rem; }
.comment-form-heading p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comment-field { display: grid; gap: 0.45rem; }
.comment-field label { color: var(--secondary); font-weight: 800; font-size: 0.92rem; }
.comment-field label span { color: var(--text-muted); font-weight: 600; }
.comment-field input, .comment-field textarea { width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.85rem 0.95rem; background: #fff; color: var(--text-main); font: inherit; }
.comment-field textarea { min-height: 130px; resize: vertical; }
.comment-field input:focus, .comment-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12); }
.comment-submit { justify-self: start; background: var(--primary); color: white; padding: 0.85rem 1.5rem; border: none; border-radius: 999px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 22px rgba(2, 132, 199, 0.18); }
.comment-submit:hover { background: var(--primary-dark); }

/* Footer */
.footer { background: var(--secondary); color: #94a3b8; padding: 4rem 0 2rem 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer h3 { color: white; font-size: 1.125rem; margin-bottom: 1.5rem; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a:hover { color: white; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.875rem; }

/* Static Pages */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border-color); padding: 3.5rem 0; }
.page-hero p { max-width: 760px; margin-top: 1rem; color: var(--text-muted); font-size: 1.08rem; }
.page-shell { padding: 3rem 0; }
.page-content { max-width: 900px; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2.5rem; }
.page-content h2 { color: var(--secondary); font-size: 1.5rem; margin: 1.75rem 0 0.75rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1rem; color: var(--text-main); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 700; color: var(--secondary); font-size: 0.95rem; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.9rem 1rem; font: inherit; color: var(--text-main); background: #fff; }
.form-row textarea { min-height: 180px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12); }
.form-submit { justify-self: start; background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 0.85rem 1.4rem; font-weight: 800; cursor: pointer; }
.form-submit:hover { background: var(--primary-dark); }
.notice { padding: 0.85rem 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-weight: 700; }
.notice.success { background: #dcfce7; color: #166534; }
.notice.error { background: #fee2e2; color: #991b1b; }
.contact-info { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-info h2 { margin: 0 0 0.75rem; font-size: 1.25rem; color: var(--primary-dark); }
.contact-info p { color: var(--text-main); margin-bottom: 0.75rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .detail-title-row { flex-direction: column; align-items: flex-start; }
    .comments-heading { align-items: flex-start; flex-direction: column; }
    .comment-form-grid { grid-template-columns: 1fr; }
    .comment-card { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 1rem; }
    .comment-avatar { width: 2.6rem; height: 2.6rem; }
    .search-box { flex-direction: column; border-radius: var(--radius-lg); padding: 1rem; background: transparent; box-shadow: none; }
    .search-input, .search-select, .search-btn { border-radius: var(--radius-md); background: var(--surface); margin-bottom: 0.5rem; border: none; }
    .search-select { border-left: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-content { padding: 1.5rem; }
}
