/* ==========================================================================
   Trendus tema ana stilleri
   --------------------------------------------------------------------------
   Bölümler:
     1. Temel değişkenler (CSS variables)
     2. Reset/normalize
     3. Yapı (container, grid, layout)
     4. Header / footer
     5. Kartlar / liste / hero
     6. Tek yazı / sayfa
     7. Widget alanları
     8. Form / arama / 404
     9. Karanlık mod
    10. Yardımcılar
   ========================================================================== */

/* 1. DEĞİŞKENLER ----------------------------------------------------------- */
:root {
	--trendus-accent: #e91e63;
	--trendus-text: #222;
	--trendus-muted: #6b6b6b;
	--trendus-bg: #fff;
	--trendus-border: #e5e5e5;
	--trendus-radius: 6px;
	--trendus-container: 1200px;
	--trendus-font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--trendus-font-head: 'Playfair Display', Georgia, serif;
}

/* 2. RESET ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--trendus-font-body);
	color: var(--trendus-text);
	background: var(--trendus-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--trendus-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--trendus-font-head); margin: 0 0 .5em; line-height: 1.25; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.screen-reader-text {
	position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}

/* 3. YAPI ----------------------------------------------------------------- */
.trendus-container { max-width: var(--trendus-container); margin: 0 auto; padding: 0 20px; }
.trendus-layout { display: flex; gap: 40px; padding: 40px 20px; }
.trendus-layout.has-sidebar .trendus-content { flex: 1 1 auto; min-width: 0; }
.trendus-layout.has-sidebar .trendus-sidebar { flex: 0 0 320px; }
.trendus-layout.no-sidebar .trendus-content { width: 100%; }
@media (max-width: 900px) {
	.trendus-layout { flex-direction: column; }
	.trendus-layout .trendus-sidebar { flex: none; width: 100%; }
}

.trendus-grid-2, .trendus-grid-3, .trendus-grid-4 { display: grid; gap: 24px; }
.trendus-grid-2 { grid-template-columns: repeat(2, 1fr); }
.trendus-grid-3 { grid-template-columns: repeat(3, 1fr); }
.trendus-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .trendus-grid-3, .trendus-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trendus-grid-2, .trendus-grid-3, .trendus-grid-4 { grid-template-columns: 1fr; } }

/* 4. HEADER --------------------------------------------------------------- */
.trendus-topbar { background: #111; color: #fff; font-size: 13px; }
.trendus-topbar .trendus-container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.trendus-topbar-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.trendus-topbar-menu a { color: #ddd; }
.trendus-topbar-menu a:hover { color: #fff; }

.trendus-header { background: #fff; border-bottom: 1px solid var(--trendus-border); position: relative; z-index: 50; }
.trendus-header.is-sticky { position: sticky; top: 0; }
.trendus-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; }
.trendus-branding { display: flex; flex-direction: column; }
.trendus-logo img { max-height: 56px; width: auto; }
.trendus-site-title { font-family: var(--trendus-font-head); font-size: 28px; font-weight: 700; }
.trendus-site-description { color: var(--trendus-muted); margin: 2px 0 0; font-size: 13px; }

.trendus-primary-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.trendus-primary-menu li { position: relative; }
.trendus-primary-menu a { font-weight: 600; padding: 8px 0; display: inline-block; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.trendus-primary-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--trendus-border); list-style: none; padding: 8px 0; margin: 0; opacity: 0; visibility: hidden; transition: .2s; }
.trendus-primary-menu li:hover > .sub-menu { opacity: 1; visibility: visible; }
.trendus-primary-menu .sub-menu a { padding: 8px 16px; display: block; text-transform: none; font-weight: 500; }

.trendus-header-actions { display: flex; gap: 12px; align-items: center; }
.trendus-header-actions button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.trendus-header-actions button:hover { background: #f5f5f5; }

.trendus-menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.trendus-menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }
@media (max-width: 900px) {
	.trendus-menu-toggle { display: inline-flex; }
	.trendus-primary-nav { display: none; }
}

.trendus-search-panel { display: none; padding: 16px 0; background: #fafafa; border-top: 1px solid var(--trendus-border); }
.trendus-search-panel.is-open { display: block; }

.trendus-mobile-drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: #fff; box-shadow: 2px 0 12px rgba(0,0,0,.1); z-index: 1000; transition: left .25s ease; padding: 24px; overflow-y: auto; }
.trendus-mobile-drawer.is-open { left: 0; }
.trendus-drawer-close { position: absolute; top: 8px; right: 12px; font-size: 28px; }
.trendus-mobile-menu { list-style: none; margin: 32px 0 0; padding: 0; }
.trendus-mobile-menu li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--trendus-border); font-weight: 600; }

.trendus-header-ad { padding: 16px 0; background: #fafafa; text-align: center; }

/* Arama formu */
.trendus-search-form { display: flex; gap: 8px; max-width: 480px; }
.trendus-search-form input[type="search"] {
	flex: 1; padding: 12px 14px; border: 1px solid var(--trendus-border); border-radius: var(--trendus-radius); font: inherit;
}
.trendus-search-submit { background: var(--trendus-accent); color: #fff; padding: 0 16px; border-radius: var(--trendus-radius); }

/* 5. KARTLAR / HERO ------------------------------------------------------- */
.trendus-card { background: #fff; border-radius: var(--trendus-radius); overflow: hidden; }
.trendus-card-thumb {
	display: block; aspect-ratio: 16/10; background-size: cover; background-position: center;
	position: relative; border-radius: var(--trendus-radius);
}
.trendus-card-cat {
	position: absolute; bottom: 12px; left: 12px;
	background: var(--cat-color, var(--trendus-accent)); color: #fff;
	padding: 4px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-radius: 3px;
}
.trendus-card-body { padding: 14px 4px; }
.trendus-card-title { font-size: 18px; margin: 6px 0; line-height: 1.3; }
.trendus-card-title a { color: var(--trendus-text); }
.trendus-card-meta { font-size: 12px; color: var(--trendus-muted); display: flex; gap: 10px; margin-bottom: 8px; }
.trendus-card-excerpt { font-size: 14px; color: #444; margin: 0; }

.trendus-section { margin: 50px 0; }
.trendus-section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #111; margin-bottom: 24px; padding-bottom: 8px; }
.trendus-section-title { font-size: 22px; margin: 0; position: relative; }
.trendus-section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 2px; background: var(--cat-color, var(--trendus-accent)); }
.trendus-section-more { font-size: 13px; font-weight: 600; text-transform: uppercase; }

/* Hero */
.trendus-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 30px 0; }
@media (max-width: 900px) { .trendus-hero { grid-template-columns: 1fr; } }
.trendus-hero-main { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: var(--trendus-radius); position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.trendus-hero-overlay { width: 100%; padding: 24px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.trendus-hero-cat { display: inline-block; background: var(--cat-color, var(--trendus-accent)); padding: 4px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.trendus-hero-title { color: #fff; font-size: 28px; margin: 10px 0 6px; }
.trendus-hero-meta { font-size: 13px; opacity: .85; margin: 0; }
.trendus-hero-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trendus-hero-side li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.trendus-hero-side-thumb { background-size: cover; background-position: center; border-radius: var(--trendus-radius); aspect-ratio: 1; }
.trendus-hero-side-title { font-family: var(--trendus-font-head); font-weight: 600; font-size: 15px; }
.trendus-hero-side-meta time { display: block; font-size: 12px; color: var(--trendus-muted); margin-top: 4px; }

/* 6. SINGLE / SAYFA ------------------------------------------------------- */
.trendus-single-head { margin-bottom: 20px; }
.trendus-single-title, .trendus-page-title { font-size: 38px; line-height: 1.15; }
.trendus-single-excerpt { color: var(--trendus-muted); font-size: 18px; }
.trendus-post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--trendus-muted); margin-top: 12px; }
.trendus-post-cat { background: var(--cat-color, var(--trendus-accent)); color: #fff; padding: 3px 10px; border-radius: 3px; }
.trendus-single-cover { margin: 24px 0; }
.trendus-single-cover img { border-radius: var(--trendus-radius); }
.trendus-single-body { font-size: 17px; line-height: 1.75; }
.trendus-single-body p { margin: 0 0 1.2em; }
.trendus-single-body h2 { font-size: 28px; margin-top: 1.4em; }
.trendus-single-body h3 { font-size: 22px; margin-top: 1.2em; }
.trendus-single-body blockquote { border-left: 4px solid var(--trendus-accent); padding: 4px 16px; margin: 1.5em 0; font-style: italic; color: #444; }
.trendus-single-tags { margin-top: 24px; font-size: 13px; }
.trendus-single-tags a { background: #f0f0f0; padding: 4px 10px; border-radius: 3px; margin-right: 4px; }
.trendus-in-article { margin: 30px 0; text-align: center; }

.trendus-breadcrumbs { font-size: 12px; color: var(--trendus-muted); margin-bottom: 8px; }
.trendus-breadcrumbs .sep { margin: 0 6px; }

/* 7. WIDGETS / SIDEBAR ---------------------------------------------------- */
.trendus-sidebar .widget { background: #fff; border: 1px solid var(--trendus-border); padding: 20px; margin-bottom: 24px; border-radius: var(--trendus-radius); }
.widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #111; }
.widget-title span { background: #111; color: #fff; padding: 4px 10px; }
.trendus-recent-list { list-style: none; padding: 0; margin: 0; }
.trendus-recent-item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; margin-bottom: 14px; }
.trendus-recent-thumb { background-size: cover; background-position: center; border-radius: 4px; aspect-ratio: 1; }
.trendus-recent-title { font-weight: 600; font-size: 14px; line-height: 1.3; display: block; }
.trendus-recent-date { font-size: 12px; color: var(--trendus-muted); }
.trendus-ad { text-align: center; }
.trendus-ad img { display: inline-block; max-width: 100%; }

/* 8. FOOTER --------------------------------------------------------------- */
.trendus-footer { background: #111; color: #ddd; margin-top: 60px; }
.trendus-footer a { color: #fff; }
.trendus-footer-widgets { padding: 50px 0; }
.trendus-footer-widgets .widget { background: transparent; border: 0; padding: 0; }
.trendus-footer-widgets .widget-title { color: #fff; border-bottom-color: #333; }
.trendus-footer-widgets .widget-title span { background: #fff; color: #111; }
.trendus-footer-bottom { border-top: 1px solid #333; padding: 18px 0; }
.trendus-footer-bottom .trendus-container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.trendus-footer-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* Sosyal */
.trendus-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.trendus-social a { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: #222; align-items: center; justify-content: center; color: #fff; }
.trendus-social a:hover { background: var(--trendus-accent); }

/* Butonlar */
.trendus-btn { display: inline-block; padding: 10px 22px; border-radius: var(--trendus-radius); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.trendus-btn--primary { background: var(--trendus-accent); color: #fff; }
.trendus-btn--ghost { background: transparent; border: 2px solid var(--trendus-text); color: var(--trendus-text); }

/* Sayfalama */
.navigation.pagination { margin: 30px 0; text-align: center; }
.navigation.pagination .nav-links { display: inline-flex; gap: 4px; }
.navigation.pagination a, .navigation.pagination .current { padding: 8px 14px; border: 1px solid var(--trendus-border); border-radius: 4px; }
.navigation.pagination .current { background: var(--trendus-accent); color: #fff; border-color: var(--trendus-accent); }

/* 404 */
.trendus-404 { text-align: center; padding: 60px 20px; }
.trendus-404-title { font-size: 96px; margin: 0; color: var(--trendus-accent); }

/* Yorumlar */
.trendus-comments { margin-top: 40px; }
.trendus-comments-title { font-size: 22px; margin-bottom: 20px; }
.trendus-comment-list { list-style: none; padding: 0; }
.trendus-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--trendus-border); }

/* İletişim sayfası */
.trendus-contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 800px) { .trendus-contact-grid { grid-template-columns: 1fr; } }

/* 9. KARANLIK MOD --------------------------------------------------------- */
html.trendus-dark {
	--trendus-text: #eaeaea;
	--trendus-bg: #121212;
	--trendus-muted: #aaa;
	--trendus-border: #2a2a2a;
}
html.trendus-dark body { background: var(--trendus-bg); }
html.trendus-dark .trendus-header { background: #1a1a1a; border-color: #2a2a2a; }
html.trendus-dark .trendus-header-actions button:hover { background: #222; }
html.trendus-dark .trendus-sidebar .widget,
html.trendus-dark .trendus-card { background: #1a1a1a; border-color: #2a2a2a; }
html.trendus-dark .widget-title span { background: #fff; color: #111; }
html.trendus-dark .trendus-search-panel { background: #1a1a1a; }
html.trendus-dark .trendus-single-tags a { background: #2a2a2a; }

/* 10. SPA ilerleme barı override ------------------------------------------ */
.trendus-progress { box-shadow: 0 0 8px rgba(0,0,0,.2); }
