/* ========== COMPONENTS ========== */

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 45, 120, 0.5);
}

.btn--secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

.btn--large {
  padding: 16px 32px;
  font-size: var(--fs-md);
}

.btn--disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn--small {
  padding: 10px 18px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ===== КАРТОЧКА НОМИНАЦИИ (сетка на главной) ===== */
.nomination-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.nomination-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.nomination-card__icon {
  font-size: 40px;
  margin-bottom: var(--space-md);
}

.nomination-card-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.nomination-card__count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ===== КАРТОЧКА НОМИНАНТА ===== */
.nominee-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--border);
}

.nominee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.nominee-poster {
  position: relative;
  width: 180px;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.nominee-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nominee-rank {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

.nominee-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nominee-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.nominee-studio {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.nominee-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
}

/* ===== БЕЙДЖ / СТАТУС ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  border: 1px solid;
}

.badge--closed {
  color: var(--accent-warning);
  border-color: rgba(255, 165, 0, 0.3);
  background: rgba(255, 165, 0, 0.08);
}

.badge--open {
  color: var(--accent-success);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
}

.badge--finished {
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.08);
}

/* ===== ИНДИКАТОР ГОЛОСОВАНИЯ ===== */
.voting-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border: 1px solid;
}

.voting-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: blink 2s infinite;
}

.voting-indicator--closed {
  color: var(--accent-warning);
  border-color: rgba(255, 165, 0, 0.3);
  background: rgba(255, 165, 0, 0.08);
}

.voting-indicator--closed .voting-indicator__dot {
  background: var(--accent-warning);
}

.voting-indicator--open {
  color: var(--accent-success);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
}

.voting-indicator--open .voting-indicator__dot {
  background: var(--accent-success);
}

.voting-indicator--finished {
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.08);
}

.voting-indicator--finished .voting-indicator__dot {
  background: var(--accent-gold);
  animation: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== БЛОК ГОЛОСОВАНИЯ ===== */
.voting-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.voting-block--closed {
  border: 2px dashed var(--border);
  text-align: center;
}

.voting-block--open {
  border: 2px solid var(--accent);
}

.voting-block--finished {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 215, 0, 0.05));
}

.voting-status {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  justify-content: center;
}

.voting-status__icon {
  font-size: 48px;
}

.voting-status__text strong {
  display: block;
  font-size: var(--fs-md);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.voting-status__text p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== СЕТКИ ===== */
.grid-nominations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.grid-nominees {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-lg);
}

/* ===== АДАПТИВ КОМПОНЕНТОВ ===== */
@media (max-width: 768px) {
  .nominee-card {
    flex-direction: column;
  }
  
  .nominee-poster {
    width: 100%;
    height: 240px;
  }
  
  .grid-nominees {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .grid-nominations {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .nomination-card {
    padding: var(--space-md);
  }
  
  .nomination-card__icon {
    font-size: 32px;
  }
  
  .nomination-card__title {
    font-size: var(--fs-base);
  }
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #ff2d78, #ff4d90);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 45, 120, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 45, 120, 0.6);
}

.btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #2a2a4a;
}

.btn--secondary:hover {
  border-color: #ff2d78;
  background: rgba(255, 45, 120, 0.1);
}

.btn--large {
  padding: 18px 36px;
  font-size: 17px;
}

/* Карточки номинаций */
.nomination-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: #16162b;
  border: 1px solid #2a2a4a;
  border-radius: 16px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.nomination-card:hover {
  transform: translateY(-6px);
  border-color: #ff2d78;
  box-shadow: 0 10px 30px rgba(255, 45, 120, 0.2);
}

.nomination-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.nomination-card__title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.nomination-card__count {
  font-size: 13px;
  color: #6b6b80;
}

.grid-nominations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a2a4a;
  transition: all 0.3s;
}

.header--scrolled {
  background: rgba(13, 13, 26, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.03);
}

.logo__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff2d78, #6c5ce7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 45, 120, 0.4);
}

.logo__star {
  font-size: 24px;
  color: white;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.logo__accent {
  color: #ff2d78;
}

.logo__year {
  font-size: 11px;
  color: #6b6b80;
  font-weight: 600;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  color: #a0a0b8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all 0.2s;
}

.nav__link:hover {
  color: #ffffff;
  background: #1a1a2e;
}

.nav__link--active {
  color: #ffffff;
  background: #1a1a2e;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid #2a2a4a;
  border-radius: 10px;
  cursor: pointer;
}

.burger__line {
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px;
    background: #0d0d1a;
    border-bottom: 1px solid #2a2a4a;
    transform: translateY(-120%);
    transition: transform 0.3s;
    max-height: calc(100vh - 77px);
    overflow-y: auto;
  }
  
  .nav--open {
    transform: translateY(0);
  }
  
  .nav__link {
    padding: 14px 16px;
    font-size: 16px;
  }
}

/* Кнопка выхода в шапке */
.logout-btn {
  font-size: 14px;
  padding: 8px 16px;
  margin-left: 20px;
  background: transparent;
  border: 2px solid var(--accent-color, #ff6b6b);
  color: var(--accent-color, #ff6b6b);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.logout-btn:hover {
  background: var(--accent-color, #ff6b6b);
  color: white;
  transform: translateY(-2px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .logout-btn {
    margin-left: 10px;
    font-size: 12px;
    padding: 6px 12px;
  }
}
