/*
Theme Name: Luiz Felipe Rubleski - Goleiro
Theme URI: https://goleirorubleski.lovable.app
Author: Staff LFR
Description: Tema profissional para portfolio do goleiro Luiz Felipe Rubleski
Version: 1.0
Text Domain: lfr-goleiro
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --foreground: #f5f5f5;
  --muted: #a3a3a3;
  --primary: #d4a843;
  --primary-fg: #0a0a0a;
  --border: #262626;
  --secondary-bg: rgba(38, 38, 38, 0.3);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1rem; display: flex;
  align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--primary);
}
.navbar-logo span { color: var(--foreground); }
.navbar-links { display: flex; gap: 2rem; }
.navbar-links a {
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); transition: color 0.2s;
}
.navbar-links a:hover { color: var(--primary); }
.navbar-toggle { display: none; background: none; border: none; color: var(--foreground); cursor: pointer; font-size: 1.5rem; }
.navbar-mobile { display: none; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.navbar-mobile.active { display: block; }
.navbar-mobile a {
  display: block; padding: 0.75rem 1.5rem;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted); transition: color 0.2s;
}
.navbar-mobile a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
}

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,0.6), var(--bg));
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; padding: 0 1rem; max-width: 900px; margin: 0 auto;
}
.hero-subtitle {
  font-family: var(--font-heading); color: var(--primary);
  font-size: 0.875rem; text-transform: uppercase;
  letter-spacing: 0.4em; margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--primary); }
.hero-text {
  color: var(--muted); font-size: 1rem;
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.btn-primary {
  display: inline-block;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-heading); text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.875rem;
  padding: 0.875rem 2rem; border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.scroll-indicator {
  position: absolute; bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  color: var(--muted); animation: bounce 2s infinite;
  font-size: 1.75rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ========== SECTIONS BASE ========== */
.section { padding: 6rem 1rem; }
.section-alt { background: var(--secondary-bg); }
.section-inner { max-width: 1024px; margin: 0 auto; }
.section-label {
  font-family: var(--font-heading); color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.875rem; margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; text-transform: uppercase;
  margin-bottom: 3rem;
}
.section-title .accent { color: var(--primary); }
.divider { width: 5rem; height: 4px; background: var(--primary); margin-bottom: 2.5rem; }

/* ========== ABOUT ========== */
.about-text { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; }

.about-with-image {
  display: flex;
  gap: 3rem;
  align-items: center;
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-content {
  flex: 1;
}
.atleta-photo {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .about-with-image {
    flex-direction: column;
  }
}

/* ========== TRAJECTORY ========== */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 1.5rem; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
@media (min-width: 768px) {
  .timeline::before { left: 50%; }
}
.timeline-item { position: relative; display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 4rem; }
.timeline-icon {
  position: relative; z-index: 10; flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--primary); display: flex;
  align-items: center; justify-content: center;
  color: var(--primary-fg); font-size: 1.25rem;
}
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.5rem; padding: 1.5rem; flex: 1;
}
.timeline-card h3 {
  font-family: var(--font-heading); font-size: 1.25rem;
  font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem;
}
.timeline-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.timeline-card ul { margin-top: 0.75rem; }
.timeline-card li { color: var(--primary); font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.timeline-card .footer-text { color: var(--muted); font-size: 0.875rem; font-style: italic; margin-top: 0.75rem; }

@media (min-width: 768px) {
  .timeline-item { gap: 0; }
  .timeline-icon { position: absolute; left: 50%; transform: translateX(-50%); }
  .timeline-card { width: calc(50% - 3rem); }
  .timeline-item:nth-child(odd) .timeline-card { margin-right: auto; }
  .timeline-item:nth-child(even) .timeline-card { margin-left: auto; }
}

/* ========== SCOUTING REPORT ========== */
.scouting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .scouting-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scouting-card {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scouting-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 5px;
  align-self: flex-start;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}
.info-row .label {
  color: var(--muted);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.info-row .value {
  color: #fff;
  font-weight: 500;
}

.scouting-image-container {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== MEDIA (VIDEO & GALLERY) ========== */
.video-wrapper {
  position: relative; aspect-ratio: 16/9;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.5rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3rem; cursor: pointer;
}
.video-wrapper .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8), transparent);
}
.video-wrapper .play-btn {
  position: relative; z-index: 10;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--primary); display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.video-wrapper:hover .play-btn { transform: scale(1.1); }
.video-wrapper .play-btn svg { margin-left: 3px; }
.video-label {
  position: relative; z-index: 10;
  color: var(--muted); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.75rem; text-align: center;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px 0;
}
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 1; /* Mantém quadrados proporcionais */
}
.zoom-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Ajuste para não cortar o rosto */
  display: block;
  transition: transform 0.5s ease;
  cursor: pointer;
}
.photo-item:hover img {
  transform: scale(1.10);
  filter: brightness(0.8);
}
.photo-caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo-item:hover .photo-caption {
  opacity: 1;
}

/* Lightbox Galeria */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.seta-voltar, .seta-avancar {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -30px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s ease;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  border-radius: 5px;
}
.seta-voltar { left: 20px; }
.seta-avancar { right: 20px; }

.seta-voltar:hover, .seta-avancar:hover {
  background-color: var(--primary);
  color: #fff;
}
.fechar-galeria {
  color: white;
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.fechar-galeria:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .seta-voltar, .seta-avancar {
    padding: 10px;
    font-size: 30px;
  }
}

/* ========== CONTACT ========== */
.contact-center { text-align: center; max-width: 768px; margin: 0 auto; }
.contact-text { color: var(--muted); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--muted); font-size: 0.875rem; transition: color 0.2s;
}
.contact-link:hover { color: var(--primary); }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0; text-align: center;
}
.site-footer p {
  color: var(--muted); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
}