:root {
  --main-width: 1043px;
  --card-width: 327.67px;
}

/* GENEL POSTER YAPISI */
.poster-grid {
  width: 100%;
  max-width: var(--main-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 1rem;
}

.poster-card {
  position: relative;
  width: 100%;
  max-width: var(--card-width);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.15);
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.poster-card:hover {
  transform: scale(1.05);
}

.poster-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.poster-title {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  text-align: center;
  padding: 10px;
  transition: bottom 0.4s ease;
}

.poster-card:hover .poster-title {
  bottom: 0;
}

.grid-text-box {
  width: 100%;
  text-align: center;
  margin: 1.5rem 0;
  user-select: none;
}

.grid-text-box .top-text,
.grid-text-box .bottom-text {
  font-size: 1.2rem;
  color: #FF6A00;
  letter-spacing: 0.05rem;
}

/* YOUTUBE VİDEOLARI */
.youtube-grid {
  width: 100%;
  max-width: var(--main-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 1rem;
}

.youtube-grid > div {
  flex: 1 1 300px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.youtube-grid iframe {
  width: 100%;
  height: 270px;
  border-radius: 10px;
  border: none;
}

/* HEADER - NAV */
header {
  background-color: #000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111;
  padding: 0 30px;
  height: 97px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  width: 250px;
  height: 97px;
  object-fit: contain;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
}

.burger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  margin-left: 20px;
}

nav ul.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

nav ul.menu li a {
  color: #eee;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  display: inline-block;
  transition: color 0.3s ease;
  font-size: 16px;
}

nav ul.menu li a:hover {
  color: #FF6A00;
}

nav ul.menu li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  display: none;
  min-width: 180px;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #eee;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #333;
  color: orange;
}

/* SLIDER BACKGROUND */
body {
  background: url('img/rfs-bg.png') no-repeat center center fixed;
  background-size: cover;
  background-color: #000;
}

/* SLIDER GÖRÜNTÜ - WEB */
.swiper {
  width: 100%;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
}

.swiper-slide {
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* FOOTER BANNER GRID - WEB */
.footer-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
  align-items: center;
}

.footer-banner-grid a img {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-banner-grid a img:hover {
  transform: scale(1.05);
}

/* RESPONSIVE - TABLET */
@media screen and (max-width: 992px) {
  header {
    background-color: #000 !important;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 20px;
    gap: 10px;
    background-color: #000 !important;
  }

  .burger {
    display: none !important;
  }

  nav ul.menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    width: auto !important;
    gap: 10px;
    background-color: #000 !important;
  }

  nav ul.menu li {
    white-space: nowrap;
  }

  .logo-area img {
    width: 150px;
    height: auto;
  }

  nav ul.menu li a {
    font-size: 14px;
    padding: 0.3rem 0.6rem;
  }

  .swiper {
    height: 55vw;
  }
}

/* RESPONSIVE - MOBIL */
@media screen and (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
  }

  .logo-area img {
    width: 250px !important;
    height: auto !important;
  }

  nav ul.menu li a {
    font-size: 15px !important;
    padding: 0.4rem 0.8rem !important;
  }

  .swiper {
    width: 100% !important;
    height: 100vw !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .swiper-slide {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-banner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 10px !important;
  }

  .footer-banner-grid a img {
    max-width: 150px !important;
  }
}
