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

body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #111;
}

.top-header {
  background: #111;
  color: white;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 22px;
  font-weight: bold;
}

nav a:hover {
  color: #ffcc00;
}
.breaking-news {
  background: #c40000;
  color: white;
  padding: 12px 8%;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  overflow: hidden;
}

.breaking-news strong {
  flex-shrink: 0;
  z-index: 2;
}

.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 13s linear infinite;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.breaking-news:hover .ticker span {
  animation-play-state: paused;
}

.breaking-news:hover {
  background: #9e0000;
}
.container {
  width: 84%;
  margin: 25px auto;
}

.hero-slider {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.slide {
  display: none;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.slide-text {
  position: absolute;
  left: 40px;
  bottom: 40px;
  color: white;
  max-width: 650px;
}

.slide-text h1 {
  font-size: 42px;
  margin: 12px 0;
}

.slide-text p {
  font-size: 18px;
}

.category {
  display: inline-block;
  background: #ffcc00;
  color: #111;
  padding: 7px 12px;
  font-weight: 900;
  border-radius: 4px;
}

.category.small {
  font-size: 12px;
  margin: 12px 0 8px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 45px;
  width: 50px;
  height: 70px;
  cursor: pointer;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

.slider-btn.left {
  left: 0;
}

.slider-btn.right {
  right: 0;
}

.news-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.news-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.news-image {
  width: 100%;
  height: 210px;
  background: #ddd;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-content h2 {
  font-size: 22px;
  margin: 12px 0 10px;
  line-height: 1.25;
}

.news-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin-top: auto;
}

.category.small {
  font-size: 12px;
  width: fit-content;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 20;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: white;
  max-width: 800px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  animation: pop 0.2s ease;
}

@keyframes pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.modal-content h1,
.modal-content p,
.modal-content span {
  margin-left: 25px;
  margin-right: 25px;
}

.modal-content h1 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  border: none;
  background: black;
  color: white;
  font-size: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 25px;
  background: #111;
  color: white;
  margin-top: 40px;
}

@media (max-width: 800px) {
  .top-header {
    flex-direction: column;
    gap: 15px;
  }

  nav a {
    margin: 0 8px;
  }

  .container {
    width: 92%;
  }

  .hero-slider {
    height: 360px;
  }

  .slide-text {
    left: 22px;
    bottom: 25px;
  }

  .slide-text h1 {
    font-size: 28px;
  }

  .news-grid {
    grid-template-columns: 1fr;

 @media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 230px;
  }
}


  }
}
.logo {
  cursor: pointer;
}

.article-page {
  width: 84%;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.article-detail {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
}

.article-detail h1 {
  font-size: 42px;
  margin: 18px 0 12px;
  line-height: 1.15;
}

.article-meta {
  color: #666;
  display: flex;
  gap: 18px;
  font-size: 14px;
  margin-bottom: 22px;
}

.article-detail img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.article-detail p {
  font-size: 20px;
  line-height: 1.8;
  white-space: pre-line;
}

.article-warning {
  margin-top: 28px;
  background: #fff3cd;
  border-left: 5px solid #ffcc00;
  padding: 14px 18px;
  font-weight: bold;
  border-radius: 8px;
}

.sidebar {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
  position: sticky;
  top: 20px;
}

.sidebar h3 {
  margin-bottom: 16px;
  border-bottom: 3px solid #c40000;
  padding-bottom: 10px;
}

.sidebar a {
  display: block;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  padding: 13px 0;
  border-bottom: 1px solid #eee;
}

.sidebar a:hover {
  color: #c40000;
}

@media (max-width: 900px) {
  .article-page {
    width: 92%;
    grid-template-columns: 1fr;
  }

  .article-detail h1 {
    font-size: 30px;
  }

  .article-detail img {
    height: 280px;
  }

  .article-detail p {
    font-size: 17px;
  }

  .sidebar {
    position: static;
  }
}

.article-detail p {
  font-size: 20px;
  line-height: 1.85;
  white-space: pre-line;
}

.article-detail h1 {
  font-size: 44px;
  line-height: 1.12;
}

.side-ad {
  position: fixed;
  top: 150px;
  width: 120px;
  height: 520px;
  background: #ddd;
  border-radius: 12px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 5px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-ad:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 26px rgba(0,0,0,0.35);
}

.side-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sol reklam */
.side-ad-left {
  left: 18px;
}

/* Sağ reklam */
.side-ad-right {
  right: 18px;
}

/* İçerik reklamlara çarpmasın diye geniş ekranlarda biraz ortaya sıkıştıralım */
@media (min-width: 1200px) {
  .container,
  .article-page {
    max-width: 1050px;
  }
}

/* Tablet ve telefonda yan reklamları gizle */
@media (max-width: 1150px) {
  .side-ad {
    display: none;
  }
}
.markets-page {
  width: 84%;
  max-width: 1150px;
  margin: 30px auto;
}

.markets-hero {
  background: #111;
  color: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.markets-hero h1 {
  font-size: 44px;
  margin: 14px 0 8px;
}

.markets-hero p {
  color: #ddd;
}

.market-clock {
  background: rgba(255,255,255,0.1);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse {
  width: 12px;
  height: 12px;
  background: #00d084;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(0, 208, 132, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(0, 208, 132, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 208, 132, 0);
  }
}

.market-ticker {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 24px;
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
  overflow-x: auto;
}

.ticker-track {
  display: flex;
  gap: 12px;
  min-width: max-content;
}

.ticker-item {
  border: 1px solid #eee;
  background: #fafafa;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  transition: 0.2s ease;
}

.ticker-item:hover {
  border-color: #ffcc00;
  background: #fff8d6;
}

.ticker-item span {
  color: #333;
}

.ticker-item em {
  font-style: normal;
}

.up {
  color: #0a9f5a;
  font-weight: bold;
}

.down {
  color: #c40000;
  font-weight: bold;
}

.markets-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: start;
}

.asset-list-panel,
.asset-detail-panel {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 5px 16px rgba(0,0,0,0.12);
}

.panel-subtitle {
  color: #666;
  margin: 6px 0 18px;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-card {
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: 0.2s ease;
}

.asset-card:hover,
.asset-card.selected {
  border-color: #ffcc00;
  background: #fff8d6;
}

.asset-card span {
  display: block;
  color: #666;
  font-size: 13px;
  margin-top: 5px;
}

.asset-card-price {
  text-align: right;
}

.asset-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.asset-detail-header h2 {
  font-size: 34px;
  margin: 12px 0 4px;
}

.asset-detail-header p {
  color: #666;
  font-weight: bold;
}

.asset-price-box {
  text-align: right;
}

.asset-price-box strong {
  display: block;
  font-size: 36px;
  margin-bottom: 6px;
}

.chart-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.chart-tab {
  border: none;
  background: #eee;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
}

.chart-tab.active,
.chart-tab:hover {
  background: #111;
  color: white;
}

#marketChart {
  width: 100%;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px solid #eee;
}

.market-info-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.market-info-grid div {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 14px;
}

.market-info-grid span {
  display: block;
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
}

.market-info-grid strong {
  font-size: 18px;
}

@media (max-width: 1000px) {
  .markets-layout {
    grid-template-columns: 1fr;
  }

  .markets-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .market-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .markets-page {
    width: 92%;
  }

  .markets-hero h1 {
    font-size: 32px;
  }

  .asset-detail-header {
    flex-direction: column;
  }

  .asset-price-box {
    text-align: left;
  }

  .market-info-grid {
    grid-template-columns: 1fr;
  }
}