/* ============================================
   COMPONENTS.CSS — Buttons, Cards, Badges
   ============================================ */

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  z-index: 1;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-13deg);
  transition: background-position 0.3s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary gold button */
.btn--primary::before {
  background: var(--fire-gradient-deep);
  background-size: 100% 100%;
}

.btn--primary:hover::before {
  filter: brightness(1.15);
}

/* Outline button */
.btn--outline {
  color: var(--text-gold-muted);
}

.btn--outline::before {
  background: transparent;
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  color: var(--text-primary);
}

.btn--outline:hover::before {
  border-color: var(--accent-gold);
  background: rgba(255, 196, 107, 0.05);
}

/* Green button (for download) */
.btn--green::before {
  background: linear-gradient(135deg, #1a7a3a, #0f5a28);
}

.btn--green:hover::before {
  filter: brightness(1.2);
}

/* Small button */
.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
}

/* Large button */
.btn--lg {
  padding: 18px 48px;
  font-size: 17px;
}

/* Pulsing glow effect */
.btn--glow {
  animation: glow-pulse 2s ease infinite;
}

/* --- Cards --- */
.card {
  position: relative;
  background: var(--bg-card);
  padding: 32px;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-strong);
  pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.2));
  mask: linear-gradient(180deg, #000 0, rgba(0, 0, 0, 0.2));
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent-gold);
}

.card__title {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.badge::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-13deg);
}

.badge--red::before {
  background: linear-gradient(135deg, var(--accent-red), #8b0000);
}

.badge--gold::before {
  background: var(--fire-gradient-deep);
}

.badge--cyan {
  color: var(--neon-cyan);
}

.badge--cyan::before {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* --- Double shadow for labels --- */
.label-glow {
  filter: drop-shadow(6px 9px 32px rgba(0, 0, 0, 0.31))
          drop-shadow(0 9px 43px rgba(252, 184, 79, 0.39));
}

/* --- Placeholder image blocks --- */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px dashed var(--border-soft);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  font-family: monospace;
}

/* --- Form inputs --- */
.input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.3s;
}

.input:focus {
  border-color: var(--accent-gold);
}

.input::placeholder {
  color: var(--text-muted);
}

.input--error {
  border-color: var(--accent-red);
}

/* --- Divider --- */
.divider {
  width: 80px;
  height: 2px;
  background: var(--fire-gradient-deep);
  transform: skewX(-13deg);
}

/* --- Social icon --- */
.social-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  z-index: 1;
  transition: color 0.3s;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-13deg);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.social-icon:hover {
  color: var(--accent-orange);
}

.social-icon:hover::before {
  border-color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(255, 173, 51, 0.3);
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  padding: 48px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-soft);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s;
}

.modal__close:hover {
  color: var(--text-primary);
}

/* --- Tabs --- */
.tab-list {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tab-item {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tab-item:hover {
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

.tab-item.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(255, 196, 107, 0.3);
  transform: scale(1.1);
}

/* ====== COUNTDOWN (transparent minimal style) ====== */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  margin: 1.5rem 0;
  max-width: 560px;
  position: relative;
}

.countdown-wrapper::before {
  content: none;
}

.countdown__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.countdown__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0bb;
  box-shadow: 0 0 10px #0bb;
  animation: countdownPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.countdown__label {
  transition: opacity 0.5s ease;
}

.countdown__label.fading {
  opacity: 0;
}

.countdown__timer {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 90px;
  position: relative;
  padding: 0;
  background: transparent;
}

.countdown__unit::before {
  content: none;
}

.countdown__name {
  order: 1;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.countdown__value {
  order: 2;
  font-family: 'Oswald', 'PT Sans Narrow', Tahoma, sans-serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(255, 173, 51, 0.15);
}

.countdown__separator {
  display: none;
}

.countdown-wrapper.finished .countdown__label {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.countdown-wrapper.finished .countdown__pulse {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

@media (max-width: 1200px) {
  .countdown__value {
    font-size: 3rem;
  }
  .countdown__unit {
    min-width: 70px;
  }
  .countdown__timer {
    gap: 1.25rem;
  }
}

/* ====== SOCIALS SIDEBAR ====== */
.socials-sidebar {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.5rem 0;
  isolation: isolate;
}

.socials-sidebar__link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(14, 16, 27, 0.92);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  z-index: 0;
}

.socials-sidebar__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-10deg);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.socials-sidebar__link svg {
  transition: transform 0.25s;
}

.socials-sidebar__link:hover {
  transform: translateX(-4px);
  color: #fff;
}

.socials-sidebar__link:hover svg {
  transform: scale(1.15);
}

.socials-sidebar__link--telegram:hover {
  background: #229ED9;
  border-color: #229ED9;
  box-shadow: 0 0 24px rgba(34, 158, 217, 0.55);
}

.socials-sidebar__link--discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.55);
}

.socials-sidebar__link--instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  box-shadow: 0 0 24px rgba(220, 39, 67, 0.55);
}

.socials-sidebar__link--facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 0 24px rgba(24, 119, 242, 0.55);
}

@media (max-width: 768px) {
  .socials-sidebar {
    right: 0.5rem;
    gap: 0.5rem;
  }
  .socials-sidebar__link {
    width: 36px;
    height: 36px;
  }
  .socials-sidebar__link svg {
    width: 18px;
    height: 18px;
  }
}
