@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

:root {
  --blue-900: #0f172a;
  --blue-800: #1e293b;
  --blue-700: #334155;
  --blue-600: #475569;
  --blue-500: #64748b;
  --blue-400: #94a3b8;
  --blue-300: #cbd5e1;
  --blue-200: #e2e8f0;
  --blue-100: #f1f5f9;
  --blue-50: #f8fafc;

  --yellow-500: #eab308;
  --yellow-400: #facc15;
  --yellow-300: #fde047;

  --green-500: #22c55e;
  --green-400: #4ade80;

  --red-500: #ef4444;
  --red-400: #f87171;

  --white: #ffffff;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--blue-900);
  color: var(--white);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: "Inter", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Headers */
.featured-section-header,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  background-color: transparent !important;
  border-bottom: none;
}

.featured-section-title,
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.view-all {
  display: flex;
  align-items: center;
  color: var(--yellow-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--yellow-400);
}

.view-all i {
  margin-left: 0.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mt-3 {
  margin-top: 1rem;
}

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.25rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background-color: var(--blue-800);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.modal-title i {
  margin-right: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.alert i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 4px solid var(--green-500);
  color: var(--green-400);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--yellow-500);
  color: var(--yellow-300);
}

.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  border-left: 4px solid #0dcaf0;
  color: #5ce0ff;
}

.alert-dismissible {
  position: relative;
  padding-right: 3rem;
}

.btn-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: currentColor;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.btn-close:hover {
  opacity: 1;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-icon {
  margin-left: 0.5rem;
}

.btn-yellow {
  background-color: var(--yellow-500);
  color: var(--blue-900);
}

.btn-yellow:hover {
  background-color: var(--yellow-400);
}

.btn-dark {
  background-color: var(--blue-800);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--blue-700);
}

.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid var(--blue-600);
  color: var(--blue-300);
}

.btn-outline-secondary:hover {
  background-color: var(--blue-700);
}

.btn-primary {
  background-color: #0d6efd;
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

/* Form Validation */
.validation-message {
  color: var(--red-400);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Tournament Banner in Details Page */
.tournament-banner {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tournament-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Fix for section headers */
.section-header {
  background-color: transparent !important;
}
