/* Şiir Platformu - Gelişmiş tema */
:root {
    --bg: #faf8f5;
    --bg-card: #fff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --accent: #8b4512;
    --accent-hover: #6d3410;
    --border: #e8e4df;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --max-w: 900px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent-hover);
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.nav-main a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-main a:hover {
    color: var(--accent);
}

.nav-search {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.nav-search input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    min-width: 180px;
}

.nav-search button {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
}

.nav-search button:hover {
    background: var(--accent-hover);
}

.site-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem;
}

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero-inner h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.hero-inner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Blocks */
.block {
    margin-bottom: 3rem;
}

.block-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    color: var(--text);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card-poem {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.card-poem:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.card-poem a {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.card-poem h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--text);
    line-height: 1.35;
}

.card-poem .meta {
    font-size: 0.9rem;
    color: var(--accent);
}

.card-poem .excerpt {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Poem list */
.poem-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.poem-list li {
    border-bottom: 1px solid var(--border);
}

.poem-list li:last-child {
    border-bottom: none;
}

.poem-list a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.poem-list a:hover {
    background: rgba(0,0,0,.03);
}

.poem-list .poem-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    display: block;
    color: var(--text);
}

.poem-list .poem-author,
.poem-list .poem-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.poem-list .poem-excerpt {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.poem-list-full .poem-meta {
    display: block;
    margin-top: 0.25rem;
}

/* Categories */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.cat-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.cat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.cat-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
    color: var(--accent);
}

.cat-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* List header / filters */
.list-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 1rem;
}

.filter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.filter-form input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.filter-form button {
    padding: 0.6rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
}

.filter-form button:hover {
    background: var(--accent-hover);
}

.empty {
    color: var(--text-muted);
    padding: 2rem 0;
}

.result-count {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Single poem */
.poem-single {
    max-width: var(--max-w);
    margin: 0 auto 3rem;
}

.poem-header {
    margin-bottom: 2rem;
}

.poem-single .poem-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.poem-single .poem-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.poem-single .poem-meta a {
    color: var(--accent);
    text-decoration: none;
}

.poem-single .poem-meta a:hover {
    text-decoration: underline;
}

.poem-body {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.9;
    white-space: pre-wrap;
}

/* Related */
.ilgili {
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin: 0 0 0.5rem;
    color: var(--accent);
}

.error-404 p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-family: inherit;
}

.btn:hover {
    background: var(--accent-hover);
}
