/* GRID */
.features-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px){
  .features-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.feature-card{
  padding: 32px;
  border: 1px solid #f1f5f9;
  background: rgba(248,250,252,.5);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

/* HOVER */
.feature-card:hover{
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}

/* ICON */
.feature-icon{
  background: #fff;
  border: 1px solid #f1f5f9;
  padding: 16px;
  display: inline-flex;
  margin-bottom: 24px;
  color: #2563eb;
}

/* TITLE */
.feature-card h3{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

/* TEXT */
.feature-card p{
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
}

.feature-badge{
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.5);   /* primary %50 */
  border-radius: 9999px;                     /* rounded-full */
  background: rgba(37, 99, 235, 0.2);         /* primary %20 */
  color: #2563eb;                            /* primary */
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* MARKA ANA RENGİ (BURAYI DEĞİŞTİR) */

/* MARKA ANA RENGİ (BURAYI DEĞİŞTİR) */
:root{
  --primary-color: #0ea5e9; /* ← Replit'teki primary rengi buraya yaz */
}

/* BADGE */
.feature-badge{
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 24px;

  /* Tailwind blue-500 = rgb(59,130,246) */
  border: 1px solid rgba(59, 130, 246, 0.5); /* border-primary/50 */
  background: rgba(59, 130, 246, 0.2);       /* bg-primary/20 */

  color: #ffffff;                            /* text-primary-foreground */

  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* HERO GRADIENT OVERLAY - works with Cover & normal blocks */
.hero-gradient{
  position: relative !important;
  overflow: hidden;
}

/* If it's a WP Cover block, push its background image behind */
.hero-gradient .wp-block-cover__image-background,
.hero-gradient .wp-block-cover__video-background,
.hero-gradient img{
  position: relative;
  z-index: 0 !important;
}

/* Overlay layer (use ::after to avoid conflicts with WP Cover) */
.hero-gradient::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,23,42,1) 0%,
    rgba(15,23,42,0.92) 45%,
    rgba(15,23,42,0) 100%
  );
  z-index: 2 !important;
  pointer-events: none;
}

/* Content stays on top */
.hero-gradient > *{
  position: relative;
  z-index: 3 !important;
}



/* 1) Header tam üstte + fixed */
#masthead{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;

  /* şeffaf başlasın */
  background: transparent !important;
}

/* Admin bar varsa (WP’de giriş yaptıysan) header 32px aşağı insin */
body.admin-bar #masthead{
  top: 32px !important;
}
@media (max-width: 782px){
  body.admin-bar #masthead{
    top: 46px !important;
  }
}

/* 2) Header arkaplan katmanı (scroll’da koyulaşacak) */
#masthead::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(10, 18, 33, 0); /* başta transparan */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .25s ease, backdrop-filter .25s ease;
  z-index: -1;
}

/* 3) Scroll sonrası koyulaşma */
body.is-scrolled #masthead::before{
  background: rgba(10, 18, 33, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 4) Fixed header altında içerik ezilmesin */
:root{ --masthead-h: 0px; }
body{
  padding-top: calc(var(--masthead-h) + (body.admin-bar ? 0px : 0px)) !important;
}

/* bazen tema üstte boşluk verir */
html, body{
  margin-top: 0 !important;
}
