/**
 * Anasayfa (index) özel stilleri
 * Tüm style kodları head'den yüklenir
 */

/* Slayt 16:9 alan */
.slayt-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.slayt-16-9 .owl-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.slayt-16-9 .owl-carousel,
.slayt-16-9 .owl-stage-outer,
.slayt-16-9 .owl-stage,
.slayt-16-9 .owl-item,
.slayt-16-9 .owl-item > div {
  height: 100% !important;
}
.slayt-16-9 .img-thumbnail {
  height: 100%;
  margin: 0;
}
.slayt-16-9 .img-thumbnail {
  position: relative;
}
.slayt-16-9 .img-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slayt caption */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.owl-item.active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Sağdaki alan - üst orta alt hizalı (justify-content-between) */
.portfolio-list .slayt-sag-kolon {
  min-height: 100%;
}
.portfolio-list .slayt-sag-kolon > div {
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .portfolio-list .slayt-sag-kolon {
    height: auto !important;
    justify-content: flex-start !important;
  }
}

/* Info card */
.info-card {
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.info-card img {
  border-radius: 8px;
}
.info-content ul li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.info-image img {
  height: 200px;
  border-radius: 8px;
}

/* İkon kutusu */
.icon-card {
  background: #A21726;
  padding: 20px 10px;
  border-radius: 10px;
}
.icon-item img {
  width: 70px;
  opacity: 0.9;
  transition: all 0.3s ease;
}
.icon-item p {
  color: #fff;
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
}
.icon-item:hover img {
  filter: drop-shadow(0 0 8px #fff);
  transform: scale(1.1);
}
.icon-item:hover p {
  color: #fff;
  opacity: 1;
}
@media (max-width: 767px) {
  .info-card {
    text-align: center;
  }
}

/* Ticker band */
.ticker-band {
  background: #A21726;
  color: #fff;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  padding: 14px 0;
  position: relative;
}
.ticker-wrap {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}
.ticker-move {
  display: inline-flex;
  align-items: center;
  animation: tickerScroll 45s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 35px;
}
.ticker-name {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.3px;
}
.ticker-low {
  color: #ff4d4d;
  font-weight: 600;
  font-size: 0.9rem;
}
.ticker-high {
  color: #00ff80;
  font-weight: 600;
  font-size: 0.9rem;
}
.ticker-divider {
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,0.3);
  display: inline-block;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width:768px) {
  .ticker-move { animation: tickerScroll 25s linear infinite; }
  .ticker-item { margin: 0 20px; }
  .ticker-name { font-size: 0.85rem; }
}

/* Grafik panel */
.panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}
.panel-header {
  background: linear-gradient(90deg, #A21726, #d43a4b);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-box {
  padding: 20px;
  background: #fff3f3;
  border-radius: 0 0 12px 12px;
}
.chart-box h5 {
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
  color: #A21726;
  font-size: 23px;
}
.info-box {
  padding: 30px;
}
.info-box h3 {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #A21726;
}
.info-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}
.stat {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}
.stat-label {
  color: #777;
  font-size: 0.9rem;
}
.info-box select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 15px;
  width: 100%;
  font-size: 0.95rem;
}

/* Duyurular / İhaleler */
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 3px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
}
.announcement-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 17px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.announcement-card img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}
.announcement-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  color: #252525;
}
.announcement-date {
  font-size: 0.85rem;
  color: #666;
}
.tender-card {
  background-color: #fff;
  padding: 17px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tender-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.tender-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  color: #252525;
}
.tender-date {
  font-size: 0.85rem;
  color: #666;
}
.calendar-frame {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 12px;
}
@media (max-width: 992px) {
  .calendar-frame { height: 450px; }
}
@media (max-width: 576px) {
  .calendar-frame { height: 350px; }
}

/* Image grid bar */
.image-grid-bar {
  width: 100%;
  padding: 25px 0;
}
.image-grid-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  padding: 0 0px;
}
.image-grid-box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-grid-box::before {
  content: "";
  display: block;
  padding-top: 100%;
}
.image-grid-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.image-grid-box img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.image-grid-box:hover img {
  transform: translate(-50%, -50%) scale(1.05);
}
@media (max-width:1200px) {
  .image-grid-row {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width:768px) {
  .image-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
