/* Güneş Pili — iç sayfalar için koyu "şantiye planı" teması.
   Sayfaların HTML'ine ve adreslerine dokunmaz: mevcut Tailwind sınıflarının renklerini yeni tasarım diline çevirir.
   includes/header.php üzerinden yalnızca site sayfalarına yüklenir (admin paneli bu dosyayı kullanmaz).
   Kapsam: body altındaki bölümler; ana sayfanın kendi bölümleri (.gw-sec, .gw-hero) ve açılır pencereler hariç. */

html { background: #070a12; scrollbar-color: rgba(255, 179, 71, 0.55) #070a12; scrollbar-width: thin; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #070a12; }
html::-webkit-scrollbar-thumb { background: linear-gradient(#ffb347, #ff8c00); border-radius: 10px; border: 2px solid #070a12; }
body { margin: 0; background: #070a12 !important; }

/* ---------- bölüm zemini ---------- */
body > section:not(.gw-sec):not(.gw-hero),
body > main {
  position: relative;
  background-color: #070a12 !important;
  background-image:
    linear-gradient(rgba(255, 190, 110, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 110, 0.035) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- sayfa başlığı (iç sayfaların üst bandı) ---------- */
body > section#hero:not(.gw-hero) {
  background-color: #070a12 !important;
  background-image:
    radial-gradient(60% 120% at 50% 0%, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0) 70%),
    linear-gradient(rgba(255, 190, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 110, 0.05) 1px, transparent 1px) !important;
  background-size: auto, 72px 72px, 72px 72px !important;
  border-bottom: 1px solid rgba(255, 179, 71, 0.22);
}
body > section#hero:not(.gw-hero) h1 {
  letter-spacing: -0.02em;
  background: linear-gradient(92deg, #ffffff 0%, #ffd9a0 60%, #ff9d1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff !important;
}

/* ---------- yüzeyler ---------- */
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.bg-white, .lg\:bg-white, [class*="bg-white/7"], [class*="bg-white/8"], [class*="bg-white/9"]) {
  background-color: #101522 !important;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.bg-gray-50, .bg-gray-100, .bg-gray-200, .bg-gray-300) {
  background-color: rgba(255, 255, 255, 0.055) !important;
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is([class*="from-amber-50"], [class*="from-primary/5"], [class*="to-orange-50"]) {
  background-image: linear-gradient(135deg, rgba(255, 140, 0, 0.16), rgba(255, 140, 0, 0.03)) !important;
  background-color: #101522 !important;
  border-color: rgba(255, 179, 71, 0.3) !important;
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.bg-red-100, .bg-blue-100, .bg-indigo-100, .bg-green-100, .bg-yellow-100) {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.hover\:bg-gray-50, .hover\:bg-gray-100):hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- yazı renkleri ---------- */
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.text-secondary, .text-secondary-light, .text-secondary-dark, .text-gray-900, .text-gray-800, .text-black) { color: #fff !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .text-gray-700 { color: rgba(255, 255, 255, 0.84) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .text-gray-600 { color: rgba(255, 255, 255, 0.72) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .text-gray-500 { color: rgba(255, 255, 255, 0.62) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .text-gray-400 { color: rgba(255, 255, 255, 0.5) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.text-primary, .group-hover\:text-primary-dark) { color: #ffb347 !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.text-accent, .text-blue-600) { color: #8ab8ff !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .text-red-600 { color: #ff9d94 !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .group:hover .group-hover\:text-gray-700 { color: #fff !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) a:not([class]) { color: #ffb347; }

/* ---------- çizgiler ve gölgeler ---------- */
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.border-gray-100, .border-gray-200, .border-gray-300, .lg\:border-gray-200, .divide-gray-200 > *) { border-color: rgba(255, 255, 255, 0.12) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.hover\:border-gray-300, .hover\:border-primary\/20):hover { border-color: rgba(255, 179, 71, 0.6) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-soft, .shadow-medium, .shadow-large) { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(.hover\:shadow-xl, .hover\:shadow-lg, .hover\:shadow-md, .hover\:shadow-large):hover { box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 179, 71, 0.25) !important; }

/* ---------- formlar ---------- */
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea, select) {
  background-color: #0b0f1a !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(input, textarea)::placeholder { color: rgba(255, 255, 255, 0.45); }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(input, textarea, select):focus { border-color: #ffb347 !important; outline: 2px solid rgba(255, 179, 71, 0.35); outline-offset: 1px; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) label { color: rgba(255, 255, 255, 0.84); }

/* ---------- tablolar ve uzun metin ---------- */
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(th, td) { border-color: rgba(255, 255, 255, 0.12) !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) th { background-color: rgba(255, 255, 255, 0.06) !important; color: #fff; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is(strong, b) { color: #fff; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) hr { border-color: rgba(255, 255, 255, 0.12); }

/* ---------- site alt bilgisi (tüm sayfalar) ---------- */
footer[data-site-footer="true"] {
  background: #05070d !important;
  padding: clamp(48px, 6vw, 88px) 0 32px !important;
  border-top: 1px solid rgba(255, 179, 71, 0.22);
  font-family: 'Urbanist', sans-serif;
  color: rgba(255, 255, 255, 0.66);
}
footer[data-site-footer="true"] > div { max-width: 1600px !important; margin: 0 auto !important; padding: 0 32px !important; }
footer[data-site-footer="true"] > div > div { background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; border: 0 !important; }
footer[data-site-footer="true"] > div > div > div:first-child { display: grid !important; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) !important; gap: 40px 56px !important; }
footer[data-site-footer="true"] img[src*="gunes-pili-logo.svg"] { content: url("../image/images/logo/gunes-pili-logo-beyaz.svg"); height: 38px !important; width: auto !important; }
footer[data-site-footer="true"] :is(p, a, strong, span, div) { color: rgba(255, 255, 255, 0.66) !important; }
footer[data-site-footer="true"] :is(p, li a, strong, div) { font-size: 0.98rem !important; line-height: 1.65 !important; }
footer[data-site-footer="true"] strong { color: #fff !important; }
footer[data-site-footer="true"] a { text-decoration: none; transition: color 0.25s ease; }
footer[data-site-footer="true"] a:hover { color: #ffb347 !important; }
footer[data-site-footer="true"] h6 { margin: 0 0 20px !important; font-size: 0.76rem !important; font-weight: 700 !important; letter-spacing: 0.2em !important; text-transform: uppercase; color: #ffc98a !important; }
footer[data-site-footer="true"] ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
footer[data-site-footer="true"] ul > li { margin: 0 !important; }
footer[data-site-footer="true"] a[target="_blank"] { background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.22) !important; color: #fff !important; }
footer[data-site-footer="true"] a[target="_blank"]:hover { background: #ff8c00 !important; border-color: #ff8c00 !important; }
footer[data-site-footer="true"] a[target="_blank"] i { color: inherit !important; }
footer[data-site-footer="true"] > div > div > div:last-child { margin-top: 48px !important; padding-top: 24px !important; border-top: 1px solid rgba(255, 255, 255, 0.1) !important; }
footer[data-site-footer="true"] > div > div > div:last-child > div { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 0.88rem !important; }
footer[data-site-footer="true"] > div > div > div:last-child > div > div { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem !important; }
footer[data-site-footer="true"] > div > div > div:last-child :is(a, span) { font-size: 0.88rem !important; color: rgba(255, 255, 255, 0.5) !important; }
@media (max-width: 1100px) { footer[data-site-footer="true"] > div > div > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 820px) {
  footer[data-site-footer="true"] > div { padding: 0 16px !important; }
  footer[data-site-footer="true"] > div > div > div:first-child { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
}

/* ---------- sayfaya özgü açık renkli parçalar ---------- */
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) :is([class*="via-white"], [class*="to-white"], [class*="from-white"], [class*="from-gray-50"], [class*="to-gray-100"], [class*="from-gray-100"]) { background-image: none !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .spec-card-content {
  background: #101522 linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4) !important;
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .project-filter-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .project-filter-btn:hover { border-color: #ffb347 !important; }
:is(body > section:not(.gw-sec):not(.gw-hero), body > main) .project-filter-btn.active {
  background: linear-gradient(92deg, #ffb347, #ff8c00) !important;
  color: #1a1206 !important;
  border-color: transparent !important;
}
/* mobil alt bilgi: logo ve yazılar daha küçük */
@media (max-width: 700px) {
  footer[data-site-footer="true"] img[src*="gunes-pili-logo.svg"] { height: 26px !important; }
  footer[data-site-footer="true"] :is(p, li a, strong, div) { font-size: 0.84rem !important; line-height: 1.55 !important; }
  footer[data-site-footer="true"] :is(a[href^="tel:"], a[href^="mailto:"]) { font-size: 0.84rem !important; }
  footer[data-site-footer="true"] > div > div > div:first-child { gap: 20px !important; }
  footer[data-site-footer="true"] a[target="_blank"] { width: 36px !important; height: 36px !important; }
  footer[data-site-footer="true"] > div > div > div:last-child { margin-top: 28px !important; padding-top: 18px !important; }
  footer[data-site-footer="true"] > div > div > div:last-child :is(a, span, div) { font-size: 0.76rem !important; }
}

/* ---------- sayfa kaydırma çubuğu: masaüstünde de mobildeki gibi görünmez (sayfa yine tekerlek, klavye ve dokunmayla kayar) ---------- */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ---------- proje detay: ana görsel çok yavaş, hafifçe yaklaşıp kayar (sayfaya canlılık katar) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .proje-detail-main-image { animation: gwProjDrift 22s ease-in-out infinite alternate; transform-origin: 50% 55%; will-change: transform; }
  @keyframes gwProjDrift {
    0% { transform: scale(1.02) translate3d(0, 0, 0); }
    50% { transform: scale(1.07) translate3d(-1.2%, -0.8%, 0); }
    100% { transform: scale(1.1) translate3d(1.2%, 0.6%, 0); }
  }
}

/* ---------- hizmetler sayfası: style.css içindeki eski "#services { background: açık gri }" kuralı koyu temada beyaz bant bırakıyordu ---------- */
#services:not(.gw-sec) { background: transparent !important; }

/* ---- hizmet sayfası başlığı: metin + küçük kurulum animasyonu (çatı / arazi GES) ---- */
.gw-pagehead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.gw-mini { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #070b14; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.gw-mini canvas, .gw-mini .gw-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gw-mini .gw-hero__photo { object-fit: cover; opacity: 0; }
.gw-mini.gw-fail .gw-hero__photo { opacity: 1; }
.gw-mini__tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd9a0; background: rgba(8, 12, 20, 0.72); border: 1px solid rgba(255, 170, 60, 0.45); }
@media (min-width: 1024px) {
  .gw-pagehead { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; }
  .gw-mini { justify-self: end; }
}
