/* =====================================================
   TEMEL.CSS — Antik Dergi
   ===================================================== */

/* --- CSS DEĞİŞKENLERİ --- */
: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;
}

/* --- SIFIRLA --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.4s, color 0.4s;
}

/* --- HEADER --- */
header {
    background: var(--bg-header);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: background 0.4s, border-color 0.4s;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* --- LOGO & SLOGAN --- */
.logo-box { text-align: left; }

.journal-logo {
    height: 65px;
    width: auto;
    display: block;
    transition: filter 0.4s;
}

body.dark-mode .journal-logo { filter: brightness(0) invert(1); }

.journal-slogan {
    display: block;
    font-family: 'Lora', serif;
    font-size: 11.5px;
    font-style: italic;
    color: var(--accent);
    letter-spacing: .2px;
    margin-top: 4px;
    transition: color 0.4s;
}

/* --- NAV --- */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--nav-link);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover,
nav a.active { color: var(--accent); }

/* --- TEMA BUTONU --- */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.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; }

/* SÖZLÜK */
/* --- SÖZLÜK --- */
.sozluk-wrapper {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}

.harf-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
}

.harf-nav-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-radius: 2px;
}

.harf-nav-link:hover {
    background: var(--accent);
    color: var(--bg-body);
    border-color: var(--accent);
}

.sozluk-arama-wrapper { margin-bottom: 32px; }

.sozluk-harf-grubu {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.harf-baslik {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.sozluk-kart {
    background: var(--bg-card);
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    transition: background 0.4s, border-color 0.4s;
}

.sozluk-kelime {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-title);
    margin-bottom: 6px;
    transition: color 0.4s;
}

.sozluk-aciklama {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    transition: color 0.4s;
}

@media (max-width: 600px) {
    .harf-nav-link { width: 30px; height: 30px; line-height: 28px; font-size: 12px; }
    .harf-baslik { font-size: 20px; }
}


/* --- MAKALE GÖNDER BUTONU --- */
.btn-s-form {
    display: inline-block;
    text-decoration: none;
    color: var(--nav-link);
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px 22px;
    border: 1px solid var(--nav-link);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    transition: background-color 0.4s, color 0.4s;
}
.devamini-oku {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}
.devamini-oku:hover { text-decoration: underline; }
.btn-s-form::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid var(--nav-link);
    opacity: .3;
    z-index: -1;
    transition: border-color 0.4s, opacity 0.4s, transform 0.4s;
}

.btn-s-form:hover {
    background-color: var(--nav-link);
    color: var(--bg-body) !important;
}

.btn-s-form:hover::after {
    border-color: var(--bg-body);
    opacity: .5;
    transform: scale(.95);
}

/* --- DROPDOWN --- */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-header);
    min-width: 160px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    z-index: 200;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: var(--bg-body); color: var(--accent); }

/* Alt menü */
.sub-dropdown { position: relative; }

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--bg-header);
    min-width: 150px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    z-index: 201;
    max-height: 280px;
    overflow-y: auto;
}

.dropdown-content.open  { display: block; }
.sub-dropdown-content.open { display: block; }

/* --- LAYOUT --- */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    width: 100%;
}

/* --- SAYILAR / ISSUE --- */
.issue-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.issue-info {
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
    padding-left: 18px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    transition: border-color 0.4s;
}

.issue-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    color: var(--accent);
    transition: color 0.4s;
}

/* --- KARTLAR & WIDGET'LAR --- */
.article-card,
.widget,
.contact-card {
    background: var(--bg-card);
    padding: 35px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
    position: relative;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

/* DOI etiketi */
.doi-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    transition: color 0.4s;
}

/* Yazar satırı */
.article-author {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
    transition: color 0.4s;
}

/* --- MAKALE BAŞLIĞI --- */
.article-title.anim-link {
    display: block;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-title);
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.article-title.anim-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* --- SIDEBAR WIDGET'LARI --- */
.widget {
    padding: 22px;
    border-top: 3px solid var(--nav-link);
}

.widget-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 18px;
    transition: color 0.4s, border-color 0.4s;
}

.widget-more-link {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
    text-decoration: none;
    transition: opacity 0.3s;
}

.widget-more-link:hover { opacity: .7; }

.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;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
    transition: color 0.4s;
}

.duyuru-text {
    font-size: 12.5px;
    line-height: 1.4;
}

/* --- İLETİŞİM --- */
.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: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(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);
    flex-shrink: 0;
}

.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);
}

.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;
}

/* --- FORMLAR --- */
.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;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: 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);
}

/* --- BİLDİRİM KUTUSU --- */
.notification-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.notification-box.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-text);
}

.notification-box.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-text);
}

/* --- ANİMASYON --- */
.fade-out {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
}

/* --- MAKALE KÜÇÜK RESİM --- */
.article-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 2px;
    display: block;
}

.article-title-link {
    text-decoration: none;
    color: var(--text-title);
    transition: color 0.3s;
}

.article-title-link:hover { color: var(--accent); }

.article-meta {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.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;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.btn-read-more:hover { border-bottom-color: var(--accent); }

/* =====================================================
   RESPONSİVE
   ===================================================== */

/* Tablet (≤ 1024px): Sidebar daralt */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr 270px;
        gap: 30px;
    }
}

/* Geniş mobil / küçük tablet (≤ 900px): Tek sütun */
@media (max-width: 900px) {
    header {
        position: relative;
        padding: 15px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .logo-box { align-self: center; }

    .journal-logo { height: 50px; }

    nav {
        justify-content: center;
        gap: 10px 16px;
    }

    .main-wrapper {
        grid-template-columns: 1fr;
        margin: 20px auto;
        gap: 30px;
    }

    /* Alt menü sağa değil alta açılsın */
    .sub-dropdown-content {
        position: static;
        left: auto;
        top: auto;
        box-shadow: none;
        max-height: none;
        border-left: 2px solid var(--accent);
        margin-left: 12px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        width: 100%;
    }

    /* Dropdown açıkken nav'ı itmemesi için */
    .dropdown { width: 100%; text-align: center; }
}

/* Mobil (≤ 600px): İnce dokunuşlar */
@media (max-width: 600px) {
    .article-card,
    .widget,
    .contact-card { padding: 20px; }

    .issue-info h2 { font-size: 22px; }

    .article-title.anim-link { font-size: 18px; }

    .form-row { grid-template-columns: 1fr; gap: 0; }

    .btn-s-form { padding: 9px 16px; }

    .contact-methods { grid-template-columns: 1fr; }
}