/* ═══════════════════════════════════════════════════════════════
   OMNICARDS — Structura Theme Specifics
   Estilos únicos para el tema STRUCTURA (Beveled Glass / Brass)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   [1] CUSTOM SCROLLBAR (Thin Gold on Earth)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

[data-theme="structura"] ::-webkit-scrollbar-track {
  background: #1C1917;
}

[data-theme="structura"] ::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 97, 0.25);
  border-radius: 3px;
  transition: background 0.2s ease;
}

[data-theme="structura"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 97, 0.55);
}

/* Firefox */
[data-theme="structura"] * {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 97, 0.25) #1C1917;
}

/* ═══════════════════════════════════════════════════════════════
   [2] TEXT SELECTION
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] ::selection {
  background: #C9A961;
  color: #1C1917;
}

[data-theme="structura"] ::-moz-selection {
  background: #C9A961;
  color: #1C1917;
}

/* ═══════════════════════════════════════════════════════════════
   [3] HERO — Architectural Warm Glow
   Un haz de luz diagonal que evoca luz solar entrando por
   una claraboya o ventana arquitectónica.
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 900px;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 97, 0.10) 0%,
    rgba(210, 105, 30, 0.05) 40%,
    transparent 70%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: -1;
}

/* ═══════════════════════════════════════════════════════════════
   [4] LINK HOVER EFFECT
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] a {
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-theme="structura"] a:hover {
  color: #C9A961;
}

/* ═══════════════════════════════════════════════════════════════
   [5] CARD HEADING UNDERLINE (Brass)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .card-heading {
  position: relative;
  display: inline-block;
}

[data-theme="structura"] .card-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A961;
  transition: width 0.3s ease;
}

[data-theme="structura"] .card-heading:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   [6] MODAL VIDEO — Opacidad más alta que el bg
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .modal-video {
  opacity: 0.35;
}

/* ═══════════════════════════════════════════════════════════════
   [7] CARD HOVER — Brass Frame Effect (Desktop only)
   Inspirado en Uiverse.io por Smit-Prajapati.
   Solo para dispositivos con hover (mouse/trackpad).
   ═══════════════════════════════════════════════════════════════ */

@media (hover: hover) {

  [data-theme="structura"] .bento-card {
    position: relative;
    overflow: hidden;
  }

  /* Frame dorado animado (::after) */
  [data-theme="structura"] .bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #C9A961;
    opacity: 0;
    transform: rotate(6deg);
    transition: all 0.45s ease-in-out;
    pointer-events: none;
    z-index: 1;
  }

  [data-theme="structura"] .bento-card:hover::after {
    inset: 14px;
    opacity: 1;
    transform: rotate(0deg);
  }

  /* Hover: escala suave de la card */
  [data-theme="structura"] .bento-card:hover {
    transform: scale(1.04);
  }

}

/* ═══════════════════════════════════════════════════════════════
   [8] MODAL BRASS FRAME — Entrance animation
   El marco dorado aparece al abrir cualquier modal,
   visible tanto en desktop como en móvil.
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .modal-content {
  position: relative;
  border-radius: 0;
}

[data-theme="structura"] .modal-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #C9A961;
  border-radius: 0;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  pointer-events: none;
  z-index: -1;
}

[data-theme="structura"] .modal-overlay.show .modal-content::after {
  inset: 16px;
  opacity: 1;
  transform: rotate(0deg);
}

/* Mobile: texto más pequeño + más espacio para el brass frame */
@media (max-width: 768px) {
  [data-theme="structura"] .modal-content {
    padding: 20px 20px 24px;
  }

  [data-theme="structura"] .modal-title {
    font-size: 0.7rem;
    padding-right: 40px;
  }

  [data-theme="structura"] .modal-body {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  [data-theme="structura"] .modal-overlay.show .modal-content::after {
    inset: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   [9] BG ORBS — Golden ambient floating orbs
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

[data-theme="structura"] .bg-orbs::before,
[data-theme="structura"] .bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

[data-theme="structura"] .bg-orbs::before {
  width: 600px;
  height: 600px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.6), transparent 70%);
  animation: structura-orb-drift 20s ease-in-out infinite alternate;
}

[data-theme="structura"] .bg-orbs::after {
  width: 450px;
  height: 450px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(210, 105, 30, 0.4), transparent 70%);
  animation: structura-orb-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes structura-orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ═══════════════════════════════════════════════════════════════
   [10] HERO BADGE — Gold frame, architectural
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .hero-badge {
  border: 1px solid rgba(201, 169, 97, 0.5);
  background: rgba(40, 35, 30, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #C9A961;
  letter-spacing: 0.2em;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   [11] SOCIAL LINKS — Angular brass pill
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .social-link {
  background: rgba(40, 35, 30, 0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 4px;
  color: rgba(227, 226, 226, 0.9);
  box-shadow: none;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

[data-theme="structura"] .social-link:hover {
  transform: none;
  border-color: #C9A961;
  color: #C9A961;
  box-shadow: none;
}

[data-theme="structura"] .social-link svg {
  fill: currentColor;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   [12] CONTACT ROWS — Gold accent
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .contact-row {
  color: rgba(227, 226, 226, 0.7);
}

[data-theme="structura"] .contact-row svg {
  fill: none;
  stroke: #C9A961;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   [13] AVATAR GLOW RING — Gold bisel
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .profile-glow-ring {
  box-shadow:
    0 0 40px rgba(201, 169, 97, 0.3),
    inset 0 0 30px rgba(201, 169, 97, 0.1);
}

[data-theme="structura"] .profile-glow-bg {
  background: radial-gradient(circle, rgba(201, 169, 97, 0.25), transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════
   [14] MODAL TITLES — Gold headings
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .modal-title {
  color: #C9A961;
  font-weight: 700;
}

[data-theme="structura"] #modal-philosophy-title,
[data-theme="structura"] #modal-portfolio-title {
  color: #C9A961;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Contact modal header — limpio, sin glow */
[data-theme="structura"] .modal-header {
  background: transparent;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 0;
  padding: 0 0 16px;
  margin: 0 0 16px;
}

[data-theme="structura"] .modal-name {
  color: #C9A961;
  font-weight: 700;
}

[data-theme="structura"] .modal-header .modal-title {
  color: rgba(227, 226, 226, 0.7);
  font-size: 0.8rem;
  font-weight: 400;
}

[data-theme="structura"] .modal-name {
  color: #C9A961;
}

/* ═══════════════════════════════════════════════════════════════
   [15] CONTACT MODAL — Quitar brass frame
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] #contact-modal .modal-content::after {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   [16] SOUND TOGGLE — Stealth luxury (benoit_1015 inspired)
   OFF: titanio oscuro · ON: oro/brass
   ═══════════════════════════════════════════════════════════════ */

[data-theme="structura"] .sound-toggle-track {
  width: 64px;
  height: 32px;
  background: linear-gradient(180deg, #111, #1a1a1a);
  border-radius: 50px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 2px 3px rgba(0, 0, 0, 0.8),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s ease;
  overflow: hidden;
}

/* Shimmer effect - reflection that slides */
[data-theme="structura"] .sound-toggle-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

/* Thumb — brushed metal */
[data-theme="structura"] .sound-toggle-thumb {
  width: 26px;
  height: 26px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #444, #222, #555, #222, #444);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lens — the heart of the switch */
[data-theme="structura"] .sound-toggle-thumb::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  display: block;
}

/* ═══ ACTIVE STATE (ON) — Gold ═══ */

[data-theme="structura"] .sound-toggle.active .sound-toggle-thumb {
  transform: translateX(32px);
}

[data-theme="structura"] .sound-toggle.active .sound-toggle-track {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 2px 3px rgba(0, 0, 0, 0.8),
    inset 0 0 15px rgba(201, 169, 97, 0.35);
  border-color: rgba(201, 169, 97, 0.15);
}

[data-theme="structura"] .sound-toggle.active .sound-toggle-track::before {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

[data-theme="structura"] .sound-toggle.active .sound-toggle-thumb {
  background: conic-gradient(from 220deg, #444, #222, #555, #222, #444);
}

[data-theme="structura"] .sound-toggle.active .sound-toggle-thumb::before {
  background: #C9A961;
  box-shadow:
    0 0 10px #C9A961,
    inset 0 1px 4px rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   END OF STRUCTURA.CSS
   ══════════════════════════════════════════════════════════════ */
