/* 
  VULCAN DESIGN SYSTEM - ORGANISMS
  Large UI structures
*/

/* --- NAVBAR --- */

.v-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--s-glass-border);
  padding: var(--p-space-4) var(--p-space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v-navbar__brand {
  font-family: var(--p-font-mono);
  font-weight: 900;
  font-size: var(--p-font-size-xl);
  color: var(--s-color-text-primary);
  letter-spacing: 0.2em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--p-space-2);
}

.v-navbar__nav {
  display: flex;
  gap: var(--p-space-8);
  list-style: none;
  margin-left: auto;
  margin-right: var(--p-space-8);
}

.v-navbar__link {
  text-decoration: none;
  font-family: var(--p-font-mono);
  font-size: var(--p-font-size-xs);
  color: var(--s-color-text-secondary);
  transition: color 0.3s var(--s-ease-standard);
  text-transform: uppercase;
}

.v-navbar__link:hover, .v-navbar__link--active {
  color: var(--s-color-primary);
}

.v-navbar__link--active::before {
  content: '[' attr(data-index) ']';
  font-size: 8px;
  margin-right: 4px;
}

.v-navbar__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--s-color-primary);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

@media (max-width: 768px) {
  .v-navbar {
    padding: var(--p-space-4);
    height: 72px;
  }
  
  .v-navbar__brand img {
    height: 40px !important;
  }

  .v-navbar__toggle {
    display: block;
  }
  
  .v-navbar__nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s var(--s-ease-expo-out);
    opacity: 0;
    pointer-events: none;
    gap: var(--p-space-8);
    margin: 0;
    padding: 0;
  }
  
  .v-navbar__nav--open {
    height: calc(100vh - 72px);
    opacity: 1;
    pointer-events: auto;
    padding-bottom: 4rem;
  }
  
  .v-navbar__link {
    font-size: var(--p-font-size-lg);
  }

  /* Hide regular CTA in navbar on mobile, or move it inside nav */
  .v-navbar > .v-btn {
    display: none;
  }
  
  .v-navbar__nav .v-navbar__cta {
    display: flex !important;
    margin-top: 2rem;
  }
}

/* --- MODAL --- */

.v-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s var(--s-ease-expo-out);
}

.v-modal--open {
  display: flex;
  opacity: 1;
}

.v-modal__container {
  background: var(--s-color-surface-container);
  border: 1px solid var(--s-color-primary);
  border-radius: var(--p-radius-sm);
  width: 100%;
  max-width: 600px;
  padding: var(--p-space-8);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s var(--s-ease-expo-out);
}

.v-modal--open .v-modal__container {
  transform: scale(1);
}

/* --- ACCORDION --- */

.v-accordion {
  border: 1px solid var(--p-color-gray-900);
  border-radius: var(--p-radius-sm);
  overflow: hidden;
}

.v-accordion__item {
  border-bottom: 1px solid var(--p-color-gray-900);
}

.v-accordion__header {
  padding: var(--p-space-4);
  background: var(--s-color-surface-container-low);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--p-font-display);
  font-weight: 700;
}

.v-accordion__content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s var(--s-ease-expo-out);
}

.v-accordion__item--active .v-accordion__content {
  padding: var(--p-space-4);
  max-height: 500px;
}
