:root {
  --cor-verde: #22c55e;

  --accent-main: #4ade80;  
  --accent-strong: #22c55e; 
  --accent-soft: #86efac;  

  --accent-glow: rgba(74, 222, 128, 0.6);
  --accent-glow-soft: rgba(74, 222, 128, 0.35);
  --accent-glow-strong: rgba(34, 197, 94, 0.75);

  --bg-dark: #0b0b10;
  --bg-card: #14141e;
  --border-soft: #26263a;

  --sidebar-width: 260px;
}

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

.gradient-green {
  --card-glow: rgba(34, 197, 94, 0.55);
  --card-glow-strong: rgba(34, 197, 94, 0.8);
  --text-gradient: linear-gradient(
    90deg,
    #22c55e,
    #4ade80,
    #d4af37,
    #16a34a
  );
}
.gradient-blue {
  --card-glow: rgba(119, 214, 216, 0.55);
  --card-glow-strong: rgba(79, 195, 247, 0.8);
  --text-gradient: linear-gradient(
    90deg,
    #77d6d8,
    #4fc3f7,
    #b2ebf2,
    #d4af37
  );
}

.gradient-red {
  --card-glow: rgba(239, 68, 68, 0.55);
  --card-glow-strong: rgba(239, 68, 68, 0.8);
  --text-gradient: linear-gradient(
    90deg,
    #ef4444,
    #f97316,
    #dc2626,
    #ffffff
  );
}

.gradient-purple {
  --card-glow: rgba(139, 92, 246, 0.55);
  --card-glow-strong: rgba(139, 92, 246, 0.8);
  --text-gradient: linear-gradient(
    90deg,
    #8b5cf6,
    #a855f7,
    #c084fc,
    #d4af37
  );
}

.gradient-gold {
  --card-glow: rgba(250, 204, 21, 0.55);
  --card-glow-strong: rgba(250, 204, 21, 0.85);
  --text-gradient: linear-gradient(
    90deg,
    #facc15,
    #f59e0b,
    #ffffff,
    #fde047
  );
}

.gradient-grass {
  --card-glow: rgba(34, 197, 94, 0.55);
  --card-glow-strong: rgba(74, 222, 128, 0.8);
  --text-gradient: linear-gradient(
    90deg,
    #16a34a,
    #ffffff,
    #22c55e,
    #d4af37
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(160deg, #0b0b10, #14141c);
  color: #eaeaf0;
}

/* APP */
.app {
  display: flex;
  height: 100vh;
}

.content {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.content::after {
  content: '';
  position: fixed;
  z-index: -1;

  top: 50%;
  left: calc(50% + var(--sidebar-width) / 2);

  width: 600px;
  height: 500px;

  background:
    linear-gradient(to top left, transparent 29.25%, var(--cor-verde) 29.25%, var(--cor-verde) 30.75%, transparent 30.75%),
    linear-gradient(to top left, transparent 38.75%, var(--cor-verde) 38.75%, var(--cor-verde) 41.25%, transparent 41.25%),
    linear-gradient(to top left, transparent 48%,    var(--cor-verde) 48%,    var(--cor-verde) 52%,    transparent 52%),
    linear-gradient(to top left, transparent 58.75%, var(--cor-verde) 58.75%, var(--cor-verde) 61.25%, transparent 61.25%),
    linear-gradient(to top left, transparent 69.25%, var(--cor-verde) 69.25%, var(--cor-verde) 70.75%, transparent 70.75%);

  opacity: 0.06;
  transform: translate(-50%, -50%) rotate(-30deg);
  pointer-events: none;
}


/* SIDEBAR */
.sidebar {
  width: 260px;
  background: #0f0f16;
  border-right: 1px solid #1f1f2a;
  padding: 25px 15px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  overflow: visible;
  
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #22c55e; /* verde atual */
  margin-bottom: 12px;
}

.logo-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #22c55e; /* verde */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f16;
  margin-bottom: 6px;
}

.logo-icon img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.nav-item {
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: var(--accent-glow);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(
    90deg,
    var(--accent-main),
    var(--accent-strong)
  );
  box-shadow: 0 0 12px var(--accent-glow);;
}

/* BOTTOM BAR */

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
}

#bottom-bar {
  margin-top: auto; /* empurra pro fundo */
  padding: 16px 12px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#bottom-bar a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

#bottom-bar a:hover {
  color: #22c55e; /* verde */
}

#bottom-bar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #22c55e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#bottom-bar a:hover::after {
  transform: scaleX(1);
}

/* CONTENT */

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

/* PAGES */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* PROFILE HEADER */
.profile-header {
  display: flex;
  gap: 25px;
  background: linear-gradient(135deg, #15151f, #1b1b28);
  border-radius: 16px;
  padding: 25px;
  box-shadow: inset 0 0 0 1px #24243a;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  background: transparent;
  border: none;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.avatar:hover {
  transform: scale(1.15);
}


.profile-info h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.profile-info span {
  color: var(--accent-main);
  font-weight: 600;
}

.profile-header {
  display: flex;
  align-items: center;
  position: relative;
  gap: 20px;
}

/* garante que avatar + texto fiquem acima */
.avatar,
.profile-info {
  position: relative;
  z-index: 2;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-types {
  display: flex;
  gap: 6px;
  margin-top: 4px; /* ajusta altura em relação ao nome */
}

.profile-type-icon {
  width: 22px;
  height: 22px;
}

/* STATS GRID */
.stats-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(145deg, #14141e, #1c1c2b);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px #24243a;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.8),
    0 0 20px rgba(34, 197, 94, 0.35);
}

.stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left: 10px;
}

.stat-label {
  font-size: 13px;
  color: #9ca3af;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}


/* SECTION TITLE */
.section-title {
  margin: 35px 0 15px;
  font-size: 20px;
  border-left: 4px solid var(--accent-main);
  padding-left: 12px;
}

/* DEVICE */
.device-helds {
  display: flex;
  gap: 12px;
}

.profile-device h3 {
  margin-bottom: 80px;
  color: var(--accent);
}

.device-helds img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

/* METAS */

.metas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 50%;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #14141e, #1c1c2b);
  overflow: visible;
}

.meta-image {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.meta-image-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.meta-card:hover .meta-image {
  transform: scale(1.35) translateZ(0);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.35s ease;
}

.meta-card:hover .meta-info {
  transform: translateX(10px);
}

.meta-title {
  font-weight: 600;
  font-size: 15px;
}

.meta-card.progress {
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.meta-progress {
  font-size: 13px;
  color: #facc15;
}

.meta-card.completed {
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.meta-complete {
  font-size: 13px;
  color: #22c55e;
}

.meta-card.clickable:hover {
  cursor: pointer;
}

.meta-arrow {
  margin-left: auto;
  margin-right: 8px;
  width: 20px;
  opacity: 0.4;
  transition: transform 0.3s ease, opacity 0.3s ease;
  filter: invert(100%);
}

.meta-card:hover .meta-arrow {
  opacity: 1;
  transform: translateX(6px);
}


/* TITLES OTHER PAGES */

#team {
  position: relative;
}

#team > h1 {
  margin-bottom: 16px;
}

.view-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  background: #0f0f16;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.view-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  padding: 8px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  background: #22c55e;
  color: #0f0f16;
  align-items: center;
  justify-content: center;
}

.grid-icon,
.list-icon{
  filter: invert(100%);
  width: 24px;
  display: flex;
}

.team-grid.view-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.team-grid.view-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 14px;
}

.team-grid.view-list .pokemon-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.team-grid.view-list .pokemon-header {
  flex-shrink: 0;
}

.team-grid.view-list .pokemon-name,
.team-grid.view-list .pokemon-boost {
  display: flex;
}

.team-grid.view-list .helds {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-grid.view-list .pokeball {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
}

.team-grid.view-list .pokemon-types {
  margin-left: 10px;
  display: flex;
  gap: 14px;
  position: static;
}

.page h1 {
  font-size: 26px;
  margin-bottom: 15px;
}

.pokemon-card {
  background: linear-gradient(145deg, #14141e, #1c1c2b);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 0 12px var(--card-glow, var(--accent-glow-soft));
  transition: transform .3s ease, box-shadow .3s ease;
}

.pokemon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px var(--card-glow-strong, var(--accent-glow));
}

.pokemon-header {
  max-height: 140px;
  display: flex;
  justify-content: center;
  position: relative;
}

.pokemon-types {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 14px;
}

.type-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f0f16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-icon img {
  width: 16px;
  height: 16px;
}

.pokemon-header img {
  width: 60px;
  height: auto;
  image-rendering: auto;
  transition: transform .3s ease;
  image-rendering: pixelated;
}

.pokemon-card:hover .pokemon-header .poke-img {
  transform: scale(1.1);
}

.pokemon-name {
  text-align: center;
  font-size: 20px;
  margin-top: 10px;
}

.pokemon-boost {
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--accent-main);
}

/* HELDS */
.helds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.held,
.inactive-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11111a;
  border-radius: 8px;
  padding: 4px;
  position: relative;
}

.held img,
.inactive-item img {
  max-width: 100%;
  height: auto;
  image-rendering: auto;
}

/* TOOLTIP */
.tooltip {
  max-width: 280px;
  width: max-content;
  white-space: normal;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #0f0f16;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  display: none;
  box-shadow: 0 0 30px var(--card-glow, var(--accent-glow));
}

.held:hover .tooltip,
.inactive-item:hover .tooltip {
  display: block;
}

/* INACTIVES */
.inactives {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

/* POKEBALL */
.pokeball {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.pokeball img {
  height: auto;
  max-width: 100%;
  image-rendering: auto;
}

/* ===== GRADIENT TEXT BASE ===== */
.gradient-text {
  background-image: var(--text-gradient);
  font-weight: 700;
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease infinite;
}

.pokeball,
.type-icon {
  position: relative;
}

/* CONQUISTAS */

.conquistas-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 24px;
}

.conquistas-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.conquista-card {
  background: linear-gradient(145deg, #14141e, #1c1c2b);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--card-glow, var(--accent-glow-soft));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.conquista-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px var(--card-glow-strong, var(--accent-glow));
}

.conquista-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  image-rendering: pixelated;
}

.conquista-card:hover img {
  transform: scale(1.05);
}

.conquista-card h3 {
  font-size: 15px;
  margin: 6px 0 4px;
  color: #fff;
}

.conquista-card p {
  font-size: 12px;
  color: #b5b5c8;
  line-height: 1.4;
}

.conquista-viewer {
  max-width: 900px;
  line-height: 1.7;
}

.conquista-viewer img {
  max-width: 100%;
  margin: 20px 0;
}

.conquista-content {
  background: linear-gradient(145deg, #14141e, #1c1c2b);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none; 
    padding: 5px 15px;
    color: white;
    font-size: 18px;
}

.back-btn:hover {
    border: 1px solid var(--accent-glow);
}

.back-icon {
    width: 18px;         /* Ajuste o tamanho da largura do PNG */
    height: auto;        /* Mantém a proporção da altura */
    filter: invert(100%);
}

.md-image-large {
  width: 60px;
  max-width: 100%;
  display: block;
  image-rendering: pixelated;
}

.text-green {
  color: #22c55e;
}

.text-yellow {
  color: #facc15;
}

.text-red {
  color: #ef4444;
}

#finders-total{
  font-size: 24px;
}

.md-icon-line {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  font-size: 28px;
}

.md-icon-line img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.log-text{
  background-color: #e9eef6;
  color: black;
  padding: 3px 8px;
}

/* ------  TREVO  ------- */

.tabela-mestre {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid rgba(255,255,255,0.5);
}

.tabela-mestre td {
  height: auto;
}

.bloco-semana {
  height: 100%;
  justify-content: baseline;
  vertical-align: top;
  border: 1px solid rgba(255,255,255,0.5);
}

.titulo-semana {
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  height: 30px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.tabela-semana {
  width: 100%;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.5);
}

.tabela-semana th {
  font-size: 12px;
  padding: 6px 10px;
  text-align: center;
  color: #ffffff;
}

.tabela-semana td {
  padding: 0px 8px;
  text-align: center;
  justify-content: center;
}

.tabela-semana td img {
  width: 32px;
  image-rendering: pixelated;
}

.tabela-semana input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  background: transparent;
  position: relative;
  cursor: default;
}

.tabela-semana input[type="checkbox"]:checked {
  background: linear-gradient(
    90deg,
    #facc15,
    #f59e0b,
    #ffffff,
    #fde047
  );
  border-color: linear-gradient(
    90deg,
    #facc15,
    #f59e0b,
    #ffffff,
    #fde047
  );
}

.tabela-semana input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #0b0b10;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

