/*
Theme Name: dtheme
Theme URI: https://example.com/dtheme
Author: alkimoberon
Description: Hafif ve hızlı haber teması.
Version: 1.0.1
Text Domain: dtheme
*/

:root {
  --dtheme-primary: #e30613;
  --dtheme-secondary: #111111;
  --dtheme-bg: #ffffff;
  --dtheme-text: #222222;
  --dtheme-link: #e30613;
  --dtheme-header-bg: #f50546;
  --dtheme-header-height: 120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--dtheme-bg);
  color: var(--dtheme-text);
}

a {
  color: var(--dtheme-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.dtheme-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.dtheme-header-top {
  background: var(--dtheme-secondary);
  color: #ffffff;
}

.dtheme-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  font-size: 13px;
}

.dtheme-header-main {
  background: var(--dtheme-header-bg);
  color: #ffffff;
  min-height: var(--dtheme-header-height);
  display: flex;
  align-items: center;
}

.dtheme-header-main-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  gap: 20px;
  justify-content: center;
}

.dtheme-header-main-inner.align-left {
  justify-content: flex-start;
}

.dtheme-header-main-inner.align-right {
  justify-content: flex-end;
}

.dtheme-header-left {
  font-size: 14px;
  font-weight: 600;
  margin-right: auto;
  white-space: nowrap;
}

.dtheme-header-left:empty {
  display: none;
}

.dtheme-header-main-inner.align-left .dtheme-header-left {
  display: none;
}

.dtheme-logo {
  margin: 0 auto;
  text-align: center;
}

.dtheme-header-main-inner.align-left .dtheme-logo {
  margin: 0;
  text-align: left;
}

.dtheme-header-main-inner.align-right .dtheme-logo {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.dtheme-nav-bar {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dtheme-nav-bar .dtheme-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtheme-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.dtheme-nav-menu li {
  margin: 0;
}

.dtheme-nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dtheme-nav-bar.palette-light {
  background: #ffffff;
}

.dtheme-nav-bar.palette-light .dtheme-nav-menu a {
  color: #111;
}

.dtheme-nav-bar.palette-light .dtheme-nav-menu a:hover,
.dtheme-nav-bar.palette-light .dtheme-nav-menu .current-menu-item > a {
  background: #f0f0f0;
}

.dtheme-nav-bar.palette-dark {
  background: #111111;
}

.dtheme-nav-bar.palette-dark .dtheme-nav-menu a {
  color: #ffffff;
}

.dtheme-nav-bar.palette-dark .dtheme-nav-menu a:hover,
.dtheme-nav-bar.palette-dark .dtheme-nav-menu .current-menu-item > a {
  background: rgba(255,255,255,0.15);
}

.dtheme-nav-bar.palette-primary {
  background: var(--dtheme-primary);
}

.dtheme-nav-bar.palette-primary .dtheme-nav-menu a {
  color: #ffffff;
}

.dtheme-nav-bar.palette-primary .dtheme-nav-menu a:hover,
.dtheme-nav-bar.palette-primary .dtheme-nav-menu .current-menu-item > a {
  background: rgba(255,255,255,0.2);
}

.dtheme-layout {
  margin-top: 20px;
}

.dtheme-main-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
}

.dtheme-main-row .dtheme-main-content {
  flex: 2 1 0;
  min-width: 0;
}

.dtheme-main-row .dtheme-main-sidebar {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 360px;
}

@media (max-width: 1024px) {
  .dtheme-main-row {
    flex-direction: column;
  }

  .dtheme-main-row .dtheme-main-sidebar,
  .dtheme-main-row .dtheme-main-content {
    flex: 1 1 auto;
    min-width: 100%;
  }
}

.dtheme-breaking {
  margin-bottom: 18px;
  border-bottom: 1px solid #ededed;
}

.dtheme-breaking-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111111;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 14px;
  overflow: hidden;
}

.dtheme-breaking-label {
  font-weight: 700;
  color: var(--dtheme-primary);
  text-transform: uppercase;
}

.dtheme-breaking-ticker {
  flex: 1;
  color: #ffffff;
  overflow: hidden;
}

.dtheme-breaking-current a {
  color: #ffffff;
  text-decoration: none;
}

.dtheme-breaking-current a:hover {
  text-decoration: underline;
}

.dtheme-market {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.dtheme-market-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.dtheme-market-weather-icon {
  font-size: 32px;
}

.dtheme-market-weather-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dtheme-market-weather-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
}

.dtheme-market-weather-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #d6d6d6;
  background: #fff;
  font-size: 13px;
}

.dtheme-market-weather-location {
  font-weight: 600;
  color: #111;
}

.dtheme-market-weather-temp {
  font-size: 20px;
  font-weight: 700;
}

.dtheme-market-tickers {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: stretch;
}

.dtheme-market-item {
  flex: 1;
  min-width: 120px;
  background: #f9f9f9;
  border-radius: 24px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #ececec;
}

.dtheme-market-label {
  font-size: 12px;
  font-weight: 600;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dtheme-market-value {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.dtheme-market-change {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dtheme-market-change.is-up {
  color: #1ba160;
}

.dtheme-market-change.is-down {
  color: #d7263d;
}

.dtheme-market-change.is-flat {
  color: #888;
}

.dtheme-market-item.is-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .dtheme-market {
    flex-direction: column;
    align-items: flex-start;
  }

  .dtheme-market-tickers {
    width: 100%;
    flex-wrap: wrap;
  }

  .dtheme-market-item {
    flex: calc(50% - 6px);
  }
}

@media (max-width: 640px) {
  .dtheme-market {
    display: none;
  }

  body.dtheme-market-mobile-enabled .dtheme-market {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 20px;
  }

  body.dtheme-market-mobile-enabled .dtheme-market-weather {
    width: 100%;
    justify-content: space-between;
  }

  body.dtheme-market-mobile-enabled .dtheme-market-tickers {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.dtheme-market-mobile-enabled .dtheme-market-item {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .dtheme-header-main-inner {
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .dtheme-header-left,
  .dtheme-nav-bar .dtheme-nav-menu {
    margin: 0;
  }

  .dtheme-nav-bar .dtheme-container {
    justify-content: center;
  }
}

.dtheme-manset-wrap {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

.dtheme-manset-left {
  flex: 2 1 0;
  min-width: 0;
  height: 392px;
}

.dtheme-manset-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 392px;
}

.dtheme-manset {
  background: #000000;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  height: 100%;
  padding-bottom: 60px;
}

.dtheme-manset-slide {
  display: none;
}

.dtheme-manset-slide.is-active {
  display: block;
}

.dtheme-manset-image {
  position: relative;
}

.dtheme-manset-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.dtheme-manset-title {
  position: absolute;
  left: 20px;
  right: 0;
  bottom: 16px;
  padding: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.dtheme-manset-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0;
  padding: 0 2px;
  background: #050505;
  justify-content: center;
  align-items: stretch;
  z-index: 2;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.35);
}

.dtheme-manset-page {
  flex: 1 1 70px;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid #950014;
  background: linear-gradient(180deg, #ff3043 0%, #c4001d 100%);
  color: #ffffff;
  padding: 0 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  text-align: center;
  line-height: 1;
}

.dtheme-manset-page.is-active {
  background: #ffffff;
  color: #c4001d;
  border-color: #ffffff;
  transform: none;
  box-shadow: none;
}

.dtheme-manset-page:hover,
.dtheme-manset-page:focus {
  outline: none;
  background: #ffffff;
  color: #c4001d;
}

@media (max-width: 600px) {
  .dtheme-manset-pagination {
    padding: 0;
  }

  .dtheme-manset-page {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 16px;
    height: 40px;
  }
}

.dtheme-card-small {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  flex: 1 1 0; /* iki kart, her biri yüksekliğin yarısını kaplasın */
  overflow: hidden;
}

.dtheme-card-small-thumb {
  position: relative;
  height: 100%;
}

.dtheme-card-small-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dtheme-card-small-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.dtheme-manset-right-card {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
}

.dtheme-manset-right-inner {
  display: block;
  height: 100%;
  position: relative;
}

.dtheme-manset-right-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dtheme-manset-right-caption {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

.dtheme-manset-right-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.dtheme-manset-right-meta {
  font-size: 12px;
  opacity: 0.85;
}

.dtheme-card-small-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.dtheme-card-small-meta {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.85;
}

.dtheme-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.dtheme-card {
  border: 1px solid #e4e4e4;
  background: #ffffff;
}

.dtheme-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.dtheme-card-body {
  padding: 12px 14px 16px;
}

.dtheme-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #333333;
}

.dtheme-card-meta {
  font-size: 12px;
  color: #333333;
  font-weight: 600;
}

.dtheme-footer {
  margin-top: 40px;
  background: var(--dtheme-secondary);
  color: #ffffff;
  padding: 20px 0;
  font-size: 13px;
}

.dtheme-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dtheme-footer-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.dtheme-footer-online {
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dtheme-footer-code {
  background: var(--dtheme-secondary);
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dtheme-footer-code a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.dtheme-footer-code a:hover {
  color: var(--dtheme-primary);
}

.widget {
  border: 1px solid #e4e4e4;
  background: #ffffff;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.widget-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--dtheme-primary);
}

.dtheme-latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dtheme-latest-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.dtheme-latest-icon {
  color: var(--dtheme-primary);
  font-size: 10px;
  margin-top: 4px;
}

.dtheme-latest-link {
  color: #222222;
}

.dtheme-latest-link:hover {
  color: var(--dtheme-primary);
}

.dtheme-sidebar-card {
  border-bottom: 1px solid #ececec;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.dtheme-sidebar-card-thumb {
  position: relative;
}

.dtheme-sidebar-card-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.dtheme-sidebar-card-date {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.7);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 2px;
}

.dtheme-sidebar-card-title {
  font-size: 13px;
  margin: 6px 0 0;
}

.dtheme-after-slider {
  margin: 30px 0 10px;
}

.dtheme-after-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.dtheme-after-track {
  position: relative;
}

.dtheme-after-slide {
  display: none;
}

.dtheme-after-slide.is-active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dtheme-post-line {
  border-bottom: 1px solid #ececec;
}

.dtheme-post-line-inner {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.dtheme-post-line-title {
  color: #222222;
}

.dtheme-post-line-date {
  color: #999999;
  font-size: 12px;
  margin-left: 12px;
}

@media (max-width: 960px) {
  .dtheme-home-top {
    grid-template-columns: 1fr;
  }

  .dtheme-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dtheme-breaking {
    display: none;
  }

  .dtheme-main-row {
    flex-direction: column;
  }

  .dtheme-main-row .dtheme-card-grid,
  .dtheme-main-row .dtheme-sidebar {
    width: 100%;
  }

  .dtheme-header-top-inner,
  .dtheme-header-main-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dtheme-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dtheme-header-main-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dtheme-manset-title {
    font-size: 18px;
  }
  .dtheme-sidebar-card-thumb img {
    height: 110px;
    object-fit: cover;
    display: block;
  }
  .dtheme-card-body {
    padding: 12px 14px 16px;
  }
}

.dtheme-mobile .dtheme-manset-wrap {
  flex-direction: column;
  margin-bottom: 20px;
}

.dtheme-mobile .dtheme-manset-left,
.dtheme-mobile .dtheme-manset-right {
  width: 100%;
  height: auto;
}

.dtheme-mobile .dtheme-manset-right {
  flex-direction: column;
  gap: 12px;
}

.dtheme-mobile .dtheme-manset-right-card {
  min-height: 200px;
}
