/**
 * Malatya Ansiklopedisi
 * fahrikayahan.com
 * Modern, özgün, insancıl tasarım
 */

/* ========== Variables ========== */
:root {
    --bg-dark: #1a1614;
    --bg-card: #2a2420;
    --bg-cream: #f5f0e8;
    --text-white: #ffffff;
    --text-cream: #f5f0e8;
    --text-dark: #1a1614;
    --text-gray: #9a8f85;
    --accent-primary: #c17a3d;
    --accent-hover: #d4925a;
    --border-subtle: rgba(245, 240, 232, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: Georgia, 'Palatino', serif;
    
    --radius: 8px;
    --max-width: 1280px;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-cream);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-white);
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.5rem; margin-bottom: 0.875rem; }

p {
    margin-bottom: 1rem;
}

/* ========== Layout ========== */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Header & Navigation ========== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(42, 36, 32, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.site-logo:hover {
    color: var(--accent-primary);
}

.site-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.site-nav a {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a:hover {
    color: var(--text-white);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-subtle);
}

.lang-switcher a {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
}

.lang-switcher a.active {
    background: var(--accent-primary);
    color: var(--text-white);
    border-color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== Notification Bar ========== */
.notification-bar {
    background: linear-gradient(90deg, rgba(193, 122, 61, 0.15) 0%, rgba(193, 122, 61, 0.08) 100%);
    border-bottom: 1px solid rgba(193, 122, 61, 0.3);
    padding: 0.875rem 0;
}

.notification-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-cream);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.notification-link:hover {
    color: var(--accent-primary);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(193, 122, 61, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(193, 122, 61, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-primary);
    display: block;
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Category Cards ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2rem;
}

.category-title {
    font-size: 1.5rem;
    color: var(--text-white);
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-preview {
    padding: 1rem;
    background: rgba(245, 240, 232, 0.03);
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.article-preview:hover {
    background: rgba(245, 240, 232, 0.06);
    border-left-color: var(--accent-primary);
}

.article-preview h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

.article-preview h4 a {
    color: var(--text-white);
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.view-all {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.view-all a {
    font-size: 0.9rem;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== Article Page ========== */
.article-page {
    padding: 3rem 0;
}

.article-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.article-breadcrumb a {
    color: var(--text-gray);
}

.article-breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb-sep {
    margin: 0 0.5rem;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-cream);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
}

/* ========== Video Cards ========== */
.article-videos {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.video-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-family: var(--font-serif);
}

.video-artist {
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.video-type {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.video-note {
    font-size: 0.875rem;
    color: var(--text-cream);
    font-style: italic;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* ========== Category Page ========== */
.category-page {
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 3rem;
}

.articles-list {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-list-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.article-list-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.article-list-item h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.article-list-item h2 a {
    color: var(--text-white);
}

.article-list-item .article-excerpt {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.article-list-item .article-meta {
    border: none;
    padding: 0;
    margin: 0;
}

.read-more {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--text-white);
}

.footer-quote {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background: rgba(245, 240, 232, 0.03);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius);
}

.quote-context {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-quote blockquote {
    margin: 0;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-cream);
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-author {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-align: right;
    font-style: normal;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .site-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .lang-switcher {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-subtle);
        padding-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .footer-quote {
        padding: 1.5rem;
        margin: 2rem auto 1.5rem;
    }
    
    .quote-text {
        font-size: 0.9rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}
