/* Powertech — footer top elektrik devre çerçevesi */

.footer-container > .container > .pt-footer-electric-shell,
.footer-container > .container > .pt-footer-charge-shell {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

/* Eski footer.tpl yüklüyse: charge shell container dışında kalsa bile hizala */
.footer-container > .pt-footer-charge-shell {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

@media (min-width: 544px) {
  .footer-container > .pt-footer-charge-shell {
    max-width: 576px;
  }
}

@media (min-width: 768px) {
  .footer-container > .pt-footer-charge-shell {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .footer-container > .pt-footer-charge-shell {
    max-width: 940px;
  }
}

@media (min-width: 1200px) {
  .footer-container > .pt-footer-charge-shell {
    max-width: 1170px;
  }
}

.pt-footer-electric-shell {
  background:
    linear-gradient(145deg, #071633 0%, var(--pt-brand-blue) 42%, #1e4db8 100%);
  border-radius: 18px;
  box-shadow:
    0 14px 42px rgba(24, 62, 148, 0.38),
    inset 0 0 0 1px rgba(0, 212, 255, 0.18),
    inset 0 0 48px rgba(0, 212, 255, 0.06);
  margin-bottom: 40px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.pt-footer-electric-shell::before {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.pt-footer-electric-frame {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.pt-footer-electric-canvas,
.pt-footer-frame-canvas {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.pt-fe-node {
  animation: ptFeNodePulse 2.4s ease-in-out infinite;
  background: #00e5ff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  box-shadow:
    0 0 6px #00e5ff,
    0 0 14px rgba(0, 229, 255, 0.55);
  height: 11px;
  position: absolute;
  width: 11px;
  z-index: 3;
}

.pt-fe-node--tl { animation-delay: 0s; left: 10px; top: 10px; }
.pt-fe-node--tr { animation-delay: 0.6s; right: 10px; top: 10px; }
.pt-fe-node--bl { animation-delay: 1.2s; bottom: 10px; left: 10px; }
.pt-fe-node--br { animation-delay: 1.8s; bottom: 10px; right: 10px; }

.pt-fe-glyph {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.35),
    inset 0 0 8px rgba(0, 229, 255, 0.12);
  display: flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  width: 38px;
  z-index: 3;
}

.pt-fe-glyph svg {
  display: block;
  fill: none;
  height: 20px;
  stroke: #b8f4ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 20px;
}

.pt-fe-glyph--top {
  animation: ptFeGlyphFloat 3s ease-in-out infinite;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
}

.pt-fe-glyph--bottom {
  animation: ptFeGlyphFloat 3s ease-in-out infinite 1.5s;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.pt-fe-glyph--left {
  animation: ptFeGlyphFloat 3.2s ease-in-out infinite 0.8s;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.pt-fe-glyph--right {
  animation: ptFeGlyphFloat 3.2s ease-in-out infinite 2s;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.pt-fe-glyph--top svg {
  animation: ptFeBoltFlash 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.8));
}

.pt-footer-electric-shell .footer_top {
  background-color: #fff !important;
  border-bottom: none !important;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(24, 62, 148, 0.14),
    0 4px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 0 !important;
  padding: 36px 24px 28px !important;
  position: relative;
  z-index: 2;
}

@keyframes ptFeNodePulse {
  0%, 100% {
    box-shadow: 0 0 6px #00e5ff, 0 0 14px rgba(0, 229, 255, 0.55);
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px #00e5ff, 0 0 22px rgba(0, 229, 255, 0.85);
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes ptFeGlyphFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -2px); }
}

.pt-fe-glyph--left,
.pt-fe-glyph--right {
  animation-name: ptFeGlyphFloatSide;
}

@keyframes ptFeGlyphFloatSide {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 2px)); }
}

@keyframes ptFeBoltFlash {
  0%, 88%, 100% { opacity: 0.85; stroke: #b8f4ff; }
  90%, 94% { opacity: 1; stroke: #fff; }
}

@media (max-width: 767px) {
  .pt-footer-electric-shell {
    padding: 12px;
  }

  .pt-fe-glyph {
    height: 30px;
    width: 30px;
  }

  .pt-fe-glyph svg {
    height: 16px;
    width: 16px;
  }

  .pt-fe-glyph--left,
  .pt-fe-glyph--right {
    display: none;
  }

  .pt-footer-electric-shell .footer_top {
    padding: 28px 16px 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-fe-node,
  .pt-fe-glyph,
  .pt-fe-glyph--top svg,
  .pt-fc-node,
  .pt-fc-glyph,
  .pt-fc-glyph--top svg,
  .pt-fc-charge-bar,
  .pt-fc-battery-fill {
    animation: none !important;
  }
}

/* ── Footer middle — gri şarj / güç terminali çerçevesi ── */

.pt-footer-charge-shell {
  background:
    linear-gradient(155deg, #1c1f24 0%, #3a4048 38%, #525862 72%, #3d434b 100%);
  border-radius: 16px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(210, 218, 226, 0.14),
    inset 0 0 40px rgba(255, 255, 255, 0.03);
  margin-bottom: 30px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.pt-footer-charge-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.pt-footer-charge-shell::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 70%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.pt-footer-charge-frame {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.pt-fc-node {
  animation: ptFcNodePulse 3s ease-in-out infinite;
  background: #a8b4c0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 5px rgba(168, 180, 192, 0.7),
    0 0 12px rgba(140, 160, 175, 0.35);
  height: 9px;
  position: absolute;
  width: 9px;
  z-index: 3;
}

.pt-fc-node--tl { animation-delay: 0s; left: 10px; top: 10px; }
.pt-fc-node--tr { animation-delay: 0.75s; right: 10px; top: 10px; }
.pt-fc-node--bl { animation-delay: 1.5s; bottom: 10px; left: 10px; }
.pt-fc-node--br { animation-delay: 2.25s; bottom: 10px; right: 10px; }

.pt-fc-glyph {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(200, 210, 220, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(160, 170, 180, 0.25),
    inset 0 0 6px rgba(255, 255, 255, 0.06);
  display: flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  width: 36px;
  z-index: 3;
}

.pt-fc-glyph svg {
  display: block;
  fill: none;
  height: 19px;
  stroke: #d0d8e0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 19px;
}

.pt-fc-glyph--top {
  animation: ptFcGlyphFloat 3.4s ease-in-out infinite;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
}

.pt-fc-glyph--bottom {
  animation: ptFcGlyphFloat 3.4s ease-in-out infinite 1.7s;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.pt-fc-glyph--left {
  animation: ptFcGlyphFloatSide 3.6s ease-in-out infinite 0.9s;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.pt-fc-glyph--right {
  animation: ptFcGlyphFloatSide 3.6s ease-in-out infinite 2.1s;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.pt-fc-glyph--top svg {
  animation: ptFcChargePulse 2.6s ease-in-out infinite;
}

.pt-fc-battery-fill {
  animation: ptFcBatteryFill 4s ease-in-out infinite;
  fill: rgba(160, 200, 170, 0.55);
  stroke: none;
}

.pt-fc-charge-bar {
  animation: ptFcChargeSweep 5s linear infinite;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 210, 220, 0.15) 35%,
    rgba(240, 244, 248, 0.55) 50%,
    rgba(200, 210, 220, 0.15) 65%,
    transparent 100%
  );
  bottom: 12px;
  height: 2px;
  left: 14%;
  position: absolute;
  right: 14%;
  z-index: 3;
}

.pt-footer-charge-shell .footer_middle {
  background:
    linear-gradient(180deg, #2a2e34 0%, #23272d 100%) !important;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(200, 210, 220, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  gap: 20px 28px;
  margin-bottom: 0 !important;
  padding: 28px 24px 24px !important;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .pt-footer-charge-shell .footer_middle {
    padding: 32px 28px 28px !important;
  }

  .pt-footer-electric-shell .footer_top {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

@keyframes ptFcNodePulse {
  0%, 100% {
    background: #a8b4c0;
    box-shadow: 0 0 5px rgba(168, 180, 192, 0.7), 0 0 12px rgba(140, 160, 175, 0.35);
    opacity: 0.7;
  }
  50% {
    background: #c8d4de;
    box-shadow: 0 0 8px rgba(200, 210, 220, 0.85), 0 0 18px rgba(160, 190, 170, 0.4);
    opacity: 1;
  }
}

@keyframes ptFcGlyphFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -2px); }
}

@keyframes ptFcGlyphFloatSide {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 2px)); }
}

@keyframes ptFcChargePulse {
  0%, 85%, 100% { opacity: 0.8; stroke: #d0d8e0; }
  90%, 94% { opacity: 1; stroke: #f4f8fc; }
}

@keyframes ptFcBatteryFill {
  0%, 100% { opacity: 0.35; transform: scaleX(0.35); transform-origin: left center; }
  50% { opacity: 0.75; transform: scaleX(1); transform-origin: left center; }
}

@keyframes ptFcChargeSweep {
  0% { opacity: 0.3; transform: translateX(-60%); }
  50% { opacity: 0.85; }
  100% { opacity: 0.3; transform: translateX(60%); }
}

@media (max-width: 767px) {
  .pt-footer-charge-shell {
    padding: 11px;
  }

  .pt-fc-glyph {
    height: 28px;
    width: 28px;
  }

  .pt-fc-glyph svg {
    height: 15px;
    width: 15px;
  }

  .pt-fc-glyph--left,
  .pt-fc-glyph--right {
    display: none;
  }

  .pt-footer-charge-shell .footer_middle {
    padding: 22px 14px 18px !important;
  }
}
