/* CSS Moderno para São Paulo FC Website */
:root {
  --spfc-red: #da1f28;
  --spfc-red-hover: #b0141b;
  --spfc-black: #111111;
  --spfc-dark-gray: #1a1a1a;
  --spfc-card-bg: #222222;
  --spfc-white: #ffffff;
  --spfc-text-muted: #aaaaaa;
  --spfc-border: rgba(255, 255, 255, 0.1);
  --spfc-gold: #e5a93b;
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--spfc-black);
  color: var(--spfc-white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navegação */
header {
  background: rgba(17, 17, 17, 0.95);
  border-bottom: 2px solid var(--spfc-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--spfc-white);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo-stripes {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(218, 31, 40, 0.4);
}

.stripe-red { height: 33.3%; background-color: var(--spfc-red); }
.stripe-white { height: 33.3%; background-color: var(--spfc-white); }
.stripe-black { height: 33.3%; background-color: #000000; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition);
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--spfc-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--spfc-red);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--spfc-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Banner Hero */
.hero {
  background: linear-gradient(135deg, rgba(17,17,17,0.85) 0%, rgba(218,31,40,0.4) 100%),
              radial-gradient(circle at top right, #2a2a2a, #111111);
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--spfc-border);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--spfc-red);
}

.hero p {
  font-size: 1.25rem;
  color: var(--spfc-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--spfc-border);
  padding: 1.2rem 2rem;
  border-radius: 8px;
  min-width: 150px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--spfc-gold);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--spfc-text-muted);
  letter-spacing: 1px;
}

/* Containers e Seções */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--spfc-red);
}

.section-title p {
  color: var(--spfc-text-muted);
  margin-top: 0.5rem;
}

/* Grid de Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--spfc-card-bg);
  border: 1px solid var(--spfc-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--spfc-red);
  box-shadow: 0 10px 25px rgba(218, 31, 40, 0.15);
}

.card-header {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-bottom: 1px solid var(--spfc-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tag {
  background: var(--spfc-red);
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--spfc-white);
}

.card-body p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--spfc-border);
  font-size: 0.85rem;
  color: var(--spfc-text-muted);
}

/* Filtros (Página de Títulos e Ídolos) */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--spfc-dark-gray);
  color: var(--spfc-white);
  border: 1px solid var(--spfc-border);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--spfc-red);
  border-color: var(--spfc-red);
}

/* Timeline Histórica */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--spfc-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--spfc-red);
  border: 3px solid var(--spfc-black);
  top: 18px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::after { right: -7px; }
.timeline-item.right::after { left: -7px; }

.timeline-content {
  background: var(--spfc-card-bg);
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--spfc-border);
}

.timeline-content h4 {
  color: var(--spfc-gold);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* Footer */
footer {
  background: #0a0a0a;
  border-top: 1px solid var(--spfc-border);
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--spfc-text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--spfc-red);
    gap: 1.2rem;
  }
  .nav-links.show { display: flex; }
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
  .timeline-item.right { left: 0; }
  .timeline-item.left::after, .timeline-item.right::after { left: 24px; }
  .hero h1 { font-size: 2.2rem; }
}
