/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.airport-code-sign {
  background-color: black;
  box-shadow: 0 0 0 0.1em #FFF200, 0 0 0 0.25em black;
  color: #FFF200;
  font-family: sans-serif;
  font-size: 2em;
  font-weight: bold;
  line-height: 1.5em;
  margin: 0.5em auto;
  width: 3em;
}

.home-page-hero-section {
  position: relative;
  background: linear-gradient(135deg, #e8e0d4 0%, #ddd5c8 100%);
}

.home-page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/assets/parchment-f2047116.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  pointer-events: none;
  filter: brightness(1.4) blur(1.5px);
  z-index: -1;
}

/* Subtle paper texture effect for hero */
.home-page-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  .home-page-hero-section {
    background: linear-gradient(135deg, #2d3748 0%, #252d3a 100%);
  }
  .home-page-hero-section::before {
    mix-blend-mode: multiply;
  }
  .home-page-hero-section::after {
    opacity: 0.05;
  }
}

/* Global Navigation Header */
.global-nav-header {
  background: linear-gradient(135deg, var(--color-san-juan-600) 0%, var(--color-san-juan-700) 50%, var(--color-san-juan-800) 100%);
}

@media (prefers-color-scheme: dark) {
  .global-nav-header {
    background: linear-gradient(135deg, var(--color-san-juan-800) 0%, var(--color-san-juan-900) 50%, var(--color-san-juan-950) 100%);
  }
}

/* Profile Page Styles */
.profile-header {
  background: linear-gradient(135deg, var(--color-san-juan-600) 0%, var(--color-san-juan-700) 50%, var(--color-san-juan-800) 100%);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

@media (prefers-color-scheme: dark) {
  .profile-header {
    background: linear-gradient(135deg, var(--color-san-juan-800) 0%, var(--color-san-juan-900) 50%, var(--color-san-juan-950) 100%);
  }
}

.airport-code-badge {
  display: inline-block;
  background-color: #0a0a0a;
  color: #FFF200;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow:
    0 0 0 1px #FFF200,
    0 0 0 3px #0a0a0a,
    0 2px 4px rgba(0,0,0,0.3);
}

.profile-section-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.profile-section-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.profile-section-header {
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe5da 100%);
  border-bottom: 2px dashed #c9bfae;
  position: relative;
  overflow: hidden;
}

/* Subtle paper texture effect */
.profile-section-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}


@media (prefers-color-scheme: dark) {
  .profile-section-header {
    background: linear-gradient(135deg, #2d3748 0%, #252d3a 100%);
    border-bottom: 2px dashed #4a5568;
  }

  .profile-section-header::before {
    opacity: 0.05;
  }

}

.danger-zone-card {
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
  border: 2px solid #fbbf24;
}

@media (prefers-color-scheme: dark) {
  .danger-zone-card {
    background: linear-gradient(to bottom, rgba(120, 53, 15, 0.2), rgba(31, 41, 55, 1));
    border-color: #b45309;
  }
}

.pilot-avatar-ring {
  position: relative;
}

.pilot-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  z-index: -1;
}

.callsign-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

@media (prefers-color-scheme: dark) {
  .callsign-badge {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
  }
}

