:root {
  --primary-yellow: #ffc107;
  --twitch-purple: #6441a5;
  --twitch-purple-dark: #2a1b47;
  --gradient-dark: linear-gradient(145deg, var(--twitch-purple-dark), #0a0a0a);
  --premium-shadow: 0 8px 28px -6px rgba(24, 39, 75, 0.12),
                    0 18px 88px -4px rgba(24, 39, 75, 0.14);
  --premium-glow: 0 0 20px rgba(100, 65, 165, 0.15);
  --card-hover-transform: translateY(-8px) scale(1.01);
  --font-headlines: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
}

/* Premium Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header {
  background-color: var(--twitch-purple);
}

.site-header .navbar-nav .nav-link {
  color: white !important;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffc107;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 800;
}

html, body {
  height: 100%;
  margin: 0; 
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: var(--font-body);
  font-weight: 400;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.flex-fill {
  flex: 1;
}

footer {
  flex-shrink: 0;
  background: #0a0a0a;
  color: #ffffffcc
}
#about, #login {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.premium-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--premium-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--premium-shadow), var(--premium-glow);
}

.gradient-bg {
  background: var(--gradient-dark);
}


.floating-element {
  animation: float 6s ease-in-out infinite;
}

.btn-premium {
  background: var(--twitch-purple);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(100, 65, 165, 0.45);
  color: white;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: 0.8s;
  opacity: 0;
}

.btn-premium:hover::after {
  left: 100%;
  opacity: 1;
}

section {
  padding: 60px 0;
}

#hero {
  padding: 100px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  padding: 60px 0;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.notification-preview {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Base reveal styles */
.reveal-fade-up,
.reveal-fade-left,
.reveal-fade-right {
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-fade-up {
  transform: translateY(30px);
}

.reveal-fade-left {
  transform: translateX(-30px);
}

.reveal-fade-right {
  transform: translateX(30px);
}

/* Visible state */
.reveal-fade-up.is-visible,
.reveal-fade-left.is-visible,
.reveal-fade-right.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(0);
}

/* Add animation delay for sequential animations */
.reveal-fade-up:nth-child(1) { transition-delay: 0.1s; }
.reveal-fade-up:nth-child(2) { transition-delay: 0.2s; }
.reveal-fade-up:nth-child(3) { transition-delay: 0.3s; }
.reveal-fade-up:nth-child(4) { transition-delay: 0.4s; }

/* Premium Accordion Styles */
.premium-accordion .accordion-item {
  border: 2px solid transparent;
  background: white;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.premium-accordion .accordion-item.active {
  border-color: var(--twitch-purple);
  background: rgba(100, 65, 165, 0.02);
  box-shadow: 0 4px 20px rgba(100, 65, 165, 0.15);
}

.premium-accordion .accordion-button {
  display: flex;
  align-items: center;
  position: relative;
  border: none;
  border-radius: 12px !important;
  padding: 1.5rem;
  font-weight: 500;
  color: #2d2d2d;
  background: transparent;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.premium-accordion .accordion-button:not(.collapsed) {
  color: var(--twitch-purple);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

/* Remove focus outline */
.premium-accordion .accordion-button:focus {
  box-shadow: none;
  outline: none;
  border-color: transparent;
}

.premium-accordion .accordion-button::before {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #6441A5;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.premium-accordion .accordion-button:not(.collapsed)::before {
  content: '\f106';
  transform: rotate(90deg);
}

.premium-accordion .accordion-body {
  padding: 1.5rem;
  color: #343a40;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headlines);
}

/* Main headline styles */
.display-4, .display-5 {
  font-family: var(--font-headlines);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Subheadlines */
.lead {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Badge text */
.badge {
  background-color: var(--twitch-purple);
  color: white;
  margin-bottom: 1rem;
  padding: 0.3rem 1rem !important;
  font-family: var(--font-body);
  font-weight: 500 !important;
  letter-spacing: 0.05em;
}

/* FAQ Accordion */
.premium-accordion .accordion-button {
  font-family: var(--font-body);
  font-weight: 500;
}

.premium-accordion .accordion-body {
  font-family: var(--font-body);
  font-weight: 400;
}

.neon-effect-red {
  position: relative;
  box-shadow: 0 0 3px rgba(255, 0, 0, 0.3), 0 0 5px rgba(255, 0, 0, 0.5), 0 0 8px rgba(255, 0, 0, 0.7);
  transition: transform 0.3s ease;
}

.neon-effect-green {
  position: relative;
  box-shadow: 0 0 3px rgba(255, 0, 0, 0.3), 0 0 5px rgba(255, 0, 0, 0.5), 0 0 8px rgba(255, 0, 0, 0.7);
  transition: transform 0.3s ease;
}


/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .premium-card {
    margin: 1rem;
  }
  .accordion-header .accordion-button {
    font-size: 1.5rem; /* Adjust this value as needed */
  }
}

/* Form styling */
/* ------------ */

.premium-form {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(100, 65, 165, 0.2);
  box-shadow: var(--premium-shadow);
  max-width: 400px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-form:hover {
  box-shadow: var(--premium-shadow), var(--premium-glow);
}

/* Navigation Cards */
.premium-form.h-100 {
  max-width: 100%;
}

/* Larger buttons in navigation */
.premium-form .btn-premium.btn-lg {
  padding: 14px 40px;
}

.premium-input {
  background: #fafafa; /* Slightly off-white for contrast */
  border: 1px solid rgba(100, 65, 165, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.premium-input:focus {
  border-color: var(--twitch-purple);
  box-shadow: 0 0 10px rgba(100, 65, 165, 0.3);
  outline: none;
}

.premium-input.is-invalid {
  border-color: #dc3545;
}


/* Custom Checkbox */
.premium-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--twitch-purple);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.premium-checkbox:checked::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--twitch-purple);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

.premium-link {
  color: var(--twitch-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.premium-link:hover {
  color: var(--twitch-purple-dark);
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .col-md-5 {
    width: 100%;
  }
  .premium-form .btn-premium.btn-lg {
    padding: 12px 30px;
  }
}

/* Flash Messages  */
/* --------------- */

.flash-container {
  max-width: 600px;
  margin: 1rem auto;
  padding: 0 1rem;
  background: none;
}


/* Select Games Page  */
/* --------------- */

/* Select Games Section */
#select-games .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Premium Section Wrapper */
.premium-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(100, 65, 165, 0.2);
  box-shadow: var(--premium-shadow);
  padding: 2rem;
  max-width: 100%;
}

/* Game Cards (Base Styles) */
.game-card {
  border: 1px solid rgba(100, 65, 165, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Subscribed Game Cards */
.game-card-subscribed {
  width: 180px;
}

/* Hover Effect */
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Selected State */
.game-card.selected {
  border-color: var(--twitch-purple);
  background-color: rgba(100, 65, 165, 0.05);
}

/* Subscribed Games Row */
#selected-games {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Unsubscribed Games Container */
#game-grid {
  gap: 1rem;
  justify-content: center;
}

/* Game Name Text */
.game-card h5 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  flex-grow: 1;
}

/* Remove Margin Bottom for Unsubscribed Cards */
#game-grid .game-card h5 {
  margin-bottom: 0; /* Override for unsubscribed cards */
}

/* Badge for Subscribed */
.badge-subscribed {
  background: var(--twitch-purple);
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  align-self: center;
}

/* Search Input */
.premium-input {
  background: #fafafa;
  border: 1px solid rgba(100, 65, 165, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.premium-input:focus {
  border-color: var(--twitch-purple);
  box-shadow: 0 0 10px rgba(100, 65, 165, 0.3);
  outline: none;
}

.form-control:focus {
  border-color: var(--twitch-purple) !important;
  box-shadow: 0 0 0 .1rem rgba(100, 65, 165, 0.3) !important;

}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .game-card {
    margin-bottom: 1rem;
    padding: 0.5rem;
  }
  #selected-games {
    gap: 0.75rem;
  }
  #game-grid {
    gap: 0.75rem;
  }
  .game-card-subscribed {
    width: 130px;
  }
}


/* Campaigns Page  */
/* --------------- */

/* Campaigns Section */
#campaigns .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Premium Section Wrapper */
.premium-section {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(100, 65, 165, 0.2);
  box-shadow: var(--premium-shadow);
  padding: 2rem;
  max-width: 100%;
}

/* Game Section (for inactive games) */
.game-section {
  border-bottom: 1px solid rgba(100, 65, 165, 0.1);
  padding-bottom: 1rem;
}

/* Inactive Drops */
.inactive-drops h3 {
  color: #6c757d;
  font-weight: 500;
}

/* Campaign Preview */
.campaign-preview {
  background: #ffffff;
  border: 1px solid rgba(100, 65, 165, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

/* Progress Bar */
.progress {
  background: #e9ecef;
  border-radius: 4px;
}

.progress-bar.bg-success {
  background-color: #28a745 !important;
}

/* Yellow Button */
.btn-yellow {
  background-color: #ffc107; /* Adjust to your yellow if different */
  border-color: #ffc107;
  color: #2d2d2d;
}

.btn-yellow:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #2d2d2d;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .campaign-preview {
    padding: 0.75rem;
  }
  .game-section {
    padding-bottom: 0.75rem;
  }
  .campaign-preview .btn-yellow {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  .campaign-preview .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-end;
  }
  .campaign-preview .text-success.me-3 {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}


/* Home Page  */
/* --------------- */


/* Stats Section */
.stats-main-number {
    font-size: 6rem;
    line-height: 1;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stats-main-text {
    font-size: 2rem;
}

.stats-border {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-secondary-number {
    font-size: 3rem;
    color: var(--twitch-purple);
}

.stats-secondary-text {
    font-size: 1.25rem;
    margin: 0;
}