/*
Theme Name: Dipses
Theme URI: https://dipses.net
Author: Dipses Sharing Underground
Author URI: https://dipses.net
Description: Koyu, rock/metal/rap odaklı müzik magazin teması. Dipses Sharing Underground için özel tasarlandı.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dipses
Tags: dark, music, magazine, news, blog, two-columns, featured-images
*/

/* ==========================================================================
   1. Değişkenler
   ========================================================================== */
:root {
    --bg: #0b0b0d;
    --bg-elev: #121216;
    --surface: #16161b;
    --surface-hover: #1e1e25;
    --border: #26262f;
    --text: #ececef;
    --text-muted: #9a9aa6;
    --accent: #e63946;
    --accent-hover: #ff4d5a;
    --accent-soft: rgba(230, 57, 70, 0.14);
    --radius: 10px;
    --radius-sm: 6px;
    --font-head: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --maxw: 1200px;
    --header-h: 64px;
}

/* ==========================================================================
   2. Reset & Taban
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: .03em;
    line-height: 1.1;
    margin: 0 0 .5em;
    text-transform: uppercase;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--accent); color: #fff; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. Başlık (Header)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.custom-logo { max-height: 42px; width: auto; }

.site-title {
    font-family: var(--font-head);
    font-size: 1.7rem;
    letter-spacing: .05em;
    margin: 0;
    white-space: nowrap;
}

.site-title a { color: var(--text); }
.site-title a:hover { color: var(--accent); }

.site-title .accent { color: var(--accent); }

/* Menü */
.main-nav { display: flex; align-items: center; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.main-nav li { position: relative; }

.main-nav a {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Alt menüler */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    flex-direction: column;
    display: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.main-nav li:hover > .sub-menu { display: flex; }

.main-nav .sub-menu a { font-size: .95rem; padding: 8px 12px; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
}

/* ==========================================================================
   4. Hero (Öne çıkan yazı)
   ========================================================================== */
.hero {
    position: relative;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.hero__post {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
}

.hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,11,13,.96) 5%, rgba(11,11,13,.45) 55%, rgba(11,11,13,.15));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 120px 0 60px;
    margin: 0 auto;
}

.hero .cat-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.hero h2 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: .3em;
}

.hero h2 a { color: inherit; }
.hero h2 a:hover { color: var(--accent); }

.hero .excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

.hero .meta {
    color: var(--text-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 16px;
}

/* ==========================================================================
   5. Bölümler & Kartlar
   ========================================================================== */
.site-main { padding: 20px 0 60px; }

.section { margin-bottom: 48px; }

.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-head::before {
    content: '';
    width: 5px;
    height: 26px;
    background: var(--accent);
    border-radius: 2px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: .06em;
}

.section-head .more {
    margin-left: auto;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section-head .more:hover { color: var(--accent); }

/* Kart ızgarası */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--surface-hover);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elev);
}

.card__media > a:first-child {
    display: block;
    width: 100%;
    height: 100%;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.card:hover .card__media img { transform: scale(1.05); }

.card__media--empty {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elev) 100%);
}

.card__media .cat-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
}

.card__body { padding: 18px 20px 20px; }

.card__body h3 {
    font-size: 1.35rem;
    margin-bottom: .35em;
}

.card__body h3 a { color: var(--text); }
.card__body h3 a:hover { color: var(--accent); }

.card__excerpt {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* İlk kartı geniş tut (dergi düzeni) */
.card-grid .card:first-child {
    grid-column: span 2;
}

.card-grid .card:first-child .card__body h3 { font-size: 1.7rem; }

/* ==========================================================================
   6. Yerleşim (yan sütun)
   ========================================================================== */
.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.widget-title {
    font-size: 1.3rem;
    letter-spacing: .06em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
}

.widget ul li:last-child { border-bottom: 0; }

.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }

/* ==========================================================================
   7. Tek yazı (Single)
   ========================================================================== */
.single-header { margin-bottom: 28px; }

.single-header .cat-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
}

.single-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

.single-header .meta {
    color: var(--text-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.entry-thumbnail { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.4em; }

.entry-content a { color: var(--accent); }
.entry-content a:hover { color: var(--accent-hover); text-decoration: underline; }

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
}

.entry-content img { border-radius: var(--radius); }

.entry-content pre {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
}

.entry-content code {
    background: var(--bg-elev);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
}

/* Etiketler */
.entry-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }

.entry-tags a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   8. Sayfalama
   ========================================================================== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 44px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 1.05rem;
}

.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   9. Yorumlar
   ========================================================================== */
.comments-area { margin-top: 48px; }

.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.comment-list .comment {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.comment-author { font-weight: 600; }

.comment-meta { color: var(--text-muted); font-size: .82rem; margin: 4px 0 10px; }

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px;
    font-family: var(--font-body);
    font-size: .95rem;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.submit,
button[type="submit"],
input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 11px 24px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease;
}

.submit:hover { background: var(--accent-hover); }

/* ==========================================================================
   10. Arama
   ========================================================================== */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 14px;
    font-family: var(--font-body);
}

.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }

/* ==========================================================================
   11. Alt bilgi (Footer)
   ========================================================================== */
.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
}

.site-footer__widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 48px 0 40px;
}

.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-muted);
    font-size: .85rem;
}

.site-footer__bottom a { color: var(--text-muted); }
.site-footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   12. Yardımcılar
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
}

.aligncenter { margin: 0 auto 1.2em; }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }

.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--text-muted); font-size: .85rem; text-align: center; margin-top: 6px; }

.sticky { border-color: var(--accent); }

.no-results {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.error-404 .site-main { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: clamp(3rem, 12vw, 7rem); margin-bottom: .2em; }

/* ==========================================================================
   13. Duyarlılık (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { flex-direction: row; flex-wrap: wrap; }
    .sidebar .widget { flex: 1 1 280px; }
}

@media (max-width: 860px) {
    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
    }

    .main-nav.toggled { display: block; }

    .main-nav ul { flex-direction: column; gap: 0; }

    .main-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding-left: 14px;
        min-width: 0;
    }

    .main-nav li:hover > .sub-menu { display: none; }

    .card-grid { grid-template-columns: 1fr 1fr; }
    .card-grid .card:first-child { grid-column: span 2; }

    .site-footer__widgets { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
    .card-grid .card:first-child { grid-column: span 1; }
    .hero__post { min-height: 320px; }
    .site-title { font-size: 1.4rem; }
}
