/*
Theme Name: WebClass News v0.4
Theme URI: https://webclassnews.com
Author: WebClass
Version: 0.4
License: GPL v2
*/

:root {
  --primary: #e31e24;
  --secondary: #1a1a2e;
  --accent: #00b894;
  --text: #212121;
  --text-light: #757575;
  --bg: #f0f0f0;
  --card-bg: #ffffff;
  --border: #e0e0e0;
  --success: #00b894;
  --danger: #e31e24;
  --warning: #f39c12;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* === ÜST BAR === */
.wcn-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
}

.wcn-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcn-topbar-links a {
  color: var(--text-light);
  margin-right: 18px;
  font-size: 11px;
  transition: var(--transition);
}

.wcn-topbar-links a:hover { color: var(--primary); }

.wcn-topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wcn-search-top {
  position: relative;
}

.wcn-search-top input {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
  width: 180px;
  outline: none;
}

.wcn-search-top button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

/* === HEADER === */
.wcn-header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.wcn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wcn-logo-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.wcn-logo-text {
  font-size: 24px;
  font-weight: 900;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.wcn-logo-text span {
  color: var(--primary);
}

.wcn-logo-desc {
  font-size: 11px;
  color: var(--text-light);
}

/* Finans Header */
.wcn-finance-header {
  display: flex;
  gap: 20px;
  align-items: center;
}

.wcn-finance-h-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.wcn-finance-h-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.wcn-finance-h-item .info {
  display: flex;
  flex-direction: column;
}

.wcn-finance-h-item .name {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
}

.wcn-finance-h-item .value {
  font-weight: 700;
  font-size: 14px;
}

.wcn-finance-h-item .change {
  font-size: 10px;
}

.wcn-finance-h-item .change.up { color: var(--success); }
.wcn-finance-h-item .change.down { color: var(--danger); }

/* Hava Durumu Header */
.wcn-weather-header {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.wcn-weather-header .city {
  font-size: 11px;
  color: var(--text-light);
}

.wcn-weather-header .temp {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
}

.wcn-weather-header .desc {
  font-size: 11px;
  color: var(--text-light);
}

/* === NAV === */
.wcn-nav {
  background: #fff;
  border-bottom: 2px solid var(--primary);
}

.wcn-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcn-nav-menu {
  list-style: none;
  display: flex;
}

.wcn-nav-menu li a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.wcn-nav-menu li a:hover,
.wcn-nav-menu .current-menu-item a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.wcn-nav-menu li a.home {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.wcn-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wcn-nav-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

.wcn-user-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === SON DAKIKA === */
.wcn-breaking {
  background: #fff3cd;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wcn-breaking-label {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.wcn-breaking-nav {
  display: flex;
  gap: 5px;
  padding: 0 10px;
}

.wcn-breaking-nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-light);
  padding: 5px;
}

.wcn-breaking-ticker {
  flex: 1;
  padding: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.wcn-breaking-ticker a {
  color: var(--text);
  margin-right: 30px;
  font-size: 14px;
  font-weight: 500;
}

.wcn-breaking-all {
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* === ANA SAYFA === */
.wcn-main { padding: 20px 0; }

.wcn-home-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

/* === HERO SLIDER === */
.wcn-hero-slider {
  position: relative;
  margin-bottom: 20px;
}

.wcn-hero-main {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wcn-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcn-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.wcn-hero-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wcn-hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 600px;
}

.wcn-hero-excerpt {
  font-size: 14px;
  opacity: 0.85;
  max-width: 500px;
  margin-bottom: 15px;
}

.wcn-hero-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* Slider Sayfa Numaraları */
.wcn-slider-pages {
  display: flex;
  gap: 2px;
  margin-top: 5px;
}

.wcn-slider-page {
  flex: 1;
  padding: 8px;
  background: #ddd;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.wcn-slider-page.active {
  background: var(--primary);
  color: #fff;
}

.wcn-slider-page:hover {
  background: #bbb;
}

/* === YAN HABERLER === */
.wcn-side-news {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wcn-side-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wcn-side-image {
  height: 80px;
  overflow: hidden;
}

.wcn-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcn-side-text {
  padding: 10px 10px 10px 0;
}

.wcn-side-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.wcn-side-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wcn-side-meta {
  font-size: 11px;
  color: var(--text-light);
}

/* === REKLAM === */
.wcn-ad-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius-lg);
  padding: 25px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcn-ad-banner .logo {
  font-size: 20px;
  font-weight: 900;
}

.wcn-ad-banner .logo span {
  color: var(--primary);
}

.wcn-ad-banner .desc {
  font-size: 12px;
  opacity: 0.8;
}

.wcn-ad-banner .btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* === KATEGORI BOLUMLERI === */
.wcn-cat-section {
  margin-bottom: 25px;
}

.wcn-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.wcn-cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.wcn-cat-title .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.wcn-cat-more {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.wcn-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.wcn-cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wcn-cat-card-image {
  height: 160px;
  overflow: hidden;
}

.wcn-cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.wcn-cat-card:hover .wcn-cat-card-image img {
  transform: scale(1.05);
}

.wcn-cat-card-content {
  padding: 15px;
}

.wcn-cat-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.wcn-cat-card-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.wcn-cat-card-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wcn-cat-links {
  margin-top: 15px;
}

.wcn-cat-links a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}

.wcn-cat-links a::before {
  content: '→ ';
  color: var(--primary);
}

/* === YAN SUTUN === */
.wcn-sidebar-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.wcn-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.wcn-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.wcn-sidebar-more {
  font-size: 11px;
  color: var(--primary);
}

/* Doviz Tab */
.wcn-rates-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.wcn-rates-tab {
  padding: 5px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.wcn-rates-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.wcn-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.wcn-rate-row:last-child { border-bottom: none; }

.wcn-rate-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.wcn-rate-flag {
  font-size: 18px;
}

.wcn-rate-value {
  font-weight: 700;
}

.wcn-rate-change {
  font-size: 11px;
  font-weight: 600;
}

.wcn-rate-change.up { color: var(--success); }
.wcn-rate-change.down { color: var(--danger); }

/* Hava Durumu */
.wcn-weather-main {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.wcn-weather-icon {
  font-size: 48px;
}

.wcn-weather-info h4 {
  font-size: 14px;
  color: var(--text-light);
}

.wcn-weather-info .temp {
  font-size: 32px;
  font-weight: 800;
}

.wcn-weather-info .desc {
  font-size: 12px;
  color: var(--text-light);
}

.wcn-weather-days {
  display: flex;
  justify-content: space-around;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.wcn-weather-day {
  text-align: center;
}

.wcn-weather-day .day {
  font-size: 11px;
  color: var(--text-light);
}

.wcn-weather-day .icon {
  font-size: 20px;
  margin: 5px 0;
}

.wcn-weather-day .temp {
  font-size: 13px;
  font-weight: 700;
}

/* Kose Yazarlari */
.wcn-author-mini {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.wcn-author-mini:last-child { border-bottom: none; }

.wcn-author-mini img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.wcn-author-mini h4 {
  font-size: 13px;
  font-weight: 700;
}

.wcn-author-mini p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.wcn-author-mini .date {
  font-size: 11px;
  color: #aaa;
}

/* === KOSE YAZILARI BOLUMU === */
.wcn-authors-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.wcn-authors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.wcn-authors-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.wcn-authors-title .icon {
  color: var(--primary);
  font-size: 20px;
}

.wcn-authors-nav {
  display: flex;
  gap: 5px;
}

.wcn-authors-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcn-authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wcn-author-card {
  text-align: center;
}

.wcn-author-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
}

.wcn-author-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.wcn-author-card .date {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 10px;
}

.wcn-author-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* === FOOTER === */
.wcn-footer {
  background: var(--secondary);
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 40px;
}

.wcn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.wcn-footer-brand .logo {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.wcn-footer-brand .logo span {
  color: var(--primary);
}

.wcn-footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.6;
}

.wcn-footer h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.wcn-footer li { margin-bottom: 8px; }

.wcn-footer a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: var(--transition);
}

.wcn-footer a:hover { color: #fff; }

.wcn-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* === TEMA DEGISTIRICI === */
.wcn-theme-switcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.wcn-theme-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.wcn-theme-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 15px;
  min-width: 200px;
  display: none;
}

.wcn-theme-panel.active { display: block; }

.wcn-theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}

.wcn-theme-option:hover { background: #f5f5f5; }

.wcn-theme-option.active { background: var(--primary); color: #fff; }

/* === MOBIL === */
@media (max-width: 1024px) {
  .wcn-home-grid {
    grid-template-columns: 1fr;
  }
  
  .wcn-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wcn-authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wcn-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .wcn-header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .wcn-finance-header {
    display: none;
  }
  
  .wcn-nav-menu {
    overflow-x: auto;
    gap: 0;
  }
  
  .wcn-nav-menu li a {
    padding: 10px 12px;
    font-size: 11px;
  }
  
  .wcn-hero-main {
    height: 280px;
  }
  
  .wcn-hero-title {
    font-size: 20px;
  }
  
  .wcn-cat-grid {
    grid-template-columns: 1fr;
  }
  
  .wcn-authors-grid {
    grid-template-columns: 1fr;
  }
  
  .wcn-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* === DEMO TEMALAR === */
.wcn-theme-dark {
  --bg: #0f0f1a;
  --card-bg: #1a1a2e;
  --text: #e0e0e0;
  --text-light: #888;
  --border: #2a2a3e;
}

.wcn-theme-magazin {
  --primary: #e91e63;
  --secondary: #2d3436;
}

.wcn-theme-ekonomi {
  --primary: #00b894;
  --secondary: #2d3436;
}
