/* ============================================================
   uygulama.css — Shared styles for uygulamalar/* pages
   Prefix: up-
   Design tokens match site-wide: --primary #C8102E, --dark #0a0f18
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;500;600;700;800;900&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary:       #C8102E;
  --primary-dark:  #a00d26;
  --dark:          #0a0f18;
  --dark2:         #162030;
  --dark3:         #1e2d3d;
  --radius:        12px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  font-family: 'Maven Pro', sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;
  padding-top: 71px; /* offset for fixed header */
  margin: 0;
}

/* ===== CONTAINER ===== */
.up-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.up-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.up-eyebrow--light {
  color: rgba(200,16,46,0.75);
}

.up-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.up-section-header .up-eyebrow {
  display: block;
  margin-bottom: 8px;
}

.up-section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: #0a0f18;
  margin: 0;
}
.up-section-title em {
  font-style: normal;
  color: var(--primary);
}
.up-section-title--light {
  color: #fff;
}

/* ===== HERO ===== */
.up-hero {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 65% 60% at 75% 50%, rgba(200,16,46,0.14) 0%, transparent 70%),
    linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.up-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.up-hero__inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.up-breadcrumb,
nav.up-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.up-breadcrumb li,
.up-breadcrumb span {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.up-breadcrumb a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.up-breadcrumb a:hover { color: #fff; }
.up-breadcrumb .fa { font-size: 10px; opacity: 0.5; }

.up-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
}
.up-hero__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.75;
  margin: 0 0 32px;
}

/* Badges */
.up-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.up-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
}
.up-badge .fa { color: var(--primary); font-size: 12px; }

/* ===== INTRO ===== */
.up-intro {
  background: #fff;
  padding: 72px 0;
}
.up-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.up-intro__heading h2 { margin: 0; }
.up-intro__body p {
  color: #555;
  line-height: 1.82;
  margin: 0 0 16px;
  font-size: 16px;
}

/* Stats block */
.up-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}
.up-intro .up-stats {
  /* when stats are inside intro, border-top comes from intro's column */
}
.up-stat {
  display: flex;
  flex-direction: column;
}
.up-stat__num {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.up-stat__label {
  font-size: 11px;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 5px;
}

/* Intro section — intro stats that sit outside the grid */
.up-intro > .up-container > .up-stats {
  margin-top: 48px;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

/* ===== SPECS ===== */
.up-specs {
  background: var(--dark2);
  padding: 72px 0;
}
.up-specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.up-spec-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.up-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.up-spec-list li {
  color: rgba(255,255,255,0.72);
  font-size: 14.5px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.up-spec-list li:last-child { border-bottom: none; }

/* Red dot bullet — shown when no .fa icon in item */
.up-spec-list li::before {
  content: '';
  display: inline-flex;
  min-width: 6px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
/* Hide dot when .fa check icon is present */
.up-spec-list li:has(.fa)::before { display: none; }
.up-spec-list li .fa {
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== BENEFITS ===== */
.up-benefits {
  background: #f7f8fa;
  padding: 72px 0;
}
.up-benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.up-benefit-row:last-child { margin-bottom: 0; }

/* Reverse: image left, text right */
.up-benefit-row--reverse {
  direction: rtl;
}
.up-benefit-row--reverse > * {
  direction: ltr;
}

.up-benefit-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #0a0f18;
  margin: 0 0 20px;
}
.up-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.up-benefit-list li {
  font-size: 15px;
  color: #555;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.up-benefit-list li:last-child { border-bottom: none; }
.up-benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  background: var(--primary);
}
.up-benefit-list li:has(.fa)::before { display: none; }
.up-benefit-list li .fa {
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}

.up-benefit-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.09);
  display: block;
}

/* ===== SUPPORT ===== */
.up-support {
  background: var(--dark);
  padding: 72px 0;
}
.up-support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.up-support-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.3s, background 0.3s;
}
.up-support-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.07);
}
.up-support-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(200,16,46,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.up-support-card__icon .fa {
  font-size: 22px;
  color: var(--primary);
}
.up-support-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.up-support-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  line-height: 1.75;
  margin: 0;
}

/* ===== SERVICES (Diğer Hizmetlerimiz) ===== */
.up-services {
  background: #fff;
  padding: 72px 0;
}
.up-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.up-service-item {
  display: block;
  text-align: center;
  padding: 28px 16px;
  border: 1px solid #e4e8ee;
  border-radius: var(--radius);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
a.up-service-item { cursor: pointer; }
.up-service-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(200,16,46,0.08);
}
.up-service-item__icon {
  width: 52px;
  height: 52px;
  background: #f5f6f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.25s;
}
.up-service-item:hover .up-service-item__icon {
  background: rgba(200,16,46,0.08);
}
.up-service-item__icon .fa {
  font-size: 20px;
  color: var(--primary);
}
.up-service-item__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0a0f18;
  margin: 0 0 7px;
  line-height: 1.3;
}
.up-service-item__desc {
  font-size: 12px;
  color: #8a9099;
  line-height: 1.6;
  margin: 0;
}

/* ===== PRODUCTS (Dolum Makinaları specific) ===== */
.up-products {
  background: var(--dark2);
  padding: 72px 0;
}
.up-product-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.up-product-card__img {
  overflow: hidden;
  min-height: 300px;
}
.up-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.up-product-card:hover .up-product-card__img img {
  transform: scale(1.04);
}
.up-product-card__body {
  padding: 44px 44px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.up-product-card__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}
.up-product-card__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.56);
  line-height: 1.78;
  margin: 0 0 28px;
}
.up-product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none !important;
  padding: 13px 26px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.25s, transform 0.2s;
}
.up-product-card__link:hover {
  background: var(--primary-dark);
  transform: translateX(3px);
}
.up-product-card__link .fa { font-size: 12px; }

/* ===== TYPES (Dolum tipleri specific) ===== */
.up-types {
  background: #f7f8fa;
  padding: 72px 0;
}
.up-types__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.up-type-card {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.up-type-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  transform: translateY(-5px);
}
.up-type-card__icon {
  width: 60px;
  height: 60px;
  background: rgba(200,16,46,0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.up-type-card__icon .fa {
  font-size: 26px;
  color: var(--primary);
}
.up-type-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0a0f18;
  margin: 0 0 12px;
}
.up-type-card__desc {
  font-size: 14.5px;
  color: #5a6070;
  line-height: 1.78;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  body { padding-top: 60px; }

  .up-intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .up-specs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .up-benefit-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }
  .up-benefit-row--reverse {
    direction: ltr;
  }

  .up-support__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .up-product-card {
    grid-template-columns: 1fr;
  }
  .up-product-card__body {
    padding: 28px 24px;
  }

  .up-types__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .up-hero  { padding: 48px 0 40px; }
  .up-intro,
  .up-specs,
  .up-benefits,
  .up-support,
  .up-services,
  .up-products,
  .up-types  { padding: 52px 0; }

  .up-specs__grid { grid-template-columns: 1fr; }
  .up-support__grid { grid-template-columns: 1fr; }

  .up-stats { gap: 20px; }

  .up-benefit-row { margin-bottom: 48px; }
}
