/* ===================================================================
 * AEX Killfeed Home Page Styles
 * Extracted from index.php inline styles for better organization
 * ===================================================================*/

/* Ultimate Home Page - Best of All Worlds */

/* Epic Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--surface-1) 50%, var(--accent-2) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--accent);
}
.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.solution-headline {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-strong);
  margin: 1.5rem 0;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Live Stats Bar */
.stats-section {
  background: var(--surface-1);
  padding: 2rem;
  border-bottom: 3px solid var(--accent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Default: 4x1 layout */
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.stat-item {
  padding: 1rem;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border-weak);
  transition: transform 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-2px);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-strong); /* Changed from var(--accent) for better readability */
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Dashboard Section */
.dashboard-section {
  padding: 0rem 2rem 3rem 2rem;
  background: var(--surface-2);
  border-bottom: 3px solid var(--accent);
}
.dashboard-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Default: 4x1 layout for dashboard panels */
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.dashboard-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-weak);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  min-width: 300px;
  max-width: 300px;
}
.dashboard-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.panel-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-container {
  position: relative;
  height: 200px;
  margin-top: 1rem;
}

/* Realm Activity Panel */
.realm-activity {
  /* min-width: 340px;
  max-width: 340px; */
  padding: 1.5rem .5rem 1.5rem 1.5rem;
}

/* Top players and live feed panels */
.top-players, .live-feed {
  max-height: 280px;
}
.player-list, .kills-list {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
}
.player-item, .kill-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-weak);
  font-size: 0.9rem;
}
.player-item:hover, .kill-item:hover {
  background: var(--border-weak);
}
.player-rank {
  font-weight: 700;
  color: var(--accent-1);
  font-family: var(--font-mono);
  width: 30px;
}
.kill-attacker {
  color: var(--success);
  font-weight: 600;
}
.kill-victim {
  color: var(--danger);
  font-weight: 600;
}

/* Features Section */
.features-section {
  padding: 0rem 2rem 3rem 2rem;
  background: linear-gradient(to bottom, var(--surface-1) 10%, var(--surface-2) 130%);
  border-bottom: 3px solid var(--accent);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
  margin-bottom: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Single row layout as requested */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border-weak);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-strong);
}
.feature-description {
  color: var(--text);
  line-height: 1.6;
}

/* Before/After Comparison */
.comparison-section {
  padding: 0rem 2rem 3rem 2rem;
  background: linear-gradient(to bottom, var(--surface-2) -30%, var(--surface-1) 90%);
  border-bottom: 3px solid var(--accent);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}
.before-card {
  background: var(--surface-1);
  border: 3px solid var(--danger);
  border-radius: 12px;
  padding: 1.5rem; /* Reduced padding to fix dead space */
}
.after-card {
  background: var(--surface-1);
  border: 3px solid var(--success);
  border-radius: 12px;
  padding: 1.5rem; /* Reduced padding to fix dead space */
}
.comparison-header {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem; /* Reduced margin */
  text-transform: uppercase;
}
.before-header {
  color: var(--danger);
}
.after-header {
  color: var(--success);
}
.comparison-list {
  list-style: none;
  padding: 0;
}
.comparison-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-weak);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  /* background: linear-gradient(135deg, var(--accent-2) 0%, var(--surface-1) 50%, var(--accent-2) 100%); */
  padding: 0rem 2rem 1rem 2rem;
  text-align: center;
  color: white;
}
.cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.cta-buttons-container {
  margin: 2rem 0 .5rem; /* Reduced bottom margin to eliminate dead space */
}
.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  padding: 0 1rem;
  box-sizing: border-box;
  gap: clamp(2rem, 8vw, 4rem);
}

/* Ensure buttons stay close to center by constraining their positioning */
.cta-buttons .button-group:first-child {
  order: 1; /* Left button */
}

.cta-buttons .button-group:last-child {
  order: 2; /* Right button */
}

/* Button groups positioned by flexbox order */

/* Button groups are simple vertical flex containers */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  min-width: 0; /* Allow shrinking */
  flex-shrink: 1; /* Allow shrinking when space is tight */
  max-width: 100%; /* Don't exceed container width */
}

/* Button groups now just need to fit their content */
.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

/* Button groups no longer need explicit positioning - flexbox handles it */


.cta-join-button {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 2rem; /* Reduced bottom margin to eliminate dead space */
}
.mega-cta {
  background: linear-gradient(45deg, #21982dff, #178422ff);
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: max-content;
  max-width: 100%; /* Prevent buttons from going off-screen */
}
.mega-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* Button icons - slightly taller than text for nice visual balance */
.button-icon {
  height: 1.2em; /* Slightly taller than the text */
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
  filter: brightness(1.1); /* Slight brightness boost to make them pop */
}
.secondary-cta {
  /* background: transparent; */
  background: var(--surface-1);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1.2rem 2rem;
  border: 3px solid white;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;  
  vertical-align: middle;
}
.secondary-cta.aex-logo .secondary-cta.aex-text{
  vertical-align: middle;
}

.secondary-cta:hover {
  background: white;
  color: var(--accent-2);
  transform: translateY(-2px);
}

/* Join ArmorEx Button Styling */
.join-armorex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface-1);
  color: white; /* JOIN text always starts white */
  font-size: 2.2rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border: 3px solid var(--surface-1);
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  min-height: 60px;
}

.join-armorex-btn:hover {
  background: white;
  color: black; /* JOIN text always goes to black on hover, regardless of theme */
  /* transform: translateY(-2px); */
  transform: scale(1.05);
}

.aex-logo-img, .aex-text-img {
  transition: opacity 0.3s ease;
  display: inline-block;
  vertical-align: middle;
}

.aex-logo-img {
  height: 36px;
  width: auto;
}

.aex-text-img {
  height: 36px;
  width: auto;
  transform: translateY(4px); /* Move down 4px - increase this value to move further down */
  /* Alternative options if you need more control:
     position: relative;
     top: 10px;
     OR
     margin-top: 10px;
  */
}

/* SVG hover effect using CSS filter to invert colors */
.join-armorex-btn:hover .aex-logo-img,
.join-armorex-btn:hover .aex-text-img {
  filter: invert(1) brightness(0) saturate(100%);
}

/* Download Section and File Hash Layout */
.file-hash-under-download {
  margin: .5rem 1rem;
  padding: 0.1rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0.8;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: white;
  text-align: center;
  white-space: normal; /* Allow normal wrapping */
  overflow-wrap: break-word;
  word-break: normal; /* Don't force breaks in the middle of hash */
  width: fit-content; /* Size to content but respect max-width */
  max-width: 100%; /* Never wider than the button group */
  box-sizing: border-box;
  line-height: 1.4;
}

/* Disclaimer class for multi-line text under buttons */
.disclaimer-under-button {
  margin: .5rem 0rem;
  padding: 0.1rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0.8;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: white;
  text-align: center;
  white-space: normal; /* Allow text to wrap properly */
  overflow-wrap: break-word;
  word-break: normal;
  /* width: max-content;  */
  box-sizing: border-box; /* Include padding in width calculation */
  line-height: 1.4; /* Better spacing for multi-line text */
}.cta-checkmarks {
  margin: 1rem 0rem; /* Tight spacing as requested */
  padding-bottom: 1rem;
  opacity: 0.9;
  font-size: 1.1rem;
  text-align: center;
  clear: both; /* Ensure it clears any floated elements */
}


/* Fine print section */
.fine-print {
  background: var(--surface-1);
  padding: 2rem;
  text-align: center;
  border-top: 2px solid var(--border-weak);
}
.fine-print-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
}
.fine-print a {
  color: var(--accent);
  font-weight: 600;
}

/* WordPress-style Donate Button - matches your main site design */
.donate-button {
  display: inline-block;
  background: linear-gradient(34deg, rgb(0,0,59) 0%, rgb(2,3,129) 100%);
  color: white;
  font-family: var(--font-sans); /* Matches Raleway from your site */
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 1rem 0;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 2px 8px rgba(2, 3, 129, 0.3);
}

.donate-button:hover {
  background: linear-gradient(34deg, rgb(2,3,129) 0%, rgb(40,116,252) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 3, 129, 0.4);
  color: white;
}

.donate-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(2, 3, 129, 0.3);
}

/* Theme-specific donate button styles - DISABLED to keep consistent across all themes */
/* 
html[data-theme="retro90s"] .donate-button {
  background: linear-gradient(45deg, #ff00ff, #00ffff) !important;
  border: 2px dashed #ffff00 !important;
  text-shadow: 1px 1px 0px #000000 !important;
  animation: blink90s 1.2s step-end infinite;
}

html[data-theme="retro90s"] .donate-button:hover {
  background: linear-gradient(45deg, #00ffff, #ff00ff) !important;
  animation: none !important;
  transform: rotate(-2deg) scale(1.05) !important;
}

html[data-theme="terminal"] .donate-button {
  background: #000000 !important;
  border: 1px solid var(--text-strong) !important;
  color: var(--text-strong) !important;
  font-family: var(--font-mono) !important;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important;
}

html[data-theme="terminal"] .donate-button:hover {
  background: var(--text-strong) !important;
  color: #000000 !important;
  box-shadow: 0 0 20px var(--text-strong) !important;
}
*/

/* ===================================================================
 * MOBILE RESPONSIVENESS FOR HOME PAGE
 * ===================================================================*/

/* Mobile responsiveness */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout for medium-large screens */
    gap: 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile layout - flexbox will naturally wrap, just adjust gap */
@media (max-width: 400px) {
  .cta-buttons {
    gap: 2rem; /* Smaller gap when stacked */
  }
}

@media (max-width: 900px) {
  .solution-headline {
    font-size: 2.8rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep 2x2 layout for medium screens */
    gap: 1rem;
  }
  .cta-join-button {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  /* Stats grid: 2x2 layout for medium screens */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mobile responsive - button groups already center everything properly */
  .file-hash-under-download {
    margin: 0rem auto 1rem; /* Center it normally */
    min-width: unset; /* Remove min-width constraint on mobile */
    max-width: 90vw; /* Don't let it exceed viewport width */
    white-space: normal; /* Allow wrapping on small screens */
    word-break: break-all; /* Break long hashes on mobile if needed */
  }
  .cta-checkmarks {
    margin-top: 2rem; /* Reduce margin since layout is more compact */
  }
}
@media (max-width: 600px) {
  /* Dashboard grid: 1x4 layout for small screens */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  /* Stats grid: 1x4 layout for small screens */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .solution-headline {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
}