/* Eksioglu Mutlukent — kırmızı & turkuaz */
:root {
  --em-red: #c41e3a;
  --em-red-dark: #9a1830;
  --em-turquoise: #2dd4bf;
  --em-turquoise-dark: #14b8a6;
  --em-dark: #0f172a;
  --em-body: #1e293b;
  --em-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--em-body);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-weight: 700;
  background: linear-gradient(135deg, var(--em-red), var(--em-turquoise));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--em-dark) !important;
  border-radius: 10px;
  padding: 0.5rem 0.85rem !important;
}

.navbar .nav-link:hover {
  color: var(--em-red) !important;
  background: rgba(196, 30, 58, 0.06);
}

.dropdown-menu .dropdown-item {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(45, 212, 191, 0.12);
  color: var(--em-dark);
}

.hero-slider {
  position: relative;
  border-radius: 0 0 var(--em-radius) var(--em-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hero-slider .carousel-item {
  min-height: 320px;
  max-height: 520px;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .carousel-caption {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.75));
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.5rem 1.5rem;
}

.section-title {
  font-weight: 700;
  color: var(--em-dark);
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.section-title::after {
  content: "";
  display: block;
  height: 4px;
  width: 48px;
  border-radius: 4px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--em-red), var(--em-turquoise));
}

.card-news {
  border: none;
  border-radius: var(--em-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.card-news:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.card-news .card-img-top {
  height: 200px;
  object-fit: cover;
}

.badge-accent {
  background: linear-gradient(135deg, var(--em-turquoise), var(--em-turquoise-dark));
  color: #0f172a;
  font-weight: 600;
}

.feed-card {
  border-radius: var(--em-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feed-card .thumb {
  aspect-ratio: 1;
  background: #e2e8f0;
  object-fit: cover;
  width: 100%;
}

.feed-card .body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feed-card a.stretched-link {
  font-weight: 600;
  color: var(--em-dark);
  text-decoration: none;
}

.feed-card a.stretched-link:hover {
  color: var(--em-red);
}

.feed-card-yt .feed-card-yt__btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.feed-card-yt .feed-card-yt__btn:hover {
  opacity: 0.92;
}

.feed-card-yt .feed-card-yt__btn:focus {
  outline: 2px solid var(--em-turquoise);
  outline-offset: 2px;
}

.feed-card-yt .body .feed-card-yt__btn {
  color: var(--em-dark);
  font-weight: 600;
}

.feed-card-yt .body .feed-card-yt__btn:hover {
  color: var(--em-red);
}

.site-footer {
  background: linear-gradient(135deg, var(--em-dark) 0%, #1e293b 100%);
  color: #e2e8f0;
  margin-top: auto;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--em-turquoise);
}

.footer-heading {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.page-hero {
  background: linear-gradient(135deg, var(--em-red) 0%, var(--em-turquoise-dark) 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 var(--em-radius) var(--em-radius);
}

.page-hero h1 {
  font-weight: 700;
  margin: 0;
}

.content-box {
  background: #fff;
  border-radius: var(--em-radius);
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose th {
  background: #f8fafc;
  font-weight: 600;
}

.prose .lead p:last-child {
  margin-bottom: 0;
}

/* Masonry gallery */
.gallery-masonry {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-masonry {
    column-count: 3;
  }
}

@media (min-width: 1200px) {
  .gallery-masonry {
    column-count: 4;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--em-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-backdrop.show {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1090;
  background: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.contact-verify-range {
  max-width: 420px;
  cursor: pointer;
}

.contact-verify-wrap {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--em-radius);
  border: 1px solid #e2e8f0;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1090;
  width: 48px;
  height: 72px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--em-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}

.lightbox-nav:hover {
  background: #fff;
  color: var(--em-red);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 576px) {
  .lightbox-nav {
    width: 40px;
    height: 56px;
    font-size: 1.5rem;
  }
  .lightbox-prev {
    left: 0.35rem;
  }
  .lightbox-next {
    right: 0.35rem;
  }
}

/* Contact form scroll button */
#contactSubmit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}

.contact-map iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--em-radius);
}

/* YouTube tam ekran overlay (Highslide benzeri) */
.yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1085;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.yt-lightbox[hidden] {
  display: none !important;
}

.yt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  cursor: pointer;
}

.yt-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1120px, 96vw);
  max-height: 92vh;
  animation: ytLbIn 0.22s ease-out;
}

@keyframes ytLbIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.yt-lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.yt-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.yt-lightbox-title {
  max-width: 100%;
}

.yt-lightbox-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@media (max-width: 576px) {
  .yt-lightbox-close {
    top: -2.25rem;
    right: -0.25rem;
  }
}

/* Slayt: YouTube — poster + yükleme sonrası görünür iframe */
.carousel-yt-slide {
  overflow: hidden;
  min-height: 200px;
}

.carousel-yt-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  transition: opacity 0.45s ease;
}

.carousel-yt-slide.is-video-ready .carousel-yt-poster {
  opacity: 0;
  pointer-events: none;
}

.carousel-yt-iframe {
  position: relative;
  z-index: 1;
  display: block;
  background: #000;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-yt-iframe.is-ready {
  opacity: 1;
}

.carousel-yt-chrome-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.carousel-yt-caption {
  z-index: 4;
  pointer-events: auto;
}

/* Site bilgisi iç sayfalar: yan menü */
.site-page-sidebar__heading {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-page-sidebar__link {
  color: var(--em-body);
  font-weight: 600;
  border: 1px solid transparent;
}

.site-page-sidebar__link:hover {
  background: rgba(45, 212, 191, 0.12);
  color: var(--em-dark);
}

.site-page-sidebar__link.active {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(45, 212, 191, 0.12));
  border-color: rgba(196, 30, 58, 0.25);
  color: var(--em-red);
}
