/* ==========================================================================
   Color Palette Variables - Wired Magazine Style
   ========================================================================== */
:root {
  --primary: #000000;        /* Wired Black */
  --secondary: #FF0000;      /* Wired Red accent */
  --neutral-900: #000000;    /* Pure black for text */
  --neutral-700: #333333;    /* Dark gray */
  --neutral-500: #666666;    /* Medium gray */
  --neutral-300: #CCCCCC;    /* Light gray */
  --surface: #FFFFFF;       /* Pure white */
  --background: #FAFAFA;     /* Off-white background */
  --accent: #FF0000;         /* Wired red */
  --success: #00AA00;        /* Green */
  --info: #0066CC;           /* Blue */
  --warning: #FF6600;        /* Orange */
}

/* ==========================================================================
   Base Styles - Wired Typography
   ========================================================================== */
html, body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: var(--background);
  color: var(--neutral-900);
  line-height: 1.6;
  font-size: 1rem;
}

/* Wired-style headings - bold, sans-serif */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 { 
  font-size: 2.5rem;   /* 40px - Wired's large headlines */
  font-weight: 900;
  line-height: 1.1;
}

h2 { 
  font-size: 2rem;     /* 32px */
  font-weight: 800;
}

h3 { 
  font-size: 1.5rem;   /* 24px */
  font-weight: 700;
}

h4 { 
  font-size: 1.25rem;  /* 20px */
  font-weight: 700;
}

h5 { 
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}

h6 { 
  font-size: 1rem;     /* 16px */
  font-weight: 600;
}

ul,
ol {
  margin: 1rem 0 1.5rem 2rem;
  font-size: 1.1rem;
}

ul {
  list-style-type: disc;
  list-style-position: outside;
}

ol {
  list-style-type: decimal;
  list-style-position: outside;
}

/* ==========================================================================
   Navigation & Branding - Wired Style
   ========================================================================== */
.brand-logo {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1px;
  color: var(--neutral-900) !important;
  text-transform: uppercase;
}

.nav-wrapper {
  background-color: var(--surface) !important;
  border-bottom: 1px solid var(--primary);
  padding: 0 0;
}

/* Wired-style navigation links */
nav a {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 0.65rem;
  padding: 0.15rem 0.3rem;
}

/* ==========================================================================
   Cards & Components - Magazine Layout
   ========================================================================== */
.card {
  background-color: var(--surface);
  border: 1px solid var(--neutral-300);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-title a {
  text-decoration: none;
  color: var(--neutral-900);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */



.btn-primary { 
  background-color: var(--primary) !important; 
  color: var(--surface) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--surface) !important;
  color: var(--primary) !important;
}

.btn-secondary { 
  background-color: var(--secondary) !important; 
  color: var(--surface) !important;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-accent { 
  background-color: var(--accent) !important; 
  color: var(--surface) !important; 
  font-weight: 600;
  text-transform: uppercase;
}

.btn-success { background-color: var(--success) !important; }
.btn-info { background-color: var(--info) !important; }
.btn-warning { 
  background-color: var(--warning) !important; 
  color: var(--surface) !important; 
}

/* ==========================================================================
   Admin Dashboard - Magazine Grid
   ========================================================================== */
.admin-card {
  background-color: var(--primary) !important;
  color: var(--surface) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.admin-card:hover {
  background-color: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
/* Text Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-neutral-900 { color: var(--neutral-900) !important; }
.text-neutral-700 { color: var(--neutral-700) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--warning) !important; }

/* Background Colors */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-background { background-color: var(--background) !important; }

/* Layout Utilities */
.chips .chip { 
  margin-right: 6px; 
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-block { 
  margin-bottom: 2rem; 
  border-bottom: 1px solid var(--neutral-300);
  padding-bottom: 1rem;
}

/* Standard blue links for articles and sections */
.article-body a,
.section-block a,
.card a {
  color: #0066CC !important;
  text-decoration: none;
}

.article-body a:hover,
.section-block a:hover,
.card a:hover {
  color: #004499 !important;
  text-decoration: underline;
}

.article-body a:visited,
.section-block a:visited,
.card a:visited {
  color: #6633CC !important;
}

/* Ensure buttons have white text for visibility */
.article-body .btn,
.article-body .deep-purple,
.section-block .btn,
.section-block .deep-purple,
.card .btn,
.card .deep-purple {
  color: white !important;
}

.article-body .btn:hover,
.article-body .deep-purple:hover,
.section-block .btn:hover,
.section-block .deep-purple:hover,
.card .btn:hover,
.card .deep-purple:hover {
  color: white !important;
}


/* ==========================================================================
   Typography & Article Content
   ========================================================================== */
.article-body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--neutral-900);
  max-width: 80ch; /* Optimal reading width */
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.article-body p {
  margin: 1.25rem 0;
  text-align: justify;
}

/* Article headings */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body h1 { font-size: 2.25rem; }   /* 36px */
.article-body h2 { font-size: 1.75rem; }   /* 28px */
.article-body h3 { font-size: 1.5rem; }   /* 24px */
.article-body h4 { font-size: 1.25rem; }  /* 20px */
.article-body h5 { font-size: 1.125rem; } /* 18px */
.article-body h6 { font-size: 1rem; }     /* 16px */

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 2rem;
  font-size: 1rem;
}

.article-body ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 1rem !important;
}

.article-body ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
  padding-left: 1rem !important;
}

/* Override Materialize CSS for article content */
.article-body ul li {
  list-style-type: disc !important;
  display: list-item !important;
}

.article-body ol li {
  list-style-type: decimal !important;
  display: list-item !important;
}

.article-body blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--neutral-700);
  background: var(--background);
  padding: 1.5rem;
}

.article-body code {
  background: var(--background);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid var(--neutral-300);
}

.article-body pre {
  background: var(--neutral-900);
  color: var(--surface);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Bold text styling */
.article-body strong,
.article-body b {
  font-weight: 700 !important;
  color: var(--neutral-900) !important;
}

.article-body em,
.article-body i {
  font-style: italic;
  color: var(--neutral-700);
}

/* Wired-style lead paragraphs */
.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 1.5rem 0;
  font-style: italic;
}

/* ==========================================================================
   Links & Interactive Elements
   ========================================================================== */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

a[href^="http"]:after {
  content: " ↗";
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.input-field input:focus + label,
.input-field textarea:focus + label {
  color: var(--primary) !important;
  font-weight: 600;
}

.input-field input:focus,
.input-field textarea:focus {
  border-bottom: 2px solid var(--primary) !important;
  box-shadow: 0 1px 0 0 var(--primary) !important;
}

/* Wired-style form inputs */
input, textarea, select {
  font-family: 'Arial', 'Helvetica', sans-serif;
  font-weight: 500;
}

/* ==========================================================================
   Magazine Layout Helpers
   ========================================================================== */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.magazine-feature {
  grid-column: span 2;
  background: var(--surface);
  padding: 2rem;
  border: 2px solid var(--primary);
}

.magazine-sidebar {
  background: var(--background);
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
}

/* Wired-style pull quotes */
.pull-quote {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--secondary);
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  border-top: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/* Footer styling */
.page-footer {
  font-size: 0.85rem;
}

.page-footer p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-copyright {
  font-size: 0.8rem;
}