﻿/* =======================================================
   Portugal Team - Clã PUBG | styles.css
   Autor: Mikey aka NunchuckCoder
   https://github.com/NunchuckCoder
   ======================================================= */

/* Reset básico de margens, padding e box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos gerais do body */
body {
  font-family: 'Exo 2', sans-serif; /* Fonte principal */
  color: #eaeaea;                   /* Cor de texto base */
  background-color: #0b0b0b;        /* Fundo escuro */
  scroll-behavior: smooth;          /* Scroll suave entre âncoras */
}

/* =======================================================
   Fontes personalizadas PUBG (otimizadas com font-display: swap)
   ======================================================= */
@font-face {
  font-family: PUBGBattlegrounds;
  font-style: normal;
  font-weight: 400;
  src: url('PUBG_Battlegrounds_Regular.64c0961.otf') format("opentype");
  font-display: swap;
}

@font-face {
  font-family: PUBGBattlegroundsTextured;
  font-style: normal;
  font-weight: 400;
  src: url('PUBG_Battlegrounds_Textured.46468ed.otf') format("opentype");
  font-display: swap;
}

/* =======================================================
   NAVBAR / HEADER
   ======================================================= */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.8); /* fundo semi-transparente */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  z-index: 100; /* fica sempre no topo */
}

/* Logótipo com fonte personalizada */
.navbar .logo { 
  font-family: PUBGBattlegroundsTextured, PUBGBattlegrounds, refrigerator-deluxe, "Roboto Condensed", "Noto Sans", "Noto Sans KR", "Noto Sans TC", "Source Han Sans CN", "Noto Sans JP", "Noto Sans Thai", "Noto Sans Arabic", blinkmacsystemfont, -apple-system, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 100%;
  letter-spacing: -.018em;
  color: #ff3c38;
}

/* Links da navegação */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  font-family: PUBGBattlegroundsTextured, PUBGBattlegrounds, refrigerator-deluxe, "Roboto Condensed", "Noto Sans", "Noto Sans KR", "Noto Sans TC", "Source Han Sans CN", "Noto Sans JP", "Noto Sans Thai", "Noto Sans Arabic", blinkmacsystemfont, -apple-system, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 100%;
  letter-spacing: 0.05em;
  color: #eaeaea;
  margin-bottom: 20px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-links a:hover { color: #ff3c38; } /* destaque vermelho ao passar o rato */

/* Botão do Discord na navbar */
.btn-nav {
  padding: 10px 20px;
  background-color: #ff3c38;
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-nav:hover { background-color: #e52a2a; }

/* =======================================================
   MENU MOBILE (hambúrguer)
   ======================================================= */
.hamburger {
  display: none; /* escondido em desktop */
  font-size: 1.5rem;
  color: #eaeaea;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: 0;
    top: 70px;
    height: calc(100% - 70px);
    background-color: rgba(11,11,11,0.95);
    flex-direction: column;
    align-items: center;
	justify-content: start;
    gap: 30px;
    padding-top: 40px;
    width: 200px;
    transform: translateX(100%); /* começa escondido */
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); } /* aparece ao clicar */
  .hamburger { display: block; }
}

/* =======================================================
   HERO (primeira secção fullscreen)
   ======================================================= */
#hero {
  height: 100vh;
  background: url('imagens/3f9b9bc.webp') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Overlay escuro por cima da imagem */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* Conteúdo do hero */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: PUBGBattlegroundsTextured, PUBGBattlegrounds, refrigerator-deluxe, "Roboto Condensed", "Noto Sans", "Noto Sans KR", "Noto Sans TC", "Source Han Sans CN", "Noto Sans JP", "Noto Sans Thai", "Noto Sans Arabic", blinkmacsystemfont, -apple-system, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 9rem;
  line-height: 100%;
  letter-spacing: -.018em;
  color: #ff3c38;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
}

/* Botão principal do Hero */
.btn-hero {
  padding: 15px 40px;
  background-color: #ff3c38;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn-hero:hover { background-color: #e52a2a; }

/* =======================================================
   SECTIONS GERAIS
   ======================================================= */
.section { padding: 80px 20px; }
.dark-section { background-color: #121212; }/* fundo escuro alternativo */

.section-inner {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-family: PUBGBattlegroundsTextured, PUBGBattlegrounds, refrigerator-deluxe, "Roboto Condensed", "Noto Sans", "Noto Sans KR", "Noto Sans TC", "Source Han Sans CN", "Noto Sans JP", "Noto Sans Thai", "Noto Sans Arabic", blinkmacsystemfont, -apple-system, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 6rem;
  line-height: 100%;
  letter-spacing: -.018em;
  color: #ff3c38;
  margin-bottom: 20px;
}

.sobre-img {
  display: block;
  margin: 20px auto 0; /* auto centra na horizontal */
  max-width: 600px;    /* largura máxima da imagem */
  width: 100%;         /* responsivo */
  border-radius: 10px; /* opcional: cantos arredondados */
}

#sobre,
#requisitos,
#galeria {
  position: relative; /* necessário se quisermos pseudo-elementos */
  color: #eaeaea;     /* texto legível */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay com transparência usando pseudo-elemento */
#sobre::before,
#requisitos::before,
#galeria::before {
  content: '';
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-color: rgba(0, 0, 0, 0.8); /* preto com 50% de transparência */
  z-index: 1;
}

/* Conteúdo dentro da section deve estar acima do overlay */
#sobre .section-inner,
#requisitos .section-inner,
#galeria .section-inner {
  position: relative;
  z-index: 2;
}

/* Backgrounds específicos */
#sobre { background-image: url('imagens/0.png'); }
#requisitos { background-image: url('imagens/9606298.webp'); }
#galeria { background-image: url('imagens/61c5710.webp'); }

/* =======================================================
   EQUIPA / CARDS
   ======================================================= */
.cards-container,
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

/* tenta 4 colunas: até 260px cada, mas encolhe se o container for menor */
.grid-container .card.player-card { flex: 0 0 clamp(180px, calc((100% - 3 * 30px) / 4), 260px); }
  
.founder-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;  /* espaço entre fundador e gerentes */
}

.card.player-card {
  background-color: #1e1e1e;
  width: 260px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card.player-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Foto de cada player */
.player-photo {
  width: 100%;
  padding-top: 75%; /* mantém proporção 4:3 */
  background-size: cover;
  background-position: center;
}

.card.player-card h3 {
  margin: 15px 0 5px;
  color: #ff3c38;
}
.card.player-card p {
  margin-bottom: 15px;
  color: #ccc;
}

/* =======================================================
   LISTAS PERSONALIZADAS (bullet & numbered)
   ======================================================= */
.bullet-list, .numbered-list {
  list-style: none; /* <-- adicionado para remover bullets padrão */
  margin-top: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.bullet-list li {
  margin-bottom: 16px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 25px;
}
.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff3c38;
  font-size: 1.2rem;
}

.numbered-list {
  list-style: none;
  counter-reset: li-counter;
}
.numbered-list li {
  margin-bottom: 16px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 40px;
}
.numbered-list li::before {
  counter-increment: li-counter;
  content: counter(li-counter) ".";
  position: absolute;
  left: 0;
  color: #ff3c38;
  font-weight: bold;
}

/* =======================================================
   GALERIA
   ======================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.gallery-item img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item img:hover { transform: scale(1.05); }

/* =======================================================
   CONTACTOS E REDES
   ======================================================= */
.social-icons-large { margin-top: 30px; }

.social-icons-large a {
  color: #eaeaea;
  font-size: 2rem;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.social-icons-large a:hover { color: #ff3c38; }
   
/* =======================================================
   FOOTER
   ======================================================= */
footer {
  background-color: #101010;
  color: #777;
  padding: 30px 20px;
  text-align: center;
}
.footer-inner p { font-size: 0.9rem; }

/* =======================================================
   MODAL
   ======================================================= */
:root {
  --gallery-img-max-width: 1100px; /* altera aqui o tamanho máximo global (ex.: 1100px) */
  --gallery-img-max-height: 80vh;   /* altura máxima relativa à viewport */
  --gallery-gap: 24px;
}

/* Modal container (inicialmente escondido) */
.gallery-modal {
  display: none; /* toggle via JS */
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* overlay escuro */
.gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

/* conteúdo central */
.gallery-modal-content {
  position: relative;
  z-index: 2;
  max-width: calc(var(--gallery-img-max-width));
  max-height: var(--gallery-img-max-height);
  padding: var(--gallery-gap);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 20px;
  pointer-events: auto;
}

/* imagem responsiva */
.gallery-modal-image {
  max-width: 100%;
  max-height: calc(var(--gallery-img-max-height) - 80px); /* deixa espaço para botão/caption */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  background: #000;
}

/* legenda */
.gallery-modal-caption {
  color: #ddd;
  font-size: 0.95rem;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* botão fechar */
.gallery-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  padding: 6px 10px;
}

/* mostra o modal quando tem a classe 'open' */
.gallery-modal.open { display: flex; }
   
/* =======================================================
   BOTÃO "VOLTAR AO TOPO"
   ======================================================= */
#scrollTopBtn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  background-color: #ff3c38;
  color: white;
  border: none;
  cursor: pointer;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
}

#scrollTopBtn:hover { background-color: #e52a2a; }

/* =======================================================
   LIVE CARDS
   ======================================================= */
.live-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.live-card {
  background-color: #1e1e1e;
  width: 240px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.5);
}

.live-card a {
  text-decoration: none; /* remove underline de links dentro dos cards */
  color: inherit;         /* mantém a cor definida para h3/p */
}

.live-card[data-source="Twitch"] .live-source { color: #9146FF; } /* Twitch purple */
.live-card[data-source="Kick"]   .live-source { color: #00CC66; } /* Kick green */

.live-card h3 {
  margin: 12px 8px 6px;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.live-card p {
  margin: 0 12px 12px;
  color: #ccc;
  font-size: 0.9rem;
  min-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-photo {
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* proporção 16:9 */
  background-size: cover;
  background-position: center;
  position: relative;
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ff3c38;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 5px;
  animation: liveBlink 2.5s infinite ease-in-out; /* mais lento aumentar o numero */
}

/* =======================================================
   ESTATÍSTICAS PUBG (cards + inputs)
   ======================================================= */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stats-group {
  margin-bottom: 40px;
  text-align: left;
}

.stats-group h3 {
  font-size: 1.5rem;
  color: #ff3c38;
  margin-bottom: 15px;
  border-left: 4px solid #ff3c38;
  padding-left: 10px;
}

.stats-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.stats-form input {
  flex: 1;
  max-width: 280px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 4px;
  border: 2px solid rgba(255, 60, 56, 0.6);
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.stats-form input::placeholder { color: rgba(255, 255, 255, 0.4); }

.stats-form input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255, 60, 56, 0.7);
}

.stats-form button {
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #FF3C38, #ff0000);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stats-form button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(255, 60, 56, 0.6);
}

.stats-form button i { pointer-events: none; } /* evita clicar no ícone */

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.stats-group-card {
  flex: 1 1 calc(50% - 20px); /* dois grupos lado a lado */
  border-radius: 8px;
  padding: 20px;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
  
.stats-group-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.stats-group-card h3 { margin-bottom: 10px; }

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list li {
  padding: 5px 0;
  border-bottom: 0px solid rgba(255,255,255,0.2);
}

.placementStats { background-color: #1e1e1e; } /* 4CAF50 */
.killStats { background-color: #1e1e1e; } /* F44336 */
.averageStats { background-color: #1e1e1e; } /* 2196F3 */
.miscStats { background-color: #1e1e1e; } /* FF9800 */
  
.stats-group-title {
  font-family: PUBGBattlegroundsTextured, PUBGBattlegrounds, refrigerator-deluxe, "Roboto Condensed", "Noto Sans", "Noto Sans KR", "Noto Sans TC", "Source Han Sans CN", "Noto Sans JP", "Noto Sans Thai", "Noto Sans Arabic", blinkmacsystemfont, -apple-system, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", helvetica, arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 100%;
  letter-spacing: -.018em;
  color: #ff3c38;
}

/* =======================================================
   ANIMAÇÕES
   ======================================================= */
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =======================================================
   RESPONSIVIDADE
   ======================================================= */
@media (max-width: 768px) {
  .stats-group-card {
    flex: 1 1 100%; /* um grupo por linha em telas pequenas */
  }
}

@media (max-width: 600px) {
  .grid-container .card.player-card {
    flex: 0 0 clamp(180px, calc((100% - 3 * 30px) / 1), 260px);
    max-width: 100%;
    box-sizing: border-box;
  }
  
  :root {
    --gallery-img-max-width: 92vw;
    --gallery-img-max-height: 78vh;
  }
  
  .hero-content h1 { font-size: 8rem; }
  .gallery-modal-content { padding: 12px; }
  .gallery-modal-close { font-size: 1.8rem; }
  .live-card { width: calc(100% - 40px); }
  .sobre-img {display: none; }
}