/* ============================================
   CONTACT SITE - ELEGANT DARK THEME
   Font: Cormorant Garamond + Montserrat
   Style: Glassmorphism sottile + Gold accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors - Background */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.7);
  --bg-card-hover: rgba(36, 36, 36, 0.9);

  /* Colors - Gold Theme (aligned with main site) */
  --gold-1: #cba135;
  --gold-2: #d4af37;
  --gold-3: #b8941f;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #cba135 100%);
  --light-accent: #e6c46a;

  /* Colors - Text */
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;

  /* Effects (aligned with main site gold) */
  --glow-gold: 0 0 20px rgba(203, 161, 53, 0.3);
  --glow-strong: 0 0 40px rgba(212, 175, 55, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Fonts */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(203, 161, 53, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm);
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.language-toggle {
  position: fixed;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 1000;
}

.language-toggle a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(203, 161, 53, 0.2);
  border-radius: 20px;
  color: var(--gold-1);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.language-toggle a:hover {
  background: var(--gold-gradient);
  color: #000;
  transform: scale(1.05);
  box-shadow: var(--glow-gold);
}

/* ============================================
   HEADER (Avatar + Name + Role + Bio)
   ============================================ */
.header {
  text-align: center;
  padding: var(--spacing-xl) 0;
  animation: fadeInUp 0.8s ease;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--gold-2);
  box-shadow:
    0 0 20px rgba(212, 175, 55, 0.4),
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-strong), var(--shadow-lg);
}

.name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  /* Gradient bianco → oro come main site */
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.role {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.5);
}

.bio {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.13em;
  color: var(--gold-1);
  max-width: 500px;
  margin: 0 auto;
  margin-top: 1.4em;
  line-height: 1.7;
  /* Glow dorato come main site */
  text-shadow:
    0 0 10px rgba(212, 175, 55, 0.5),
    0 2px 14px rgba(0, 0, 0, 0.8),
    0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: both;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-1);
  text-align: center;
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-lg);
  position: relative;
  text-shadow: 0 2px 16px #000, 0 0px 1px rgba(212, 175, 55, 0.5);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin: var(--spacing-xs) auto 0;
  border-radius: 2px;
}

/* ============================================
   LINKS (Button Style)
   ============================================ */
.links-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.link-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.link-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-1);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--glow-gold), var(--shadow-md);
}

.link-icon {
  width: 28px;
  height: 28px;
  margin-right: var(--spacing-sm);
  filter: brightness(0) saturate(100%) invert(86%) sepia(82%) saturate(477%) hue-rotate(356deg) brightness(104%) contrast(101%);
  transition: transform 0.3s ease;
}

.link-item:hover .link-icon {
  transform: rotate(5deg) scale(1.1);
}

.link-text {
  flex: 1;
}

.link-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-left: var(--spacing-sm);
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   HIGHLIGHTS GRID (Special Treatment)
   ============================================ */

/* GROUP BOX CONTAINER - Linktree style */
.highlight-group {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.highlight-group:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* GROUP TITLE - Golden bar on left */
.group-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-1);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
  border-left: 4px solid var(--gold-1);
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-sm);
}

.highlight-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.6s ease;
}

.highlight-card:hover::before {
  left: 100%;
}

.highlight-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-1);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--glow-strong), var(--shadow-lg);
}

/* Thumbnail for video/image previews in highlights */
.highlight-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover .highlight-thumbnail {
  transform: scale(1.02);
  box-shadow: var(--glow-gold), var(--shadow-lg);
}

/* Make highlight cards display in column when they have thumbnails */
.highlight-card:has(.highlight-thumbnail) {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.highlight-card:has(.highlight-thumbnail) .link-icon,
.highlight-card:has(.highlight-thumbnail) .link-text,
.highlight-card:has(.highlight-thumbnail) .link-badge {
  margin: var(--spacing-sm) var(--spacing-sm) 0;
}

.highlight-card:has(.highlight-thumbnail) .link-text {
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  margin-top: var(--spacing-xl);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .name {
    font-size: 2rem;
  }

  .role {
    font-size: 1rem;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .language-toggle a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 1.75rem;
  }

  .link-item {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   COPY TO CLIPBOARD FEEDBACK
   ============================================ */
.copy-feedback {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: var(--gold-gradient);
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s;
  pointer-events: none;
}

.copy-feedback.show {
  opacity: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--gold-1);
  outline-offset: 2px;
}

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