/* ============================================
   BOYALI ALAN / PREMIUM ANALİZ TEMA
   Krem + Bordo + Basketbol Topu Tonları, The Ringer havası
   ============================================ */

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

:root {
    --bg: #faf6ef;
    --bg-card: #ffffff;
    --bg-soft: #f0ebe0;
    --bg-warm: #f5efe2;
    --bg-leather: #d4a574;
    --bg-leather-dark: #b8895c;
    --border: #1a1a1a;
    --border-light: #d6cfc0;
    --border-soft: #e8e2d3;
    --primary: #8b1a1a;
    --primary-dark: #6b1414;
    --primary-light: #a32424;
    --accent: #c8964a;
    --gold: #d4a574;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #7a7263;
    --serif: 'Georgia', 'Times New Roman', 'Charter', serif;
    --sans: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Courier New', 'Monaco', monospace;
    --radius: 4px;
    --radius-lg: 6px;
}

body {
    font-family: var(--sans);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    background-image: radial-gradient(circle at 50% 0%, rgba(139,26,26,.03), transparent 60%);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 14px;
    gap: 16px;
    min-height: 70px;
    border-bottom: 3px double var(--primary);
    position: relative;
}
.site-logo {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo::before {
    content: '10';
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--serif);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(139,26,26,.25);
}
.site-logo:hover { color: var(--text); }
.site-logo img { max-height: 44px; width: auto; max-width: 100%; }
.site-logo:has(img)::before { display: none; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.main-nav a {
    padding: 8px 16px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all .15s;
    white-space: nowrap;
    position: relative;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -2px;
    height: 2px;
    background: var(--primary);
}

.menu-toggle {
    display: none;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    color: var(--text);
    border-radius: var(--radius);
    line-height: 1;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

/* Section Title - Çift altı çizgili klasik */
.section-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text);
    letter-spacing: -.5px;
    padding-bottom: 10px;
    border-bottom: 3px double var(--primary);
    display: inline-block;
    position: relative;
}
.section-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary);
}

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-warm); }

/* Featured Items (ilanlar) */
.featured-items {
    padding: 36px 0 24px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
    display: block;
    color: inherit;
    position: relative;
}
.item-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    color: inherit;
    box-shadow: 0 12px 28px rgba(139,26,26,.12);
}
.item-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}
.item-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.item-card-body { padding: 14px 16px; }
.item-card h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -.3px;
}
.item-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

/* Blog Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* Manşet - Ringer havası */
.posts-grid--featured .post-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.posts-grid--featured .post-card:first-child .post-card-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-leather), var(--primary));
}
.posts-grid--featured .post-card:first-child h3 {
    font-size: 28px;
    line-height: 1.2;
}
.posts-grid--featured .post-card:first-child .post-summary {
    font-size: 15px;
}

.post-card {
    background: var(--bg-card);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    position: relative;
}
.post-card:hover h3 a { color: var(--primary); }
.post-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: var(--radius);
    position: relative;
}
.post-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s;
}
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-category {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}
.post-card h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.4px;
    transition: color .2s;
}
.post-card h3 a { color: var(--text); }
.post-summary {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
}
.post-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-soft);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Rich Text */
.home-rich-content {
    background: var(--bg-card);
    border-top: 3px double var(--primary);
    border-bottom: 3px double var(--primary);
}
.rich-text {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.85;
    font-family: var(--serif);
}
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    font-family: var(--serif);
    color: var(--text);
    margin: 28px 0 14px;
    letter-spacing: -.5px;
    line-height: 1.25;
    font-weight: 700;
}
.rich-text h1:first-child,
.rich-text h2:first-child,
.rich-text h3:first-child { margin-top: 0; }
.rich-text h1 { font-size: 32px; }
.rich-text h2 { font-size: 26px; color: var(--primary); }
.rich-text h3 { font-size: 21px; }
.rich-text h4 { font-size: 18px; }
.rich-text p { margin-bottom: 22px; }
.rich-text a {
    color: var(--primary);
    border-bottom: 1px solid currentColor;
    font-weight: 500;
}
.rich-text a:hover { color: var(--primary-light); }
.rich-text ul, .rich-text ol {
    margin: 0 0 22px 24px;
    padding-left: 4px;
    font-family: var(--sans);
    font-size: 16px;
}
.rich-text li { margin-bottom: 10px; }
.rich-text li::marker { color: var(--primary); }
.rich-text img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    border: 1px solid var(--border-light);
}
.rich-text blockquote {
    border-left: 4px solid var(--primary);
    padding: 8px 0 8px 24px;
    margin: 28px 0;
    font-size: 22px;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
}
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-family: var(--sans);
    font-size: 14px;
    border: 2px solid var(--primary);
}
.rich-text table th,
.rich-text table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}
.rich-text table th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
}
.rich-text table tr:nth-child(even) td { background: var(--bg-warm); }
.rich-text code {
    background: var(--bg-warm);
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: .9em;
    color: var(--primary);
    border: 1px solid var(--border-light);
    font-family: var(--mono);
}

/* Article detail */
.article {
    max-width: 780px;
    margin: 0 auto;
    padding: 44px 0;
}
.article-header { 
    margin-bottom: 32px; 
    text-align: center;
}
.article h1 {
    font-family: var(--serif);
    font-size: 46px;
    line-height: 1.12;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -1.4px;
    color: var(--text);
}
.article-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 28px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}
.article-meta a { color: var(--primary); }
.article-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.article-content {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.85;
    color: var(--text-light);
}
.article-content > p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 78px;
    font-weight: 700;
    float: left;
    line-height: .9;
    padding-right: 14px;
    padding-top: 6px;
    color: var(--primary);
}
.article-content p { margin-bottom: 22px; color: var(--text-light); }
.article-content h2, .article-content h3 {
    margin: 36px 0 14px;
    color: var(--text);
    letter-spacing: -.4px;
    font-family: var(--serif);
    font-weight: 700;
}
.article-content h2 { 
    font-size: 28px; 
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
}
.article-content h3 { font-size: 22px; }
.article-content a {
    color: var(--primary);
    border-bottom: 1px solid currentColor;
}
.article-content a:hover { color: var(--primary-light); }
.article-content img {
    border-radius: var(--radius);
    margin: 28px 0;
    border: 1px solid var(--border-light);
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 0 10px 26px;
    margin: 30px 0;
    font-size: 26px;
    font-style: italic;
    line-height: 1.5;
    color: var(--text);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all .2s;
}
.gallery-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(139,26,26,.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Footer */
.site-footer {
    background: var(--text);
    color: #d4c9b3;
    padding: 56px 0 28px;
    margin-top: 80px;
    border-top: 5px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col h4 {
    font-family: var(--serif);
    color: #fff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
    color: #c4b9a3;
    font-size: 14px;
    transition: color .15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; line-height: 1.7; color: #b8ad97; }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12px;
    color: #8b8170;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 14px 0;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 44px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 13px;
    background: var(--bg-card);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all .15s;
    border-radius: var(--radius);
    font-family: var(--serif);
}
.pagination a:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 95%;
    max-height: 95vh;
    border-radius: var(--radius);
    border: 2px solid var(--gold);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--gold);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selection */
::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .items-grid { grid-template-columns: repeat(3, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid--featured .post-card:first-child { grid-column: span 2; grid-row: auto; }
    .posts-grid--featured .post-card:first-child h3 { font-size: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 14px 0 10px; min-height: 62px; }
    .site-logo { font-size: 22px; }
    .site-logo::before { width: 30px; height: 30px; font-size: 13px; }
    .site-logo img { max-height: 36px; }
    
    .menu-toggle { display: inline-flex; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        border-top: 1px solid var(--border-light);
        border-bottom: 3px double var(--primary);
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: 14px 20px;
        font-size: 13px;
        color: var(--text);
        border-bottom: 1px solid var(--border-soft);
        text-align: left;
    }
    .main-nav a:last-child { border-bottom: none; }
    .main-nav a:hover::after { display: none; }
    .main-nav a:hover { background: var(--bg-warm); color: var(--primary); }
    
    .site-header { position: sticky; }
    .header-inner { position: relative; }
    
    .section { padding: 32px 0; }
    .section-title { font-size: 22px; }
    .featured-items { padding: 24px 0 16px; }
    .items-grid { gap: 14px; grid-template-columns: repeat(2, 1fr); }
    .item-card h3 { font-size: 14px; }
    .item-card p { font-size: 11px; }
    .item-card-body { padding: 10px 12px; }
    
    .posts-grid { gap: 22px; grid-template-columns: repeat(2, 1fr); }
    .posts-grid--featured .post-card:first-child { grid-column: span 2; grid-row: auto; }
    .posts-grid--featured .post-card:first-child h3 { font-size: 22px; }
    .post-card h3 { font-size: 16px; }
    .post-summary { font-size: 12px; }
    .post-category { font-size: 9px; }
    .post-meta { font-size: 10px; }
    
    .rich-text { font-size: 16px; }
    .rich-text h1 { font-size: 26px; }
    .rich-text h2 { font-size: 22px; }
    .rich-text h3 { font-size: 19px; }
    .rich-text blockquote { font-size: 19px; }
    
    .article { padding: 28px 0; }
    .article h1 { font-size: 30px; }
    .article-content { font-size: 17px; line-height: 1.75; }
    .article-content > p:first-of-type::first-letter { font-size: 58px; }
    .article-image { margin-bottom: 22px; }
    .article-content h2 { font-size: 22px; }
    
    .site-footer { padding: 40px 0 20px; margin-top: 48px; }
    .footer-grid { gap: 28px; margin-bottom: 28px; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    .breadcrumb { padding: 12px 0; font-size: 10px; }
}

@media (max-width: 380px) {
    .site-logo { font-size: 19px; }
    .item-card-body { padding: 8px 10px; }
}
