:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: #eff6ff;
}

.btn-discord {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(59 130 246 / 0.4);
}

/* Main content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  transition: all 0.2s;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Channels */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.channel-card {
  padding: 20px;
}

.channel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.channel-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.channel-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Agenda */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.event-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.event-day {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  min-width: 70px;
}

.event-day .day {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.event-day .time {
  font-size: 1.1rem;
  font-weight: 700;
}

.event-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.event-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Rules */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rule-card {
  padding: 24px;
  position: relative;
}

.rule-number {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

.rule-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.rule-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.rule-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  text-align: center;
  padding: 28px 20px;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.team-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  color: var(--primary);
  font-size: 0.85rem;
}

.vaga-card {
  border: 2px dashed var(--border);
  background: transparent;
}

.vaga-card .team-avatar {
  background: #f1f5f9;
  color: var(--text-muted);
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.game-card {
  overflow: hidden;
  padding: 0;
}

.game-banner {
  height: 160px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.game-info {
  padding: 24px;
}

.game-info h3 {
  margin-bottom: 8px;
}

.game-info p {
  color: var(--text-muted);
}

/* Forms */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group label span {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-submit:hover {
  transform: translateY(-1px);
}

/* Utilities page */
.gifs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.gif-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.gif-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.gif-info {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-copy {
  background: #f1f5f9;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
}

.btn-copy:hover {
  background: #e2e8f0;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.icon-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.icon-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.icon-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Raffle */
.raffle-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.raffle-list {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  min-height: 180px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.raffle-result {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .icons-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .stats, .channels-grid, .rules-grid, .agenda-grid, .team-grid, .games-grid, .gifs-grid {
    grid-template-columns: 1fr;
  }
  .raffle-box { grid-template-columns: 1fr; }
  .icons-grid { grid-template-columns: repeat(3, 1fr); }
}

.tag-pill {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.invite-card {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 48px;
  padding: 40px 32px;
}

.invite-card .icon-big {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: #1e40af;
}
