@charset "UTF-8";
@import url('/css/rizin-background.css');

/* ========================================
   RIZIN RANKING - COMPARE PAGE STYLES
   Unified Design System Edition
======================================== */

/* Fighter Color Variables */
:root {
  --fighter1-color: #3b82f6;
  --fighter2-color: #ef4444;
}

/* ========================================
   PAGE BACKGROUND SETUP
======================================== */

#main-content {
  padding-top: 20px;
  min-height: 100vh;
}

#main-content > .container {
  position: relative;
  z-index: 2;
}

#main-content a {
  text-decoration: none;
}

/* ========================================
   COMPARE HEADER
======================================== */

.compare-header {
  padding: var(--space-xl) 0;
}

.compare-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.compare-title i {
  color: var(--rizin-gold);
}

.compare-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.compare-result-header {
  padding: var(--space-md) 0;
}

.compare-result-title {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.vs-badge-lg {
  background: var(--gradient-fire);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.5rem;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: var(--shadow-glow-red);
  animation: vsPulse 2s infinite;
}

@keyframes vsPulse {
  0%, 100% { box-shadow: var(--shadow-glow-red); }
  50% { box-shadow: 0 0 30px var(--glow-red); }
}

/* ========================================
   COMPARE FORM CARD
======================================== */

.compare-form-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-raised);
}

.fighter-search-box {
  position: relative;
}

.fighter-search-box .form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.fighter-search-box .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.fighter-search-box .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--rizin-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  color: var(--text-primary);
}

.fighter-search-box .form-control::placeholder {
  color: var(--text-muted);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-floating);
}

.search-results .dropdown-item {
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.search-results .dropdown-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

.selected-fighter {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--rizin-gold);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-fighter .selected-name {
  color: var(--rizin-gold);
  font-weight: 600;
}

.selected-fighter .btn-close {
  filter: invert(1);
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vs-text {
  background: var(--gradient-fire);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.5rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: var(--shadow-glow-red);
}

.btn-compare {
  background: linear-gradient(135deg, var(--rizin-gold) 0%, #ff8c00 100%);
  color: #000;
  font-weight: 700;
  padding: var(--space-md) var(--space-2xl);
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.btn-compare:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-compare:disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
}

/* ========================================
   HOW TO USE CARD
======================================== */

.how-to-use-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--text-secondary);
  box-shadow: var(--shadow-raised);
}

.how-to-use-card h5 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.how-to-list {
  padding-left: var(--space-lg);
  margin-bottom: 0;
}

.how-to-list li {
  margin-bottom: var(--space-sm);
}

.how-to-list li::marker {
  color: var(--rizin-gold);
}

.how-to-use-card .text-muted {
  color: var(--text-secondary) !important;
}

.how-to-use-card .text-muted i {
  color: var(--rizin-gold);
}

/* ========================================
   POPULAR COMPARE AREA
======================================== */

#popular-compare-area h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.popular-list .list-group {
  background: transparent;
}

.popular-item {
  background: var(--gradient-card) !important;
  border-color: var(--border-subtle) !important;
  padding: 0;
  transition: all var(--transition-normal);
}

.popular-item:hover {
  border-color: var(--rizin-gold) !important;
  transform: translateX(5px);
  box-shadow: var(--shadow-raised);
}

.popular-link {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  color: var(--text-primary) !important;
}

.rank-badge {
  background: var(--rizin-gold);
  color: #000;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.fighter-names {
  flex: 1;
  font-size: 0.95rem;
}

.vs-mini {
  color: var(--rizin-red);
  font-weight: 700;
  margin: 0 var(--space-xs);
}

.view-count {
  flex-shrink: 0;
  font-size: 0.8rem;
  background: rgba(255, 215, 0, 0.2) !important;
  color: var(--rizin-gold) !important;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ========================================
   FIGHTER COMPARE CARDS (RESULT PAGE)
======================================== */

.fighter-compare-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-raised);
}

.fighter-compare-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-floating);
}

.fighter1-card {
  border-color: var(--fighter1-color);
}

.fighter2-card {
  border-color: var(--fighter2-color);
}

.fighter-compare-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  text-align: center;
}

.fighter1-card .card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
}

.fighter2-card .card-header {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, transparent 100%);
}

.fighter-compare-card .fighter-name {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.fighter-compare-card .fighter-link {
  color: var(--text-primary) !important;
  transition: color var(--transition-normal);
}

.fighter-compare-card .fighter-link:hover {
  color: var(--rizin-gold) !important;
  text-shadow: 0 0 10px var(--glow-gold);
}

.fighter-compare-card .weight-class {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.fighter-compare-card .card-body {
  padding: var(--space-lg);
}

.fighter-info-table {
  color: var(--text-secondary);
  margin-bottom: 0;
  background: transparent !important;
}

.fighter-info-table th,
.fighter-info-table td {
  background: transparent !important;
}

.fighter-info-table th {
  color: var(--text-muted) !important;
  font-weight: 500;
  width: 40%;
  padding: var(--space-sm) 0;
  border-color: var(--border-subtle) !important;
}

.fighter-info-table td {
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: var(--space-sm) 0;
  border-color: var(--border-subtle) !important;
}

.rating-value {
  color: var(--rizin-gold);
  font-size: 1.1rem;
  text-shadow: 0 0 10px var(--glow-gold);
}

/* ========================================
   STATS BARS
======================================== */

.stats-bars {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.stat-row {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.stat-label {
  width: 90px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.stat-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 var(--space-sm);
}

.stat-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

.fighter1-bar {
  background: linear-gradient(90deg, var(--fighter1-color) 0%, #60a5fa 100%);
}

.fighter2-bar {
  background: linear-gradient(90deg, var(--fighter2-color) 0%, #f87171 100%);
}

.stat-value {
  width: 20px;
  text-align: center;
  color: var(--rizin-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ========================================
   RADAR CHART CARD
======================================== */

.radar-chart-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-raised);
}

.radar-chart-card h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.chart-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.legend-item {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
  margin-right: var(--space-sm);
}

.fighter1-legend .legend-color {
  background: var(--fighter1-color);
}

.fighter2-legend .legend-color {
  background: var(--fighter2-color);
}

/* ========================================
   PAST FIGHTS CARD
======================================== */

.past-fights-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-raised);
}

.past-fights-card h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.past-fight-item {
  background: var(--bg-elevated) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  transition: background var(--transition-fast);
}

.past-fight-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.event-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.event-name {
  flex: 1;
  margin: 0 var(--space-md);
}

.fight-result .winner {
  font-weight: 700;
}

.fighter1-win {
  color: var(--fighter1-color);
}

.fighter2-win {
  color: var(--fighter2-color);
}

.fight-result .draw {
  color: var(--text-muted);
}

/* ========================================
   AI HIGHLIGHT CARD
======================================== */

.ai-highlight-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-raised);
}

.ai-highlight-card h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.ai-content {
  text-align: center;
}

#load-ai-btn {
  font-weight: 600;
}

#ai-loading {
  color: var(--rizin-gold);
  padding: var(--space-md);
}

#ai-highlight-text {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text-primary);
  line-height: 1.8;
  text-align: left;
}

.ai-preview-section {
  text-align: center;
}

#btn-ai-preview {
  border-color: var(--rizin-gold);
  color: var(--rizin-gold);
  font-weight: 600;
  transition: all var(--transition-normal);
}

#btn-ai-preview:hover {
  background: var(--rizin-gold);
  color: #000;
  box-shadow: var(--shadow-glow-gold);
}

#ad-countdown {
  margin: var(--space-md) 0;
  text-align: center;
}

#ad-countdown .ad-container {
  margin-bottom: var(--space-sm);
}

.countdown-text {
  color: var(--rizin-gold);
  font-weight: 600;
}

#countdown-num {
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--glow-gold);
}

#btn-show-highlight {
  font-weight: 600;
  background: var(--gradient-fire);
  border: none;
}

#ai-highlight-content {
  margin-top: var(--space-md);
}

/* ========================================
   VOTE SECTION CARD
======================================== */

.vote-section-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
}

.vote-section-card .card-header {
  border-bottom: 1px solid var(--border-subtle);
}

.vote-section-card .card-body {
  padding: var(--space-lg);
}

.vote-section-card .card-body p {
  color: var(--text-primary);
}

.vote-section-card #vote-rank-area {
  color: var(--rizin-gold);
  font-weight: 600;
}

.vote-section-card .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.vote-section-card .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--rizin-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  color: var(--text-primary);
}

.vote-section-card .form-control::placeholder {
  color: var(--text-muted);
}

/* Vote Comments Section */
.vote-comments-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
}

.vote-comments-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.vote-comments-title i {
  color: var(--rizin-gold);
}

.vote-comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vote-comment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  transition: background var(--transition-fast);
}

.vote-comment-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vote-comment-item:last-child {
  margin-bottom: 0;
}

.comment-text {
  color: var(--text-secondary);
  flex: 1;
  word-break: break-word;
}

.comment-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: var(--space-md);
  flex-shrink: 0;
}

/* ========================================
   SHARE BUTTONS CARD
======================================== */

.share-buttons-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-raised);
}

.share-buttons-card h5 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.share-buttons .btn {
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.share-buttons .btn:hover {
  transform: translateY(-2px);
}

/* ========================================
   AD CONTAINER
======================================== */

.ad-container {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 100px;
}

/* ========================================
   ANIMATION
======================================== */

.fighter-compare-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.fighter-compare-card:nth-child(1) { animation-delay: 0.1s; }
.fighter-compare-card:nth-child(2) { animation-delay: 0.2s; }

.radar-chart-card,
.past-fights-card,
.ai-highlight-card,
.share-buttons-card,
.vote-section-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
  #main-content {
    padding-top: 60px;
  }

  .compare-title {
    font-size: 1.5rem;
  }

  .compare-result-title {
    font-size: 1.3rem;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .compare-form-card {
    padding: var(--space-lg);
  }

  .compare-form-card .row {
    flex-direction: column;
  }

  .compare-form-card .col-5,
  .compare-form-card .col-2 {
    width: 100%;
    margin-bottom: var(--space-md);
  }

  .vs-divider {
    padding: var(--space-sm) 0;
  }

  .vs-text {
    font-size: 1.2rem;
    padding: var(--space-sm) var(--space-md);
  }

  .fighter-compare-card .fighter-name {
    font-size: 1.2rem;
  }

  .stat-label {
    width: 70px;
    font-size: 0.75rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-buttons .btn {
    width: 100%;
  }

  #popular-compare-area {
    margin-top: var(--space-xl);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .fighter-compare-card,
  .radar-chart-card,
  .past-fights-card,
  .ai-highlight-card,
  .share-buttons-card,
  .vote-section-card {
    animation: none;
    opacity: 1;
  }

  .vs-badge-lg {
    animation: none;
  }

  .fighter-compare-card:hover,
  .popular-item:hover,
  .btn-compare:hover:not(:disabled),
  .share-buttons .btn:hover {
    transform: none;
  }
}
