/* =========================================================
   Portal Anasayfa — COSMOS temasi (sifirdan).
   Derin uzay zemini + yildiz alani + cam kartlar + mobil alt menu.
   Tum metinler t() ile gelir. Yalnizca kok index.php yukler.
   ========================================================= */
body {
  background-color: #04060d;
  background-image:
    radial-gradient(1000px 480px at 12% -6%, rgba(43, 124, 211, 0.16), transparent 62%),
    radial-gradient(900px 460px at 88% 4%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(1100px 700px at 50% 110%, rgba(129, 140, 248, 0.1), transparent 62%);
  background-attachment: fixed;
  color-scheme: dark;
}
/* yildiz alani */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.85), transparent 100%),
    radial-gradient(1px 1px at 32% 68%, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 54% 12%, rgba(255, 255, 255, 0.9), transparent 100%),
    radial-gradient(1px 1px at 71% 44%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 86% 78%, rgba(255, 255, 255, 0.7), transparent 100%),
    radial-gradient(1.5px 1.5px at 8% 82%, rgba(255, 255, 255, 0.65), transparent 100%),
    radial-gradient(1px 1px at 44% 36%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 63% 88%, rgba(255, 255, 255, 0.6), transparent 100%),
    radial-gradient(1px 1px at 24% 48%, rgba(255, 255, 255, 0.75), transparent 100%),
    radial-gradient(1.5px 1.5px at 93% 30%, rgba(255, 255, 255, 0.8), transparent 100%);
}
body::after {
  background-image:
    radial-gradient(1px 1px at 18% 58%, rgba(165, 243, 252, 0.9), transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 8%, rgba(199, 210, 254, 0.9), transparent 100%),
    radial-gradient(1px 1px at 77% 62%, rgba(165, 243, 252, 0.8), transparent 100%),
    radial-gradient(1px 1px at 5% 38%, rgba(199, 210, 254, 0.85), transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 90%, rgba(165, 243, 252, 0.85), transparent 100%);
  animation: star-twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes star-twinkle {
  from { opacity: 0.25; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
/* icerik katmanlarin ustunde */
.site-header, .ph-hero, .ph-wrap, .site-footer, .ph-bottombar { position: relative; z-index: 1; }
/* canvas cosmos */
#ph-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* kaydikca belirme */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* --- atomlar --- */
.ph-wrap {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 0 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.ph-main { min-width: 0; }
.ph-sec-t {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #f8fafc;
  margin: 48px 0 6px;
}
.ph-sec-sub { color: #8ea0b8; margin: 0 0 20px; }
.ph-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2b7cd3, #5aa5e8);
  color: #fff; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(43, 124, 211, 0.4);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ph-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(43, 124, 211, 0.55); color: #fff; }
.ph-btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: none;
}
.ph-btn-ghost:hover { border-color: #5aa5e8; color: #fff; box-shadow: none; }

/* --- hero --- */
.ph-hero { text-align: center; padding: 38px 24px 12px; }
.ph-badge {
  display: inline-block; padding: 5px 16px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(90, 165, 232, 0.1); color: #a8cdf0;
  border: 1px solid rgba(90, 165, 232, 0.3);
}
.ph-h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.08;
  color: #f8fafc; margin: 14px 0 0;
  text-shadow: 0 0 44px rgba(43, 124, 211, 0.35);
}
.ph-h1 span {
  background: linear-gradient(115deg, #a8cdf0, #5aa5e8 55%, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ph-sub { color: #8ea0b8; font-size: 1.05rem; max-width: 620px; margin: 16px auto 0; line-height: 1.7; }
.ph-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* --- kartlar (2100) --- */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ph-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #151f38 0%, #090e1c 78%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 26px 24px 20px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 13px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.ph-card::before {
  content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, var(--ac, #5aa5e8), transparent);
  box-shadow: 0 0 22px var(--ac, #5aa5e8);
}
.ph-card::after {
  content: ''; position: absolute; top: -70px; right: -70px; width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ac-glow, rgba(90, 165, 232, 0.16)), transparent 70%);
  pointer-events: none;
}
.ph-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6), 0 0 40px var(--ac-glow, rgba(90, 165, 232, 0.12));
}
.ph-card-dev { --ac: #818cf8; --ac-glow: rgba(129, 140, 248, 0.14); }
.ph-card-grad { --ac: #e879f9; --ac-glow: rgba(232, 121, 249, 0.14); }
.ph-card-pdf { --ac: #22d3ee; --ac-glow: rgba(34, 211, 238, 0.14); }
.ph-card-img { --ac: #f0b960; --ac-glow: rgba(240, 185, 96, 0.14); }
.ph-card-pe { --ac: #34d399; --ac-glow: rgba(52, 211, 153, 0.14); }
.ph-card-doc { --ac: #60a5fa; --ac-glow: rgba(96, 165, 250, 0.14); }
.ph-ico {
  width: 58px; height: 58px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center; font-size: 1.65rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ph-ico svg { width: 28px; height: 28px; display: block; }
.ph-card-dev .ph-ico { background: linear-gradient(140deg, #6366f1, #312e81); }
.ph-card-grad .ph-ico { background: linear-gradient(140deg, #d946ef, #701a75); }
.ph-card-pdf .ph-ico { background: linear-gradient(140deg, #06b6d4, #155e75); }
.ph-card-img .ph-ico { background: linear-gradient(140deg, #f0b960, #7c4a12); }
.ph-card-pe .ph-ico { background: linear-gradient(140deg, #34d399, #065f46); }
.ph-card-doc .ph-ico { background: linear-gradient(140deg, #3b82f6, #1e3a8a); }
.aa-ad { grid-column: 1 / -1; margin: 6px 0 18px; min-width: 0; }
.ph-card h3 { font-size: 1.28rem; font-weight: 750; color: #f8fafc; margin: 0; letter-spacing: -0.2px; overflow-wrap: anywhere; hyphens: auto; }
.ph-card p {
  color: #93a1b8; font-size: 0.88rem; line-height: 1.6; margin: 0; flex: 1;
  overflow-wrap: anywhere; hyphens: auto;
}
.ph-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.ph-tags span {
  font-size: 0.68rem; font-weight: 650; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13); color: #a9b6cc; background: rgba(255, 255, 255, 0.04);
}
.ph-go { font-size: 0.9rem; font-weight: 750; color: var(--ac, #5aa5e8); display: inline-flex; align-items: center; gap: 6px; }
.ph-go::after { content: '→'; transition: transform 0.18s ease; }
.ph-card:hover .ph-go::after { transform: translateX(5px); }

/* --- ozellikler --- */
.ph-feats {
  list-style: none; margin: 18px 0 0; padding: 26px 28px;
  background: linear-gradient(180deg, rgba(21, 30, 52, 0.7), rgba(10, 15, 30, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.ph-feats li { display: flex; gap: 10px; align-items: flex-start; color: #8ea0b8; font-size: 0.9rem; line-height: 1.55; }
.ph-feats li::before { content: '✦'; color: #5aa5e8; font-weight: 800; }

/* --- seo yazi --- */
.ph-prose p { color: #8ea0b8; line-height: 1.8; font-size: 0.95rem; }
.ph-prose h3 { color: #e2e8f0; font-size: 1.1rem; margin: 22px 0 8px; }

/* --- sss --- */
.ph-faq {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden;
}
.ph-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; color: #e2e8f0; list-style: none; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: '+'; float: right; color: #5aa5e8; font-weight: 800; }
.ph-faq[open] summary::after { content: '–'; }
.ph-faq p { padding: 0 20px 18px; margin: 0; color: #8ea0b8; font-size: 0.9rem; line-height: 1.7; }

/* --- cta bandi --- */
.ph-cta {
  margin-top: 44px; text-align: center; padding: 48px 28px;
  border-radius: 24px; border: 1px solid rgba(90, 165, 232, 0.3);
  background: radial-gradient(600px 200px at 50% 0%, rgba(43, 124, 211, 0.22), transparent 70%), rgba(13, 20, 38, 0.85);
  box-shadow: 0 0 60px rgba(43, 124, 211, 0.12);
}
.ph-cta h2 { color: #f8fafc; margin: 0 0 10px; font-size: 1.5rem; }
.ph-cta p { color: #8ea0b8; margin: 0 0 24px; }

/* --- reklam akisi (kapaliysa iz birakmaz) --- */
.ph-adflow {
  width: min(90%, 1200px);
  margin: 26px auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 20, 38, 0.55);
  padding: 14px 18px;
  position: relative;
  z-index: 1;
}
.ph-adflow:empty { display: none; }
.ph-adflow .adsense { margin: 0 auto; }

/* --- yan panel --- */
.ph-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 90px; }
.ph-adbox {
  min-height: 250px; border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  display: flex; align-items: center; justify-content: center;
  color: #475569; font-size: 0.75rem; letter-spacing: 0.06em;
}
.ph-stats {
  background: linear-gradient(180deg, rgba(21, 30, 52, 0.8), rgba(10, 15, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px; padding: 22px;
}
.ph-stats h4 {
  margin: 0 0 12px; font-size: 0.75rem; font-weight: 750;
  letter-spacing: 0.09em; text-transform: uppercase; color: #475569;
}
.ph-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem; color: #cbd5e1;
}
.ph-stat:last-child { border-bottom: none; }
.ph-stat b { font-size: 1rem; color: #f1f5f9; }
.ph-stat b.ok { color: #5aa5e8; }
.ph-stat b.mor { color: #818cf8; }

/* --- mobil alt menu --- */
.ph-bottombar { display: none; }

/* --- responsive --- */
@media (max-width: 1020px) {
  .ph-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ph-wrap { grid-template-columns: 1fr; }
  .ph-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .ph-adbox { flex: 1; min-width: 270px; }
  .ph-stats { flex: 1; min-width: 270px; }
}
@media (max-width: 720px) {
  body { padding-bottom: 78px; }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-hero { padding: 48px 18px 10px; }
  .ph-feats { grid-template-columns: 1fr; padding: 22px 20px; }
  .ph-bottombar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 70; padding: 8px 6px; gap: 2px;
    background: rgba(10, 16, 30, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  .ph-bottombar a, .ph-bottombar .ph-langwrap {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: #8ea0b8; text-decoration: none; font-size: 0.62rem; font-weight: 600;
    padding: 4px 0;
  }
  .ph-bottombar a { font-size: 0.62rem; }
  .ph-bottombar a svg { width: 19px; height: 19px; display: block; }
  .ph-bottombar a span { font-size: 0.62rem; }
  .ph-bottombar .ph-langwrap { font-size: 1.05rem; }
  .ph-bottombar .ph-langwrap svg { width: 19px; height: 19px; display: block; }
  .ph-bottombar select {
    background: transparent; border: none; color: #8ea0b8;
    font-size: 0.62rem; font-weight: 700; text-align: center; max-width: 100%;
  }
  .ph-bottombar select option { color: #111; }
}
