/* ============================================
   Boxing Data Pro - Professional Styles
   Mobile-first responsive design with SEO optimization
   ============================================ */

/* ===== Global Styles ===== */
.boxing-data-container {
  max-width: 100%;
  padding: 20px 15px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.boxing-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.boxing-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* ===== Error & Empty States ===== */
.boxing-error-message {
  background: #fee;
  border-left: 4px solid #d32f2f;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.boxing-error-message p {
  color: #d32f2f;
  margin: 0;
  font-weight: 500;
}

.boxing-no-data {
  background: #f5f5f5;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  margin: 20px 0;
}

.boxing-no-data p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* ===== Category Tabs ===== */
.category-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #333;
  outline: none;
}

.category-tab:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  transform: translateY(-1px);
}

.category-tab.active {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

/* Fighter Profile Links */
.fighter-profile-link {
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.fighter-profile-link:hover {
  color: #b71c1c;
  border-bottom-color: #b71c1c;
}

/* ===== Schedule Styles ===== */
.boxing-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.boxing-schedule-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boxing-schedule-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.schedule-date {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 15px;
}

.date-day {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 5px;
}

.date-year {
  display: block;
  font-size: 12px;
  opacity: 0.9;
}

.event-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.event-fighters {
  margin: 15px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
}

.fighter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}

.fighter-name {
  font-weight: 600;
  color: #333;
}

.fighter-record {
  font-size: 13px;
  color: #666;
  margin-left: 8px;
}

.versus {
  display: block;
  text-align: center;
  font-weight: 700;
  color: #d32f2f;
  margin: 10px 0;
}

.event-venue, .event-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: #555;
}

.btn-details {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #d32f2f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-details:hover {
  background: #b71c1c;
}

/* ===== Champions Styles ===== */
.boxing-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.champion-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.champion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.champion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.champion-belt {
  font-size: 48px;
  margin-bottom: 15px;
}

.division-name {
  font-size: 16px;
  font-weight: 700;
  color: #d32f2f;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.champion-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 10px 0;
}

.champion-org {
  margin: 10px 0;
}

.org-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.champion-record {
  margin: 10px 0;
  font-size: 14px;
  color: #555;
}

.record-label {
  font-weight: 600;
}

.btn-profile {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-profile:hover {
  background: #555;
}

/* ===== Rankings Styles ===== */
.boxing-rankings-list {
  margin-top: 20px;
}

.division-rankings {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.division-title {
  font-size: 20px;
  font-weight: 700;
  color: #d32f2f;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.rankings-table-container {
  overflow-x: auto;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
}

.rankings-table thead th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.rankings-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-row:hover {
  background: #f9f9f9;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #d32f2f;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

/* ===== Pound-for-Pound Styles ===== */
.boxing-p4p-list {
  margin-top: 20px;
}

.p4p-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.p4p-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.p4p-item.top-three {
  border-left: 4px solid #ffd700;
}

.p4p-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 60px;
}

.p4p-rank .rank-number {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.rank-medal {
  font-size: 28px;
}

.p4p-info {
  flex: 1;
}

.fighter-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

/* ===== Profile Styles ===== */
.boxing-profile-container {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d32f2f;
}

.fighter-nickname {
  font-size: 18px;
  font-style: italic;
  color: #666;
  margin: 10px 0;
}

.fighter-record-main {
  margin: 15px 0;
}

.record-badge {
  display: inline-block;
  padding: 8px 16px;
  background: #d32f2f;
  color: white;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.profile-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.profile-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.titles-list {
  display: grid;
  gap: 10px;
}

.title-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}

.title-icon {
  font-size: 24px;
}

/* ===== Search Styles ===== */
.boxing-search-form {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.boxing-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.boxing-search-input:focus {
  outline: none;
  border-color: #d32f2f;
}

.boxing-search-button {
  padding: 12px 24px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.boxing-search-button:hover {
  background: #b71c1c;
}

.search-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.boxing-search-results {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.search-result-item {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.result-description {
  color: #555;
  margin-bottom: 10px;
}

.result-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.result-type {
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 3px;
  font-weight: 600;
}

.search-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.pagination-btn {
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #e8e8e8;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Loading Spinner ===== */
.boxing-loading {
  text-align: center;
  padding: 40px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #d32f2f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 768px) {
  .boxing-title {
    font-size: 24px;
  }
  
  .boxing-schedule-grid,
  .boxing-champions-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .search-input-wrapper {
    flex-direction: column;
  }
  
  .p4p-item {
    flex-direction: column;
    text-align: center;
  }
  
  .fighter-details {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .boxing-data-container {
    padding: 15px 10px;
  }
  
  .boxing-title {
    font-size: 20px;
  }
  
  .category-tabs {
    flex-direction: column;
  }
  
  .category-tab {
    width: 100%;
  }
}
  .boxing-data-container {
    padding: 15px 10px;
  }
  
  .boxing-title {
    font-size: 20px;
  }
  
  .category-tabs {
    flex-direction: column;
  }
  
  .category-tab {
    width: 100%;
  }
}
