/* Vote Page CSS - Solace RSPS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  /* Main Colors */
  --bg-900: #0c0808;
  --bg-800: #150f0f;
  --bg-700: #1e1515;
  --bg-cobble: #160d0d;
  --stone-shadow: 0 2px 16px 0 rgba(0,0,0,0.7);
  /* Accent Colors */
  --cyan-glow: #e63946;
  --turquoise: #c1121f;
  --cyan-dark: #9d0208;
  --cyan-light: #ff6b6b;
  --silver: #c9bfbf;
  --steel: #997a7a;
  --white: #f8fafc;
  /* Gradients */
  --glow-gradient: linear-gradient(90deg, #e63946 0%, #c1121f 100%);
  --stone-gradient: linear-gradient(135deg, rgba(12,8,8,0.80) 0%, rgba(30,21,21,0.80) 100%);
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  /* Spacing */
  --space-md: 0.6rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --container-max-width: 1300px;
  --header-height: 60px;
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
}

/* Reset and Base Styles */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;scroll-behavior:smooth;height:100%;}
body{font-family:var(--font-primary);font-size:0.95rem;line-height:1.5;color:var(--silver);background:var(--stone-gradient),url('/img/background.png')center/cover no-repeat fixed;background-blend-mode:overlay;min-height:100vh;overflow-x:hidden;display:flex;flex-direction:column;}
.main{margin-top:var(--header-height);padding:2rem 0;flex:1 0 auto;}

/* Typography */
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700;line-height:1.15;color:var(--turquoise);margin-bottom:var(--space-md);}
h1{font-size:2.1rem;font-weight:900;background:var(--glow-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 8px #e63946;margin-bottom:var(--space-md);}
h2{font-size:clamp(1.1rem,3vw,1.7rem);font-weight:700;}
h3{font-size:clamp(1rem,2vw,1.2rem);font-weight:600;}
p{margin-bottom:var(--space-md);color:var(--cyan-light);line-height:1.5;}

/* Layout Components */
.container{max-width:var(--container-max-width);margin:0 auto;padding:0 clamp(1rem,4vw,2rem);}

/* Section Headers */
.section-header{text-align:center;margin-bottom:3rem;}
.section-subtitle{color:var(--cyan-light);font-size:1.1rem;}

/* Vote Container */
.vote-container{max-width:800px;margin:0 auto;}

/* Vote Form */
.vote-username-form {
  background: rgba(21,15,15,0.8);
  border-radius: 1rem;
  box-shadow: var(--stone-shadow);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border: 1px solid var(--steel);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease;
}

.vote-username-form:hover {
  border-color: rgba(230,57,70,0.3);
}

.vote-username-form h2 {
  color: var(--turquoise);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.vote-username-form p {
  margin-bottom: 2rem;
  color: var(--cyan-light);
  font-size: 1rem;
  line-height: 1.6;
}

.vote-input {
  width: 100%;
  max-width: 320px;
  padding: 1em 1.2em;
  border-radius: 0.8rem;
  border: 1.5px solid var(--steel);
  background: var(--bg-700);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
}

.vote-input:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2), 0 0 12px 0 rgba(230,57,70,0.1);
  background: var(--bg-800);
}

.vote-input::placeholder {
  color: var(--steel);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8em 2.2em;
  border-radius: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--glow-gradient);
  color: var(--bg-900);
  box-shadow: 0 0 16px 2px rgba(230,57,70,0.25);
  border: 1px solid rgba(230,57,70,0.3);
}

.btn-primary:hover {
  background: var(--turquoise);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px 4px rgba(230,57,70,0.35);
  border-color: var(--turquoise);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px 2px rgba(230,57,70,0.25);
}

/* Vote Sites */
.vote-sites{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;}
.vote-site{background:var(--bg-800);border-radius:0.5rem;box-shadow:var(--stone-shadow);padding:1.5rem;transition:250ms;border:1px solid var(--steel);}
.vote-site:hover{box-shadow:0 4px 24px 0 rgba(0,0,0,0.8), 0 0 20px 0 rgba(230,57,70,0.12);border-color:var(--turquoise);}
.vote-site.disabled{opacity:0.6;cursor:not-allowed;}
.vote-site.disabled:hover{border-color:var(--steel);}
.vote-site-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;}
.vote-site-name{font-size:1.1rem;font-weight:700;color:var(--turquoise);text-decoration:none;}
.vote-site-status{font-size:0.9rem;padding:0.2em 0.7em;border-radius:0.3rem;font-weight:600;text-decoration:none;}
.vote-site-status.available{background:var(--success);color:var(--bg-900);animation:pulse-available 1.5s infinite alternate;box-shadow:0 0 8px 0 rgba(16,185,129,0.3);}
.vote-site-status.cooldown{background:var(--warning);color:var(--bg-900);}
.vote-site-status.unavailable{background:var(--error);color:var(--white);}
.vote-site-description{color:var(--cyan-light);margin-bottom:1rem;font-size:0.95rem;}
.vote-site-reward{color:var(--turquoise);font-weight:600;margin-bottom:1rem;}
.vote-site-button{width:100%;padding:0.7em;border-radius:0.5rem;font-weight:700;text-decoration:none;text-align:center;transition:150ms;display:block;}
.vote-site-button.available{background:var(--glow-gradient);color:var(--bg-900);}
.vote-site-button.available:hover{background:var(--turquoise);transform:translateY(-1px);box-shadow:0 0 20px 4px rgba(230,57,70,0.35);}
.vote-site-button.disabled{background:var(--bg-700);color:var(--steel);cursor:not-allowed;}

/* Grid Layout */
.grid{display:grid;gap:2rem;}
.grid-3{grid-template-columns:repeat(3,1fr);}

/* Responsive Design */
@media (max-width:768px){
  .vote-sites{grid-template-columns:1fr;}
  .vote-username-form{padding:1.5rem;}
  .vote-input{max-width:100%;}
  .grid-3{grid-template-columns:1fr;}
}

/* Animated Pulse for Available Status */
@keyframes pulse-available {
  0% { box-shadow: 0 0 8px 0 rgba(16,185,129,0.3); }
  100% { box-shadow: 0 0 16px 4px rgba(16,185,129,0.5); }
}

/* Vote Site Icon */
.vote-site-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.7em;
  vertical-align: middle;
  display: inline-block;
}

/* Button and Input Enhancements */
.btn-primary, .vote-site-button.available {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover, .vote-site-button.available:hover {
  background: var(--turquoise);
  transform: translateY(-1px);
  box-shadow: 0 0 20px 4px rgba(230,57,70,0.35);
}
.vote-input:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.2), 0 0 8px 0 rgba(230,57,70,0.12);
}

/* Loading Spinner */
.vote-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.vote-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--bg-700);
  border-top: 4px solid var(--turquoise);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Feedback Message */
.vote-message {
  margin: 1.2em 0;
  padding: 1em 1.5em;
  border-radius: 0.5em;
  font-weight: 600;
  font-size: 1.05em;
  text-align: center;
}
.vote-message.success {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1.5px solid var(--success);
}
.vote-message.error {
  background: rgba(239,68,68,0.12);
  color: var(--error);
  border: 1.5px solid var(--error);
}

/* Boxed container for vote page */
.vote-box {
  background: var(--bg-800);
  border-radius: 1.2rem;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.7);
  padding: 2.5rem 2rem 2.5rem 2rem;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vote-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.vote-form-section {
  margin-bottom: 2.5rem;
}

/* Vote Site Card Modernization */
.vote-sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}
.vote-site {
  background: rgba(21,15,15,0.92);
  border-radius: 0.8rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.7);
  border: 1.5px solid var(--steel);
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.25s, border-color 0.25s, background 0.25s;
  min-height: 72px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(2px);
}
.vote-site:hover {
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.8), 0 0 20px 0 rgba(230,57,70,0.12);
  border-color: var(--turquoise);
  background: rgba(21,15,15,0.98);
}
.vote-site.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.vote-site.disabled:hover {
  border-color: var(--steel);
  background: rgba(21,15,15,0.92);
}
.vote-site-icon {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  background: var(--bg-700);
  object-fit: contain;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
}
.vote-site-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--turquoise);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
}
.vote-site-status {
  font-size: 0.9rem;
  padding: 0.4em 1.2em;
  border-radius: 0.6em;
  font-weight: 700;
  margin-left: 1.2em;
  white-space: nowrap;
  box-shadow: none;
  background: var(--bg-700);
  color: var(--cyan-light);
  border: 1px solid var(--steel);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  text-decoration: none;
}

.vote-site-status.available {
  background: var(--success);
  color: var(--bg-900);
  border-color: var(--success);
  animation: pulse-available 1.5s infinite alternate;
  box-shadow: 0 0 8px 0 rgba(16,185,129,0.3);
}

.vote-site-status.cooldown {
  background: var(--warning);
  color: var(--bg-900);
  border-color: var(--warning);
}

.vote-site-status.unavailable {
  background: var(--error);
  color: var(--white);
  border-color: var(--error);
}

/* Username Section Styling */
.vote-name-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(21,15,15,0.6);
  border-radius: 1rem;
  border: 1px solid var(--steel);
  backdrop-filter: blur(4px);
}

.vote-name-section h2 {
  color: var(--turquoise);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Secondary Button Styling */
.btn-secondary {
  background: var(--bg-700);
  color: var(--cyan-light);
  border: 1.5px solid var(--steel);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-800);
  color: var(--turquoise);
  border-color: var(--turquoise);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.4), 0 0 12px 0 rgba(230,57,70,0.2);
}

/* Vote Site Section Styling */
.vote-site-section {
  margin-top: 2rem;
}

.vote-site-section h3 {
  color: var(--turquoise);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

/* Responsive grid for vote sites */
@media (max-width: 900px) {
  .vote-box { 
    padding: 1.5rem 1rem; 
    margin: 2rem auto 0 auto;
  }
  .vote-sites { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  .vote-name-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  .vote-username-form {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .vote-site { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0.7em; 
    padding: 1.1rem 0.7rem; 
    min-height: auto;
  }
  .vote-site-status { 
    margin-left: 0; 
    align-self: flex-end;
  }
  .vote-site-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .vote-input {
    max-width: 100%;
  }
  .btn {
    padding: 0.7em 1.8em;
    font-size: 0.95rem;
  }
  .vote-name-section h2 {
    font-size: 1.2rem;
  }
  .vote-site-section h3 {
    font-size: 1.1rem;
  }
}

/* Spacing for section header */
.section-header { margin-bottom: 2.5rem; }

.vote-site,
.vote-site:visited,
.vote-site:active,
.vote-site:focus,
.vote-site:hover {
  text-decoration: none;
  color: inherit;
} 
/* === FLUID HEADINGS & 4K SCALING === */
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem) !important; }
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 1.2rem; }
  .section { padding: 1.5rem 0; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
}
@media (min-width: 1920px) {
  :root { --container-max-width: 1600px; }
  html { font-size: 18px; }
}
@media (min-width: 2560px) {
  :root { --container-max-width: 2100px; }
  html { font-size: 20px; }
}
