/* ============================================
   ELECTIONS PAGE STYLES
   Note: Buttons, cards, and animations are loaded from /assets/
   Colors are injected via banner.js from colors.json
============================================ */

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

body {
  font-family: 'Exo 2', sans-serif;
  color: var(--WHITE);
  overflow-x: hidden;
  background: transparent;
  line-height: 1.6;
}

/* Fade animation - defined here to prevent flash before shared CSS loads */
.fade-slide-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-slide-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Layout & Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Title Styles */
.header-bar {
  text-align: center;
  margin: 3rem 0 2rem;
}

.cosmic-title {
  font-size: 2.5rem;
  color: var(--BLUE);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--TEXT);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Content Wrapper */
.content-wrapper {
  margin: 2rem 0;
}

/* Article Content Styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  color: var(--BLUE);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--CARD_BG);
  padding-bottom: 0.5rem;
}

.article-section h3 {
  color: var(--HIGHLIGHT);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
}

.article-section h4 {
  color: var(--BLUE_ACCENT);
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}

.article-section p {
  color: var(--TEXT);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.article-section ul {
  background: var(--CARD_BG);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  color: var(--TEXT);
}

.article-section li {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

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

/* Info Boxes */
.info-box {
  background: var(--CARD_BG);
  border-left: 4px solid var(--HIGHLIGHT);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--HIGHLIGHT), var(--BLUE));
}

.info-box h4 {
  color: var(--HIGHLIGHT);
  margin-bottom: 0.5rem;
}

.warning-box {
  background: var(--CARD_BG);
  border-left: 4px solid var(--RED);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.warning-box h4 {
  color: var(--RED);
  margin-bottom: 0.5rem;
}

/* Info Grid for President section */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--CARD_BG);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--BLUE_ACCENT);
}

.info-card h4 {
  color: var(--BLUE);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  color: var(--TEXT);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Code Blocks */
.code-section {
  margin: 2rem 0;
}

.code-section h3 {
  color: var(--BLUE);
  margin-bottom: 1rem;
}

.code-section pre {
  background: var(--DARK);
  border: 1px solid var(--BLUE_ACCENT);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

.code-section code {
  color: var(--BLUE);
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-item {
  background: var(--CARD_BG);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--BLUE_ACCENT);
}

.faq-item h4 {
  color: var(--BLUE);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item p {
  color: var(--TEXT);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.action-btn.primary {
  background: var(--BLUE);
  color: var(--DARK);
}

.action-btn.primary:hover {
  background: var(--BLUE_ACCENT);
  transform: translateY(-1px);
}

.action-btn.secondary {
  background: transparent;
  color: var(--BLUE);
  border-color: var(--BLUE);
}

.action-btn.secondary:hover {
  background: var(--BLUE);
  color: var(--DARK);
}

/* Footer */
.footer {
  text-align: center;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--CARD_BG);
}

.last-updated {
  color: var(--TEXT);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--BLUE_ACCENT);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--HIGHLIGHT);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cosmic-title {
    font-size: 2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .faq-item h4 {
    font-size: 1rem;
  }
  
  .code-section pre {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .cosmic-title {
    font-size: 1.8rem;
  }
  
  .info-card,
  .info-box,
  .warning-box,
  .faq-item {
    padding: 0.5rem;
  }
}
