/* --- TEMEL CSS (style.css) --- */

:root {
    --bg-body: #f2ebe4;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --text-main: #333;
    --text-title: #1a1a1a;
    --text-muted: #666;
    --border-color: #d1c7bc;
    --accent: #8b6b3f;
    --nav-link: #2c2c2c;
    --input-bg: #faf7f5;
    --success-bg: #e7f4e4;
    --success-text: #2e7d32;
    --error-bg: #fdecea;
    --error-text: #c62828;
}

body.dark-mode {
    --bg-body: #121212;
    --bg-header: #1a1a1a;
    --bg-card: #242424;
    --text-main: #b0b0b0;
    --text-title: #e0e0e0;
    --text-muted: #888;
    --border-color: #333;
    --accent: #ffffff;
    --nav-link: #d1c7bc;
    --input-bg: #2a2a2a;
    --success-bg: #1b3320;
    --success-text: #81c784;
    --error-bg: #3e2723;
    --error-text: #e57373;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s, color 0.4s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & NAV --- */
header {
    background: var(--bg-header);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Masaüstünde yapışkan */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: background 0.4s, border-color 0.4s;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-box { text-align: left; }

.journal-logo { 
    height: 65px; 
    transition: filter 0.4s ease; 
    filter: none;
}
body.dark-mode .journal-logo { filter: brightness(0) invert(1); }

.journal-slogan {
    font-family: 'Lora', serif;
    font-size: 11.5px;
    font-style: italic;
    color: var(--accent);
    letter-spacing: 0.2px;
    margin-top: 2px;
    display: block;
    transition: color 0.4s;
}

nav { display: flex; align-items: center; gap: 25px; }

nav a {
    text-decoration: none;
    color: var(--nav-link);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a:hover, nav a.active { color: var(--accent); }

/* --- BUTTONS & ICONS --- */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.dark-mode-toggle:hover { transform: rotate(15deg); }
.dark-mode-toggle svg { width: 22px; height: 22px; fill: var(--accent); transition: fill 0.4s; }
#sun-icon { width: 34px; height: 34px; }

.btn-s-form {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--nav-link);
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 800;
    text-transform: uppercase;
    transition: color 0.4s;
}
.btn-s-form .s-top {
    padding: 3px 12px;
    border-top: 2px solid var(--nav-link);
    border-left: 2px solid var(--nav-link);
    border-right: 2px solid var(--nav-link);
    align-self: flex-start;
    transition: all 0.4s;
}
.btn-s-form .s-bottom {
    padding: 3px 12px;
    border: 2px solid var(--nav-link);
    margin-top: -2px;
    transition: all 0.4s;
}
.btn-s-form:hover .s-top, .btn-s-form:hover .s-bottom {
    background-color: var(--nav-link);
    color: var(--bg-body);
}

/* --- LAYOUT --- */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px; /* İçerik + Sidebar */
    gap: 50px;
    width: 100%;
}

.issue-info {
    margin-bottom: 35px;
    border-left: 4px solid var(--accent);
    padding-left: 18px;
    transition: border-color 0.4s;
}

.issue-info h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 30px; 
    color: var(--text-title);
    transition: color 0.4s;
}

/* --- CARDS & WIDGETS --- */
.article-card, .widget, .contact-card {
    background: var(--bg-card);
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    border-radius: 2px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.4s;
}

/* --- SIDEBAR WIDGETS --- */
.widget {
    padding: 22px;
    border-top: 3px solid var(--nav-link);
}
.widget-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 18px;
    display: block;
    color: var(--accent);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    transition: all 0.4s;
}
.list-item { margin-bottom: 15px; }
.list-head {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-title);
    transition: color 0.4s;
}
.list-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    transition: color 0.4s;
}
.list-date {
    display: block;
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
    transition: color 0.4s;
}

/* --- CONTACT SPECIFIC --- */
.contact-intro {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.contact-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.contact-text h4 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--text-title);
    margin-bottom: 2px;
}
.contact-text span {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}
.contact-form-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--text-title);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* --- FORMS --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-submit {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.btn-submit:hover {
    background-color: var(--text-title);
    transform: translateY(-2px);
}
.notification-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.notification-box.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-text);
}
.notification-box.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-text);
}

/* --- ANIMATIONS --- */
.fade-out { opacity: 0; transform: translateY(8px); }

/* --- INDEX.PHP SPECIFIC (BLOG CARD) --- */
.article-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 2px;
}
/* Makale Başlık Tasarımı */
.article-title.anim-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-title, #1a1a1a); /* Varsa değişkenin, yoksa koyu gri/siyah */
    font-family: 'Playfair Display', serif; /* Gazete/Dergi havası için */
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* Üzerine gelindiğinde (Hover) */
.article-title.anim-link:hover {
    color: #8b6b3f; /* Antik Dergi'nin altın/kahve tonu */
    transform: translateX(5px); /* Hafif sağa kayma efekti */
}

/* Karanlık Mod Uyumu */
body.dark-mode .article-title.anim-link {
    color: #e0e0e0;
}

body.dark-mode .article-title.anim-link:hover {
    color: #ffffff;
}
.article-title-link {
    text-decoration: none;
    color: var(--text-title);
    transition: color 0.3s;
}
.article-title-link:hover { color: var(--accent); }
.article-meta {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.5px;
}
.article-excerpt {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.7;
}
.btn-read-more {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.btn-read-more:hover { border-bottom-color: var(--accent); }

/* --- MOBIL & RESPONSIVE --- */
@media (max-width: 900px) {
    header {
        position: relative !important; /* YAPISKANLIGI KALDIRDIK */
        padding: 15px 0 !important;   /* PADDING AZALDI */
    }
    
    .header-content { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
    
    .journal-logo { height: 50px; }

    nav { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 12px; 
    }

    .main-wrapper { 
        grid-template-columns: 1fr; 
        margin: 20px auto; 
    }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .sidebar { margin-top: 30px; }
}