/*
Theme Name: CosmoFace
Theme URI: https://vk.com/cosmobasess
Description: Космобаза WordPress тема
Author: greyjedi
Author URI: https://jedinest.ru
Version: 0.7.3
License: GNU GPLv2 or later
Text Domain: cosmoface
*/

/*
 * Cosmobases-inspired Space-Synth WordPress Theme Stylesheet
 * Created with WordPress Cosmobases Theme Builder
 */

:root {
  --color-primary: #0b0813;
  --color-secondary: #141029;
  --color-accent: #00b4d8;
  --color-accent-2: #6366f1;
  --color-text: #cbd5e1;
  --color-text-muted: #94a3b8;
  --glow-intensity: 15px;
  --glow-shadow: 0 0 3px #00b4d8, 0 0 7.5px #6366f133;
  --text-glow: 0 0 1.5px #00b4d8;
  --border-radius: 8px;
  --container-width: 1160px;
  --grid-gap: 24px;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-primary);
  color: var(--color-text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Stars Canvas Background */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  /* GPU compositing layer — prevents scroll jank on mobile */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Disable star canvas on touch/mobile — zero GPU cost */
@media (pointer: coarse) {
  #cosmic-canvas {
    display: none;
  }
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent-2);
  text-shadow: 0 0 8px var(--color-accent-2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Glow Elements */
.cosmic-glow-border {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glow-shadow);
  transition: all 0.3s ease;
}

.cosmic-glow-border:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 calc(var(--glow-intensity) / 3) var(--color-accent), 0 0 calc(var(--glow-intensity)) rgba(99, 102, 241, 0.2);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(24, 19, 51, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

/* Main Site Header */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0;
  background: rgba(13, 10, 27, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
  overflow: hidden;
}

.site-header-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: url('images/dj-comics-header-desktop.png?v=0.7.3');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(50% 100% at 50% 50%, black 50%, transparent 100%);
  mask-image: radial-gradient(50% 100% at 50% 50%, black 50%, transparent 100%);
}

.site-header-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Retro halftone dot texture mixed with CRT horizontal scanlines */
  background: 
    radial-gradient(rgba(0, 240, 255, 0.15) 15%, transparent 20%),
    linear-gradient(rgba(11, 8, 19, 0) 50%, rgba(11, 8, 19, 0.45) 50%);
  background-size: 8px 8px, 100% 4px;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  .site-header-bg {
    background-image: url('images/dj-comics-header-tablet.png?v=0.7.3');
  }
}

@media (max-width: 600px) {
  .site-header-bg {
    background-image: url('images/dj-comics-header-mobile.png?v=0.7.3');
  }
}

/* Mobile responsive layout overrides */
.mobile-header-player {
  display: none;
}

.mobile-navigation {
  display: none;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  
  .desktop-sidebar-player {
    display: none;
  }
  
  .vk-widget-section {
    display: none !important;
  }

  .site-header-bg {
    background-size: 100% 100%;
    opacity: 0.25;
  }
  
  .site-header-bg::after {
    display: none;
  }
  
  .mobile-header-player {
    display: block;
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    width: 100%;
  }
  
  .mobile-navigation {
    display: block;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 10, 27, 0.4);
    text-align: center;
  }
  
  .mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .mobile-navigation a {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "JetBrains Mono", monospace;
  }
  
  .mobile-navigation a:hover {
    color: var(--color-accent);
  }
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.site-branding-text {
  display: flex;
  flex-direction: column;
}

.custom-logo-link {
  display: inline-block;
  flex-shrink: 0;
}

.custom-logo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  animation: logo-spin-slow 25s linear infinite;
  transition: all 0.3s ease;
}

.custom-logo-link:hover .custom-logo {
  border-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

@keyframes logo-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.site-title {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-title a {
  color: #ffffff;
  text-shadow: var(--text-glow);
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-description {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 5px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "JetBrains Mono", monospace;
}

/* Navigation Menu */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.main-navigation a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
  color: var(--color-accent);
  text-shadow: var(--text-glow);
}

/* Site Layout Grid */
.site-content {
  max-width: var(--container-width);
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  gap: var(--grid-gap);
}

.content-area {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
}

.widget-area {
  width: 30%;
  flex-shrink: 0;
}

/* Post Cards */
.post-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: 15px;
}

.post-category a {
  background: rgba(0, 180, 216, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 180, 216, 0.2);
  font-size: 10px;
}

.post-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.post-title a {
  color: #ffffff;
}

.post-title a:hover {
  color: var(--color-accent);
}

.post-thumbnail {
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 850px;
  display: block;
  background: #06040d;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.02);
}

.post-excerpt {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.post-tags a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-tags a:hover {
  color: var(--color-accent-2);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.entry-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.read-more-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #0d0a1b !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.read-more-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px var(--color-accent);
}

.ticket-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent));
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 9px 19px;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6), 0 0 4px rgba(0, 180, 216, 0.4);
  transition: all 0.3s ease;
}

.ticket-btn:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.8), 0 0 10px rgba(99, 102, 241, 0.6);
}

/* Sidebar Widgets */
.widget {
  margin-bottom: 30px;
}

.widget .textwidget p {
  white-space: pre-line;
}

.widget-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  text-shadow: var(--text-glow);
}

/* Radio Player Widget Style - Subwave Mini-Player */
.subwave-player-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 180px;
  background: linear-gradient(135deg, var(--color-secondary)ef, rgba(7, 5, 15, 0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  box-sizing: border-box;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
              0 0 30px var(--color-accent-2)26, 
              0 0 50px var(--color-accent)1a;
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.subwave-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(0, 180, 216, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.subwave-visualizer-container {
  width: 100px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  padding-top: 12px;
  box-sizing: border-box;
}

.subwave-vis-bar {
  width: 4px;
  height: 15%;
  background: linear-gradient(to top, var(--color-accent-2), var(--color-accent));
  border-radius: 2px;
  transition: height 0.15s ease;
}

.subwave-playing .subwave-vis-bar {
  animation: subwave-bounce 1.2s ease-in-out infinite alternate;
}

.subwave-playing .subwave-vis-bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 1.0s; }
.subwave-playing .subwave-vis-bar:nth-child(2) { animation-delay: 0.3s; animation-duration: 0.8s; }
.subwave-playing .subwave-vis-bar:nth-child(3) { animation-delay: 0.5s; animation-duration: 1.2s; }
.subwave-playing .subwave-vis-bar:nth-child(4) { animation-delay: 0.2s; animation-duration: 0.9s; }
.subwave-playing .subwave-vis-bar:nth-child(5) { animation-delay: 0.4s; animation-duration: 1.1s; }
.subwave-playing .subwave-vis-bar:nth-child(6) { animation-delay: 0.7s; animation-duration: 0.7s; }
.subwave-playing .subwave-vis-bar:nth-child(7) { animation-delay: 0.1s; animation-duration: 1.3s; }
.subwave-playing .subwave-vis-bar:nth-child(8) { animation-delay: 0.6s; animation-duration: 1.0s; }
.subwave-playing .subwave-vis-bar:nth-child(9) { animation-delay: 0.3s; animation-duration: 0.8s; }
.subwave-playing .subwave-vis-bar:nth-child(10) { animation-delay: 0.8s; animation-duration: 1.2s; }

@keyframes subwave-bounce {
  0% { height: 15%; }
  100% { height: 95%; }
}

.subwave-player-info {
  flex: 1;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.subwave-track-details {
  display: flex;
  flex-direction: column;
}

.subwave-track-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #ffffff;
}

.subwave-track-artist {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.subwave-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.subwave-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.subwave-play-btn::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(0, 180, 216, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

.subwave-play-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.subwave-play-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.subwave-dj-avatar-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subwave-player-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 0 4px var(--color-accent));
}

.subwave-playing .subwave-player-logo {
  animation: logo-spin-slow 20s linear infinite;
}

.subwave-volume-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 60px;
}

.subwave-volume-slider {
  width: 100%;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.subwave-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 0 5px var(--color-accent);
}

.subwave-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.subwave-status-text {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.subwave-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 6px;
  display: inline-block;
}

.subwave-playing .subwave-status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: subwave-pulse 1.5s infinite alternate;
}

.subwave-live-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.6;
}

@keyframes subwave-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* ===================================================================
   SITE FOOTER — Cinematic Jedi Council Edition
   =================================================================== */

.site-footer {
  background: #060410;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 60px;
  font-size: 13px;
  color: var(--color-text-muted);
  overflow: hidden;
}

/* --- Jedi Council Hero Banner --- */
.jedi-council-banner {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #06020f;
  cursor: default;
}

.jedi-council-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  opacity: 0.45;
  transition: opacity 0.6s ease, transform 0.8s ease;
  transform: scale(1.03);
  will-change: transform, opacity;
}

.jedi-council-banner:hover .jedi-council-banner__img {
  opacity: 0.72;
  transform: scale(1.0);
}

/* Scanline CRT overlay */
.jedi-council-banner__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Bottom gradient fade into footer body */
.jedi-council-banner__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    #060410 0%,
    rgba(6, 4, 16, 0.7) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Top gradient vignette */
.jedi-council-banner__top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(
    to bottom,
    rgba(6, 4, 16, 0.6) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Text overlaid on the banner */
.jedi-council-banner__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 0 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.jedi-council-banner__title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  text-shadow: 0 0 12px var(--color-accent);
}

.jedi-council-banner__subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.jedi-council-banner:hover .jedi-council-banner__title,
.jedi-council-banner:hover .jedi-council-banner__subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer Body --- */
.footer-body {
  padding: 32px 30px 0;
}

/* --- Social Links Row --- */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.footer-social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

.footer-social-links a:hover {
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(0, 240, 255, 0.06);
  transform: translateY(-1px);
}

.footer-social-links a:hover::before {
  opacity: 0.06;
}

/* --- Footer Bottom Bar --- */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
}

.footer-tech-tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-align: right;
}

.footer-tech-tag a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s;
}

.footer-tech-tag a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Responsive footer */
@media (max-width: 600px) {
  .jedi-council-banner {
    height: 180px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-tech-tag {
    text-align: center;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .site-content {
    flex-direction: column !important;
  }
  
  .widget-area {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .site-title {
    font-size: 24px;
  }
  
  .main-navigation ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Custom 2GIS Dark Mode Filter — desktop */
iframe[src*="2gis.ru"],
iframe[src*="2gis.com"] {
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1) brightness(0.9) saturate(1.2);
  display: block;
  max-width: 100%;
  width: 100%;
}

/* Map wrapper */
.map-wrapper {
  position: relative;
  width: 100%;
}

/* Mobile: hide iframe, show button instead */
@media (pointer: coarse) {
  .map-wrapper iframe[src*="2gis.ru"],
  .map-wrapper iframe[src*="2gis.com"] {
    display: none;
  }
}

/* Mobile map button */
.mobile-map-btn {
  display: none;
}

@media (pointer: coarse) {
  .mobile-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(11, 8, 19, 0.9), rgba(20, 16, 41, 0.9));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--border-radius);
    color: var(--color-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08), inset 0 0 20px rgba(0, 240, 255, 0.03);
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-map-btn:hover,
  .mobile-map-btn:active {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.06);
    color: #fff;
  }

  .mobile-map-btn .map-btn-icon {
    font-size: 22px;
    line-height: 1;
  }
}
