/* ===== TROMBINOSCOPE STYLES ===== */

/* Hero section for trombi */
.hero--trombi {
  min-height: 60vh;
  padding: var(--space-3xl) 0;
}

.hero__logo-live-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .hero__logo-live-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.hero__logo-container {
  margin-right: auto;
  margin-left: -20px;
}

.hero__main-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* Live Link Section */
.live-link-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(162, 0, 13, 0.1), rgba(162, 0, 13, 0.05));
}

.live-link-banner {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: var(--space-2xl);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--c-primary-2);
}

.live-link-banner--compact {
  max-width: 350px;
  padding: var(--space-lg);
  margin: 0;
}

.live-link-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.live-link-banner--compact .live-link-content {
  gap: var(--space-md);
  flex-direction: column;
  align-items: flex-start;
}

.live-link-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.live-link-banner--compact .live-link-icon {
  font-size: 32px;
}

.live-link-text {
  flex: 1;
  min-width: 250px;
}

.live-link-banner--compact .live-link-text {
  min-width: auto;
  width: 100%;
}

.live-link-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.live-link-banner--compact .live-link-text h2 {
  font-size: 18px;
  margin-bottom: var(--space-xs);
}

.live-link-warning {
  display: inline-block;
  padding: 6px 12px;
  background: #ff9800;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.live-link-banner--compact .live-link-warning {
  font-size: 12px;
  padding: 4px 8px;
  margin-bottom: var(--space-sm);
}

.live-link-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--c-primary-1);
  color: white;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(162, 0, 13, 0.3);
}

.live-link-banner--compact .live-link-button {
  padding: 10px 20px;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

/* App Link Banner - MyCampus Colors - Styled */
.app-link-banner {
  max-width: 380px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: var(--space-xl);
  box-shadow: 0 12px 40px rgba(8, 51, 92, 0.15), 0 4px 12px rgba(240, 127, 19, 0.1);
  border: 3px solid #08335c;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .app-link-banner {
    max-width: 100%;
    padding: var(--space-lg);
  }
}

.app-link-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #08335c 0%, #f07f13 50%, #08335c 100%);
  z-index: 1;
}

.app-link-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .app-link-header {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

.app-link-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(8, 51, 92, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid #08335c;
  align-self: center;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .app-link-logo-container {
    align-self: flex-start;
    width: 70px;
    height: 70px;
    padding: 10px;
  }
}

.app-link-logo-container:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(8, 51, 92, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-link-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(8, 51, 92, 0.1));
}

.app-link-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.app-link-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .app-link-text {
    text-align: left;
    flex: 1;
  }
}

.app-link-text h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #08335c;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
  text-shadow: 0 1px 2px rgba(8, 51, 92, 0.1);
}

@media (min-width: 768px) {
  .app-link-text h3 {
    font-size: 18px;
    margin-bottom: var(--space-xs);
  }
}

.app-link-text p {
  font-size: 14px;
  color: #6d718a;
  margin-bottom: 0;
  font-weight: 500;
}

@media (min-width: 768px) {
  .app-link-text p {
    font-size: 13px;
  }
}

.app-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  background: linear-gradient(135deg, #f07f13 0%, #e0700f 100%);
  color: white;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(240, 127, 19, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .app-link-button {
    width: auto;
    padding: 12px 24px;
    font-size: 14px;
    align-self: flex-start;
    white-space: nowrap;
  }
}

.app-link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.app-link-button:hover::before {
  left: 100%;
}

.app-link-button:hover {
  background: linear-gradient(135deg, #e0700f 0%, #d1650d 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 127, 19, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: #08335c;
}

.app-link-button:active {
  transform: translateY(-1px);
}

.app-link-button svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.app-features-panel {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 3px solid #08335c;
  position: relative;
  z-index: 2;
}

.app-features-panel::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #f07f13;
}

.app-features-content h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #08335c;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid #f07f13;
  display: inline-block;
  width: 100%;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  font-size: 14px;
}

.app-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.app-features-list li {
  padding: var(--space-md);
  font-size: 14px;
  line-height: 1.8;
  color: #08335c;
  background: linear-gradient(135deg, #e5e7f3 0%, #f0f1f5 100%);
  border-radius: 12px;
  border-left: 4px solid #f07f13;
  border-right: 1px solid rgba(8, 51, 92, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.app-features-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f07f13 0%, #e0700f 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.app-features-list li:hover {
  background: linear-gradient(135deg, #d0d4e8 0%, #e5e7f3 100%);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(8, 51, 92, 0.15);
  border-left-color: #08335c;
}

.app-features-list li:hover::before {
  transform: scaleY(1);
}

.app-features-list li strong {
  color: #08335c;
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
}

.live-link-button:hover {
  background: var(--c-primary-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162, 0, 13, 0.4);
}

.live-link-button svg {
  flex-shrink: 0;
}

/* Team Introduction Section */
.team-intro-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.team-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.team-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.team-intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.team-intro-text:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero__logo-live-container {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .hero__logo-container {
    margin-left: 0;
    margin-right: 0;
  }
  
  .live-link-banner--compact {
    max-width: 100%;
    width: 100%;
  }
  
  .live-link-content {
    flex-direction: column;
    text-align: center;
  }
  
  .live-link-icon {
    font-size: 36px;
  }
  
  .live-link-text h2 {
    font-size: 24px;
  }
  
  .team-intro-text {
    font-size: 16px;
  }
}

.hero--trombi .hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--space-lg);
}

.hero--trombi .hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 0;
}

/* Trombinoscope container */
.trombi {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
  min-height: 60vh;
}

/* Search container */
.trombi__search-container {
  margin-bottom: var(--space-2xl);
  display: flex;
  justify-content: center;
}

.trombi__search-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.trombi__search {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid var(--c-primary-2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.trombi__search:focus {
  border-color: var(--c-primary-1);
  box-shadow: 0 0 0 3px rgba(162, 0, 13, 0.1);
  background: white;
}

.trombi__search::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.trombi__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

/* Tabs */
.trombi__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.trombi__tab {
  padding: 12px 24px;
  border: 2px solid var(--c-primary-2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
  overflow: hidden;
}

.trombi__tab:hover {
  background: var(--c-primary-2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(162, 0, 13, 0.2);
}

.trombi__tab:focus {
  box-shadow: 0 0 0 3px rgba(162, 0, 13, 0.2);
}

.trombi__tab.is-active {
  background: var(--c-primary-1);
  border-color: var(--c-primary-1);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(162, 0, 13, 0.3);
}

.trombi__tab.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Content */
.trombi__content {
  min-height: 400px;
}

/* Grid */
.trombi__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
  .trombi__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .trombi__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .trombi__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Card */
.trombi__card {
  background: white;
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(162, 0, 13, 0.1);
}

.trombi__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.trombi__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary-1), var(--c-primary-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trombi__card:hover::before {
  opacity: 1;
}

/* Card image */
.trombi__card-image-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-primary-2);
  background: var(--bg-secondary);
}

.trombi__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trombi__card:hover .trombi__card-image {
  transform: scale(1.05);
}

.trombi__card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-primary-2), var(--c-primary-1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

/* Card content */
.trombi__card-content {
  text-align: center;
}

.trombi__card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.trombi__card-id {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  background: var(--bg-secondary);
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
}

.trombi__card-pole {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  background: rgba(162, 0, 13, 0.1);
  border-radius: 20px;
  display: inline-block;
}

/* Pole-specific colors */
.trombi__card-pole--com {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.trombi__card-pole--orga {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

.trombi__card-pole--scene {
  background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
  color: white;
}

.trombi__card-pole--eldorado {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
}

.trombi__card-pole--eldorado.trombi__card-pole--link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.trombi__card-pole--eldorado.trombi__card-pole--link:hover {
  background: linear-gradient(135deg, #45a049, #1b5e20);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* El Dorado tab styling */
.trombi__tab--eldorado.is-active {
  background: #4caf50;
  border-color: #4caf50;
  color: white;
}

.trombi__tab--eldorado:hover {
  background: #45a049;
  border-color: #45a049;
  color: white;
}

.trombi__tab--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.trombi__tab--link:hover {
  background: #45a049;
  border-color: #45a049;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Hero El Dorado */
.hero--eldorado {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(46, 125, 50, 0.05));
}

.trombi--eldorado {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(46, 125, 50, 0.02));
}

.trombi__tab-count {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* No results */
.trombi__no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.trombi__no-results-content {
  max-width: 400px;
  margin: 0 auto;
}

.trombi__no-results-icon {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.trombi__no-results-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.trombi__no-results-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Loading state */
.trombi__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl);
}

.trombi__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--c-primary-2);
  border-top: 3px solid var(--c-primary-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible for better accessibility */
.trombi__tab:focus-visible,
.trombi__search:focus-visible {
  outline: 2px solid var(--c-primary-1);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .trombi__card,
  .trombi__card-image,
  .trombi__tab {
    transition: none;
  }
  
  .trombi__tab.is-active::before {
    animation: none;
  }
  
  .trombi__loading-spinner {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .trombi__card {
    border: 2px solid var(--text-primary);
  }
  
  .trombi__tab {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .trombi__search-container,
  .trombi__tabs {
    display: none;
  }
  
  .trombi__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  
  .trombi__card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

