/* ============================================================
   PELI WEBSITE – style.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:       #cc1a1a;
  --red-dark:  #a81515;
  --white:     #ffffff;
  --gray-light:#f5f5f5;
  --gray-text: #444444;
  --gray-mid:  #888888;
  --nav-h:     60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

/* Logo */
.logo {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.logo-peli {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  letter-spacing: -1px;
}

.logo sup {
  font-size: 0.65rem;
  color: var(--red);
  margin-left: 1px;
  margin-top: 4px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gray-text);
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--red);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--red);
  border-radius: 2px;
}

.arrow {
  font-size: 0.7rem;
  margin-left: 2px;
}

/* Dropdown */
.dropdown { position: relative; }

/* invisible bridge that keeps :hover alive while the mouse
   travels from the nav item down to the menu */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 10px;   /* matches the gap below */
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--red);
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  flex-direction: column;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 0.78rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-text);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
  background: var(--gray-light);
  color: var(--red);
}

.dropdown:hover .dropdown-menu { display: flex; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  margin-top: var(--nav-h);
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  min-height: 480px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.slide.active { opacity: 1; }

/* Hero card (red overlay) */
.hero-card {
  position: absolute;
  top: 14%;
  right: 6%;
  background: var(--red);
  padding: 32px 44px;
  max-width: 380px;
  animation: fadeSlideIn 0.7s ease both;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.7);
}

.dot.active { background: var(--red); border-color: var(--red); }

/* ============================================================
   CONTENT SECTION
   ============================================================ */
.content-section {
  background: var(--white);
}

.content-inner {
  max-width: 1200px;
  margin: -70px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
  border-radius: 2px;
}

/* Column shared */
.col {
  padding: 42px 44px 50px;
}

.col-products {
  border-right: 1px solid #ebebeb;
}

/* Column title */
.col-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.bullet {
  color: var(--red);
  margin-right: 6px;
}

/* Product carousel */
.product-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  /* butonlar görünür kalır */
}

/* sadece kart alanı kırpılır */
.carousel-track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.product-carousel {
  display: flex;
  gap: 14px;
  width: 100%;
}

.product-card {
  flex: 0 0 calc(25% - 11px);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-3px); }

.product-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  border-radius: 1px;
}

.product-card p {
  font-size: 0.68rem;
  color: var(--gray-mid);
  margin-top: 7px;
  line-height: 1.4;
}

/* Carousel buttons */
.carousel-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.carousel-btn:hover { color: var(--red); }

/* About column */
.col-about {}

.about-text {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #555;
}

.drop-p {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6rem;
  color: var(--red);
  float: left;
  line-height: 0.8;
  margin-right: 5px;
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: auto;
  background: var(--red);
  color: var(--white);
  padding: 3px 20px; /* 14px → 6px */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.02em;
}

.footer strong { font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-inner {
    grid-template-columns: 1fr;
    margin: -40px 16px 0;
  }
  .col-products { border-right: none; border-bottom: 1px solid #ebebeb; }
  .hero-card { right: 3%; padding: 22px 28px; }
  .hero-title { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-item { font-size: 0.7rem; }
  .nav-item.active::before { display: none; }
  .hero-card { top: 10%; right: 2%; left: 2%; max-width: 100%; }
  .footer { flex-direction: column; gap: 6px; text-align: center; }
}
