/* TSS Rulebook - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --primary-red: #dc2626;
  --secondary-red: #b91c1c;
  --dark-red: #991b1b;
  --accent-silver: #e5e7eb;
  --bright-white: #ffffff;
  --dark-bg: #0a0a0b;
  --card-bg: #1a1b1e;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --border-color: #374151;
  --success-green: #48cc6c;
  --warning-yellow: #fbbf24;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #151618 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 50%, var(--dark-red) 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header-content {
  position: relative;
  z-index: 2;
}

.logo {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: -1px;
  color: var(--bright-white);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Logo/Banner Container */
.logo-container {
  margin-bottom: 20px;
}

.tss-banner {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.tss-banner:hover {
  transform: scale(1.05);
}

/* Mission Section */
.mission-section {
  background: var(--card-bg);
  margin: -40px auto 40px;
  max-width: 1000px;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mission-item h3 {
  color: var(--primary-red);
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.mission-item p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Navigation */
.nav-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.nav-item {
  background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  display: block;
}

.nav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
  border-color: var(--accent-silver);
  color: white;
}

/* Content Sections */
.content-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-red);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-silver));
  border-radius: 2px;
}

.subsection-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-silver);
  margin: 30px 0 15px;
}

/* Lists */
.rule-list {
  list-style: none;
  margin: 20px 0;
}

.rule-list li {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px 0;
  position: relative;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.rule-list li::before {
  content: '▶';
  color: var(--primary-red);
  font-weight: bold;
  margin-right: 10px;
}

.rule-list li:hover {
  background: rgba(220, 38, 38, 0.1);
  transform: translateX(5px);
  border-color: rgba(220, 38, 38, 0.3);
}

/* Nested Lists */
.rule-list ul {
  list-style: none;
  margin: 10px 0 0 20px;
}

.rule-list ul li {
  background: rgba(156, 163, 175, 0.05);
  border: 1px solid rgba(156, 163, 175, 0.15);
  padding: 10px 15px;
  margin: 5px 0;
  font-size: 0.95rem;
}

.rule-list ul li::before {
  content: '•';
  color: var(--accent-silver);
  margin-right: 10px;
}

/* Special Cards */
.info-card {
  background: linear-gradient(135deg, rgba(229, 231, 235, 0.08), rgba(156, 163, 175, 0.05));
  border: 1px solid var(--accent-silver);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
}

.warning-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(220, 38, 38, 0.05));
  border: 1px solid var(--warning-yellow);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
}

.prize-highlight {
  background: linear-gradient(135deg, var(--success-green), #3ba55c);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(72, 204, 108, 0.3);
}

/* League Structure */
.league-structure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.league-tier {
  background: linear-gradient(135deg, var(--card-bg), #2a2d3a);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.league-tier:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.league-tier h4 {
  color: var(--accent-silver);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Discord Integration */
.discord-section {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}

.discord-button {
  background: white;
  color: #5865f2;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.discord-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Staff Section */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.staff-card {
  background: linear-gradient(135deg, var(--secondary-red), var(--primary-red));
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.staff-card:hover {
  border-color: var(--accent-silver);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
}

.staff-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.staff-role {
  opacity: 0.9;
  font-weight: 500;
}

/* To Be Updated Section */
.update-list {
  list-style: none;
  margin: 0;
}

.update-list li {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.update-list li::before {
  content: '🔄';
  margin-right: 10px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 0;
  background: var(--card-bg);
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .content-section, .mission-section {
    padding: 25px;
  }
  
  .header {
    padding: 40px 0;
  }
  
  .mission-grid, .nav-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Link Styles */
a {
  color: var(--accent-silver);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-red);
}

code {
  background: rgba(220, 38, 38, 0.2);
  color: var(--primary-red);
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Iframe for embedded content */
.content-frame {
  width: 100%;
  min-height: 600px;
  border: none;
  background: transparent;
}