/* Disc'n Dudes Website Styles */

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --brand-red: #CC0000;
  --brand-red-dark: #990000;
  --brand-red-light: #ff3333;
  --sidebar-width: 260px;
  --sidebar-bg: #1a1a2e;
  --sidebar-text: #e0e0e0;
  --sidebar-hover: #2d2d44;
  --sidebar-active: #CC0000;
  --header-height: 60px;
  --text-primary: #333;
  --text-secondary: #666;
  --bg-light: #f4f4f4;
  --bg-white: #fff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a {
  color: var(--brand-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =============================================
   App Container Layout
   ============================================= */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* =============================================
   Mobile Header (hidden on desktop)
   ============================================= */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--sidebar-bg);
  color: white;
  z-index: 1000;
  padding: 0 1rem;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: white;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo:hover {
  text-decoration: none;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: white;
  text-decoration: none;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: white;
}

.nav-home {
  margin-bottom: 0.5rem;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}

.nav-icon svg {
  stroke: currentColor;
}

.nav-label {
  flex: 1;
}

/* Navigation Sections */
.nav-section {
  margin-bottom: 0.25rem;
}

.nav-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--sidebar-text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition-fast);
}

.nav-section-header:hover {
  background: var(--sidebar-hover);
}

.nav-arrow {
  margin-left: auto;
  display: flex;
  transition: transform var(--transition-fast);
}

.nav-section.collapsed .nav-arrow {
  transform: rotate(-90deg);
}

.nav-section-items {
  display: block;
  padding-left: 1rem;
}

.nav-section.collapsed .nav-section-items {
  display: none;
}

.nav-section-items .nav-item {
  padding: 0.5rem 1.25rem 0.5rem 2rem;
  font-size: 0.95rem;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-version {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sidebar-overlay.visible {
  opacity: 1;
}

/* =============================================
   Main Content Area
   ============================================= */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  background-color: var(--brand-red);
  color: white;
  text-align: center;
  padding: 2rem;
}

.header-logo {
  max-width: 700px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

.page-header p {
  font-size: 1.2rem;
  color: white;
}

/* Header Top Bar - Discord Link & Alert Banner */
.header-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
  margin-bottom: 0.5rem;
}

.header-top-bar.has-alert {
  justify-content: center;
}

/* Discord Link in Header */
.discord-link-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.discord-link-header:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.discord-link-header svg {
  flex-shrink: 0;
}

/* Alert Banner */
.alert-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
  border: 1px solid #f59e0b;
}

/* Discord Link in Sidebar */
.discord-link-sidebar {
  background: #5865F2 !important;
  color: white !important;
  margin: 0.5rem 0.75rem 0.5rem 0.75rem;
  border-radius: 6px;
  padding: 0.6rem 0.75rem !important;
}

.discord-link-sidebar:hover {
  background: #4752C4 !important;
  color: white !important;
}

.discord-link-sidebar .nav-icon svg {
  fill: white;
}

.content-wrapper {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* Wider content wrapper for pages with wide content */
.content-wrapper:has(.admin-page),
.content-wrapper:has(.pig-pen-page),
.content-wrapper:has(.ace-club-page),
.content-wrapper:has(.history-page) {
  max-width: 98%;
}

.content-wrapper:has(.scorecard-entry-page) {
  max-width: 95%;
}

/* Edit/Resubmit banner for rejected scorecards */
.edit-banner {
  background: #FFEBEE;
  border: 1px solid #EF5350;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.edit-banner-title {
  font-weight: 700;
  color: #C62828;
  margin-bottom: 0.25rem;
}

.edit-banner-reason {
  color: #B71C1C;
  font-size: 0.9rem;
}

/* =============================================
   Content Sections
   ============================================= */
section, .card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.welcome-content {
  flex: 1;
}

.welcome-image {
  flex-shrink: 0;
}

.welcome-image img {
  box-shadow: var(--shadow-sm);
}

.learn-more-link {
  color: var(--brand-red);
  font-weight: 500;
}

@media (max-width: 600px) {
  .welcome-section {
    flex-direction: column;
  }

  .welcome-image {
    order: -1;
    text-align: center;
  }

  .welcome-image img {
    max-width: 250px !important;
  }
}

h1 {
  color: var(--brand-red);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

h2 {
  color: var(--brand-red);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* =============================================
   Message Feed
   ============================================= */
.message-feed-section {
  margin-top: 2rem;
}

.message-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.message-feed-header h2 {
  margin-bottom: 0;
}

.view-all-link {
  color: var(--brand-red);
  font-weight: 500;
}

#messagesFeed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand-red);
  transition: box-shadow var(--transition-fast);
}

.message-card:hover {
  box-shadow: var(--shadow-md);
}

.message-card.message-recap {
  border-left-color: #059669;
}

.message-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.message-type {
  background: var(--brand-red);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.message-recap .message-type {
  background: #059669;
}

.message-date {
  color: var(--text-secondary);
}

.message-pinned-badge {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.message-card.message-pinned {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, var(--bg-white) 100%);
  border: 2px solid #f59e0b;
  border-left-width: 6px;
  border-left-color: #dc2626;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.1);
  position: relative;
}

.message-card.message-pinned::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
}

.message-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.message-title a {
  color: var(--text-primary);
}

.message-title a:hover {
  color: var(--brand-red);
}

.message-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.message-author {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

.feed-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

.feed-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* =============================================
   Footer
   ============================================= */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  margin-top: auto;
}

/* =============================================
   Content Pages
   ============================================= */
.content-page {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.content-page h1 {
  margin-bottom: 0.5rem;
}

.content-page h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.content-page .intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-left: 4px solid var(--brand-red);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.content-page .signature {
  margin-top: 2rem;
  text-align: right;
  color: var(--text-secondary);
}

/* Highlight Cards */
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.highlight-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.highlight-icon {
  color: var(--brand-red);
  margin-bottom: 1rem;
}

.highlight-icon svg {
  stroke: var(--brand-red);
}

.highlight-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.highlight-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Timeline */
.timeline {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-red);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--brand-red);
  border-radius: 50%;
}

.timeline-time {
  font-weight: 700;
  color: var(--brand-red);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  margin: 0;
}

/* About Photo Section */
.about-photo-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.about-photo {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.photo-caption {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .about-photo-section {
    flex-direction: column;
    text-align: center;
  }

  .about-photo-section img {
    margin: 0 auto;
  }
}

.intro-with-image {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.intro-with-image .intro-text {
  flex: 1;
  min-width: 0;
}

.intro-with-image .intro-text .intro {
  margin-top: 0;
}

.intro-with-image .intro-image {
  flex: 0 0 150px;
  width: 150px;
  max-width: 150px;
}

.author-photo {
  width: 150px;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: block;
}

@media (max-width: 600px) {
  .intro-with-image {
    flex-direction: column;
  }

  .intro-with-image .intro-image {
    order: -1;
    width: 120px;
    max-width: 120px;
    flex: 0 0 120px;
    margin: 0 auto 1rem;
  }

  .author-photo {
    width: 120px;
    max-width: 120px;
  }
}

/* =============================================
   Placeholder Pages
   ============================================= */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-soon h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* =============================================
   Mobile Responsive
   ============================================= */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }

  .sidebar-overlay.visible {
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0;
    padding-top: var(--header-height);
  }

  .page-header {
    padding: 1.5rem 1rem;
  }

  .header-logo {
    max-width: 100%;
    max-height: 120px;
  }

  .content-wrapper {
    padding: 1rem;
  }

  section, .card {
    padding: 1.25rem;
  }

  .message-feed-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* Prevent body scroll when sidebar is open on mobile */
body.sidebar-open {
  overflow: hidden;
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* =============================================
   Login Page
   ============================================= */
.login-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.login-container {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand-red);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-red);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-red-dark);
}

.login-help {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =============================================
   Sidebar Auth Section
   ============================================= */
.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.user-name {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

.auth-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  color: var(--sidebar-text);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  transition: background var(--transition-fast);
}

.auth-button:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

/* =============================================
   Admin Section Styling
   ============================================= */
.nav-section-admin .nav-section-header {
  color: #fbbf24;
}

.nav-section-admin .nav-icon svg {
  stroke: #fbbf24;
}

/* =============================================
   Admin Pages
   ============================================= */
.admin-page {
  width: 100%;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.admin-subtitle {
  color: var(--text-secondary);
  margin: 0;
}

.admin-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.filter-checkbox input {
  cursor: pointer;
}

/* Admin Tables */
.table-container {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  min-width: 100%;
  width: max-content;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.875rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

/* Compact columns for boolean badges */
.admin-table .compact {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .center {
  text-align: center;
}

.admin-table .username-cell {
  font-family: monospace;
  font-weight: 500;
}

.admin-table .actions-cell {
  white-space: nowrap;
}

.admin-table .loading,
.admin-table .no-results,
.admin-table .error {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.admin-table .error {
  color: #dc2626;
}

/* Permission Toggle */
.permission-toggle {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fef2f2;
  color: #dc2626;
}

/* Small Buttons */
.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

/* Access Denied */
.access-denied {
  text-align: center;
  padding: 3rem;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.access-denied h2 {
  color: var(--brand-red);
  margin-bottom: 1rem;
}

.access-denied p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  margin: 1rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body .form-group {
  margin-bottom: 1rem;
}

.modal-body .form-group:last-of-type {
  margin-bottom: 0;
}

.modal-body small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body input[type="url"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.modal-body input[type="radio"],
.modal-body input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.modal-body input[type="text"]:focus,
.modal-body input[type="email"]:focus,
.modal-body input[type="password"]:focus,
.modal-body input[type="number"]:focus,
.modal-body input[type="url"]:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #4b5563;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-success {
  background: #16a34a;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #15803d;
}

/* NA Badge */
.badge-na {
  background: #9ca3af;
  color: white;
}

.na-player {
  background: #f9fafb;
}

/* Admin-only accounts */
.badge-admin {
  background: #7c3aed;
  color: white;
}

/* Custom username indicator */
.badge-custom {
  background: #f59e0b;
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
  margin-left: 0.25rem;
  vertical-align: super;
}

.admin-only-player {
  background: #f5f3ff;
  border-left: 3px solid #7c3aed;
}

/* Checkbox label styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Wide Modal */
.modal-wide {
  max-width: 550px;
}

/* Form Rows (side-by-side fields) */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* Inactive users */
.inactive-user {
  opacity: 0.5;
  background: #f3f4f6 !important;
}

.inactive-user:hover {
  opacity: 0.7;
}

/* =============================================
   User Profile Page
   ============================================= */
.profile-page {
  max-width: 700px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-header h1 {
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  color: var(--text-secondary);
  margin: 0;
}

.profile-form {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.profile-section {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section h2 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-red);
  display: inline-block;
}

.profile-section .form-row {
  margin-bottom: 1rem;
}

.profile-section .form-row:last-child {
  margin-bottom: 0;
}

.profile-section .form-group {
  margin-bottom: 1rem;
}

.profile-section input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.profile-section input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.profile-section input:disabled {
  background: #f3f4f6;
  color: var(--text-secondary);
  cursor: not-allowed;
}

.profile-section small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.profile-actions {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.profile-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* User section in sidebar */
.nav-section-user {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.nav-section-user .nav-top {
  padding: 0.75rem 1.25rem;
}

/* =============================================
   Headshot Component
   ============================================= */

/* Base headshot container */
.headshot {
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headshot .initials {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

/* Size variants */
.headshot-small {
  width: 32px;
  height: 32px;
}
.headshot-small .initials {
  font-size: 0.75rem;
}

.headshot-medium {
  width: 48px;
  height: 48px;
}
.headshot-medium .initials {
  font-size: 1rem;
}

.headshot-large {
  width: 80px;
  height: 80px;
}
.headshot-large .initials {
  font-size: 1.5rem;
}

.headshot-xlarge {
  width: 120px;
  height: 120px;
}
.headshot-xlarge .initials {
  font-size: 2rem;
}

/* Admin table thumbnail */
.headshot-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.headshot-cell {
  width: 50px;
  text-align: center;
}

.headshot-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-red);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Upload area in modal */
.headshot-upload-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.current-headshot {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.headshot-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}

.headshot-initials.large {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}

.no-photo {
  color: var(--text-secondary);
  font-style: italic;
}

.headshot-actions {
  margin-top: 0.5rem;
}

/* Profile page headshot */
.profile-headshot {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-headshot .headshot {
  margin: 0 auto;
}

.profile-headshot .text-muted {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Navigation headshot */
.nav-headshot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-red);
  color: white;
  font-weight: 600;
  font-size: 0.5rem;
}

/* Responsive adjustments for admin tables */
@media (max-width: 768px) {
  .admin-table th,
  .admin-table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.85rem;
  }

  .btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .modal-wide {
    max-width: 100%;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
  }

  /* Headshot responsive */
  .headshot-cell {
    width: 40px;
  }

  .headshot-thumb,
  .headshot-initials {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }
}

/* =============================================
   History Page
   ============================================= */
.history-page {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}

.history-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-white);
  flex-wrap: wrap;
  gap: 1rem;
}

.history-controls h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--brand-red);
}

.year-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.year-selector-wrapper label {
  font-weight: 500;
  color: var(--text-secondary);
}

#year-selector {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: var(--bg-white);
  cursor: pointer;
  min-width: 100px;
}

#year-selector:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

/* History Tabs */
.history-tabs {
  display: flex;
  gap: 0;
  background: #e9ecef;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.history-tab {
  padding: 0.875rem 2rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.history-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.5);
}

.history-tab.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
  background: var(--bg-white);
}

/* History Content Panels */
.history-content {
  position: relative;
  background: var(--bg-white);
}

/* Stats iframe - full height */
#stats-frame,
#awards-frame {
  width: 100%;
  height: calc(100vh - 280px);
  min-height: 700px;
  border: none;
  display: block;
}

/* Cards Panel */
.cards-list {
  padding: 1.5rem;
  min-height: calc(100vh - 280px);
  overflow-y: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-group {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
}

.card-group h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  padding-bottom: 0.5rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  background: var(--bg-white);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.card-link:hover {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
  text-decoration: none;
  transform: translateY(-1px);
}

.no-data {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .history-controls {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .history-controls h1 {
    font-size: 1.25rem;
  }

  .history-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .history-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  #stats-frame,
  #awards-frame {
    height: 60vh;
    min-height: 400px;
  }

  .cards-list {
    min-height: 60vh;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Pete's Page - Memorial Styles
   ============================================ */

.pete-page {
  max-width: 900px;
  margin: 0 auto;
}

.pete-hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.pete-hero h1 {
  color: var(--brand-red);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.pete-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pete-hero-image {
  max-width: 350px;
  margin: 0 auto;
}

.pete-hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.pete-hero-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Memorial Disc Letter Section */
.pete-disc-letter {
  margin: 2rem 0;
}

.pete-disc-letter-card {
  background: linear-gradient(135deg, #f5f0e6 0%, #ebe4d4 100%);
  border: 1px solid #d4c9b5;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}

.pete-disc-letter-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pete-disc-letter-card p {
  margin-bottom: 1rem;
}

.pete-disc-letter-closing {
  text-align: center;
  font-style: italic;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}

.pete-disc-letter-signature {
  text-align: right;
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* Memorial Bench Section */
.pete-memorial {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.pete-memorial h2 {
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.pete-memorial-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.pete-memorial-text {
  flex: 1;
  line-height: 1.7;
}

.pete-memorial-text p {
  margin-bottom: 1rem;
}

.pete-rededication-notice {
  background: #fff8e6;
  border: 1px solid #ffd54f;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.pete-rededication-notice h3 {
  color: var(--brand-red);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pete-rededication-notice p {
  margin-bottom: 0.5rem;
}

.pete-rededication-notice p:last-child {
  margin-bottom: 0;
}

.pete-memorial-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 320px;
  flex-shrink: 0;
}

.pete-memorial-photos figure {
  margin: 0;
}

.pete-memorial-photos img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.pete-memorial-photos figcaption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.35rem;
}

/* Photo Gallery */
.pete-gallery {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.pete-gallery h2 {
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.pete-featured-photos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pete-featured-photos figure {
  max-width: 400px;
  margin: 0;
}

.pete-featured-photos img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.pete-featured-photos figcaption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
}

.pete-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.pete-photo-item {
  margin: 0;
}

.pete-photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.pete-photo-item figcaption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
}

.pete-dedication-gif {
  text-align: center;
  margin: 2rem 0;
}

.pete-dedication-gif img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Tribute Section */
.pete-tribute {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.pete-tribute h2 {
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.pete-tribute-card {
  background: var(--bg-light);
  border-left: 4px solid var(--brand-red);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.8;
}

.pete-tribute-card p {
  margin-bottom: 1rem;
}

.pete-tribute-card p:last-of-type {
  margin-bottom: 0;
}

.pete-tribute-signature {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-red);
  margin-top: 1.5rem !important;
}

/* Family Letter Section */
.pete-family-letter-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.pete-family-letter-section h2 {
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.pete-family-letter {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.pete-family-letter img {
  max-width: 100%;
  border-radius: 4px;
}

.pete-letter-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-style: italic;
}

/* Pete's Page Responsive */
@media (max-width: 768px) {
  .pete-hero h1 {
    font-size: 1.5rem;
  }

  .pete-memorial-content {
    flex-direction: column;
  }

  .pete-memorial-photos {
    max-width: 100%;
    order: -1;
    margin-bottom: 1rem;
  }

  .pete-featured-photos {
    flex-direction: column;
    align-items: center;
  }

  .pete-featured-photos figure {
    max-width: 100%;
  }

  .pete-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .pete-tribute-card {
    padding: 1rem 1.25rem;
  }
}

/* =============================================
   Rules Page Styles
   ============================================= */
.rules-page {
  max-width: 900px;
}

.rules-page h1 {
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.rules-tagline {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Core Principles */
.rules-principles {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.rules-principle {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1.05rem;
}

.rules-principle:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rules-principle:first-child {
  padding-top: 0;
}

.rules-principle strong {
  color: var(--brand-red);
}

/* Rules Sections */
.rules-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.rules-section h2 {
  color: var(--brand-red);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-section h2 .section-icon {
  font-size: 1.5rem;
}

/* Gameplay Rules List */
.rules-list {
  list-style: none;
  counter-reset: rules-counter;
  padding: 0;
  margin: 0;
}

.rules-list li {
  counter-increment: rules-counter;
  padding: 0.75rem 0 0.75rem 3rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li::before {
  content: counter(rules-counter);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: var(--brand-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.rules-list li strong {
  color: var(--brand-red-dark);
}

/* Callout Boxes */
.rules-callout {
  background: #fff8e6;
  border: 2px solid #ffd54f;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.rules-callout.hog-round {
  background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
  border-color: #cc9900;
}

.rules-callout h3 {
  color: var(--brand-red);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-callout ul {
  margin: 0;
  padding-left: 1.25rem;
}

.rules-callout li {
  margin-bottom: 0.5rem;
}

.rules-callout li:last-child {
  margin-bottom: 0;
}

/* Quick Reference Grid */
.rules-quick-ref {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.rules-quick-item {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.rules-quick-item strong {
  display: block;
  color: var(--brand-red);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.rules-quick-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Scoring Example */
.rules-example {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.rules-example code {
  background: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--brand-red-dark);
}

/* PDGA Footer Note */
.rules-footer-note {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--sidebar-bg);
  color: white;
  border-radius: 8px;
}

.rules-footer-note a {
  color: #ffd54f;
}

/* Rules Page Responsive */
@media (max-width: 768px) {
  .rules-commandments {
    grid-template-columns: 1fr;
  }

  .rules-tagline {
    font-size: 1.2rem;
  }

  .rules-section {
    padding: 1rem;
  }

  .rules-list li {
    padding-left: 2.5rem;
  }

  .rules-list li::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
}
