/* Universal Rwanda Premier League Design System - Light Theme */

/* Design System Variables */
:root {
  --rpl-blue: #3498db;
  --rpl-blue-dark: #1a5276;
  --rpl-blue-light: #85c1e9;
  --rpl-yellow: #fad201;
  --rpl-red: #ce1126;
  --rpl-green: #00a651;

  /* Light Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  --text-primary: #1a202c;
  --text-secondary: #2d3748;
  --text-muted: #4a5568;
  --text-light: #718096;
  --border-light: #e2e8f0;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Universal Background Gradient */
.magical-gradient-bg {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

/* Universal Section Styling */
.section-universal {
  background: var(--magical-gradient-bg);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Universal Section Headers */
.rpl-section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.main-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  position: relative;
}

.main-title-content {
  text-align: center;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rpl-section-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
  color: white;
  font-size: 20px;
  border-radius: 10px;
  margin-right: 15px;
  box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.rpl-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
  background: linear-gradient(135deg, var(--rpl-blue), var(--rpl-blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  text-align: center;
  line-height: 1.2;
}

.section-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Universal Separators */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.separator-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rpl-blue), transparent);
  border-radius: 2px;
}

.separator-icon {
  margin: 0 1rem;
  width: 40px;
  height: 40px;
  background: var(--rpl-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

/* Universal Cards */
.rpl-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rpl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: #cbd5e0;
}

.rpl-card.imigongo-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      135deg,
      rgba(52, 152, 219, 0.008) 25%,
      transparent 25%
    ),
    linear-gradient(225deg, rgba(52, 152, 219, 0.008) 25%, transparent 25%),
    linear-gradient(315deg, rgba(52, 152, 219, 0.008) 25%, transparent 25%),
    linear-gradient(45deg, rgba(52, 152, 219, 0.008) 25%, transparent 25%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 0, 15px -15px, 0px 15px;
  border-radius: 16px;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* Universal Card Headers */
.section-card-header {
  background: rgba(52, 152, 219, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border-left: 3px solid var(--rpl-blue);
  border-right: 1px solid rgba(52, 152, 219, 0.1);
  border-top: 1px solid rgba(52, 152, 219, 0.1);
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
  margin-bottom: 1rem;
}

.section-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--rpl-blue-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-card-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--rpl-blue), rgba(52, 152, 219, 0.3));
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Universal Buttons */
.btn-rpl {
  background: linear-gradient(
    135deg,
    var(--rpl-blue) 0%,
    var(--rpl-blue-dark) 100%
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-rpl:hover {
  background: linear-gradient(135deg, var(--rpl-blue-dark) 0%, #2c5aa0 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  color: white;
  text-decoration: none;
}

.btn-rpl-outline {
  background: transparent;
  color: #1a5276;
  border: 2px solid #1a5276;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-rpl-outline:hover {
  background: #1a5276;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  text-decoration: none;
}

/* Universal Form Elements */
.form-rpl {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  width: 100%;
}

.form-rpl:focus {
  outline: none;
  border-color: var(--rpl-blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Universal Table Styling */
.table-rpl {
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.table-rpl th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 16px 20px;
  border: none;
  vertical-align: middle;
}

.table-rpl th .d-flex {
  min-height: 24px;
}

.table-rpl th i {
  font-size: 0.9rem;
  opacity: 0.8;
}

.table-rpl td {
  padding: 16px 20px;
  border-color: var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table-rpl tr:hover {
  background: rgba(52, 152, 219, 0.02);
}

/* Universal Animations */
@keyframes pulse-rpl {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.pulse-element {
  animation: pulse-rpl 2s infinite;
}

.pulse-icon {
  animation: pulse-rpl 1.5s infinite;
}

/* Universal Interactive Elements */
.interactive-element {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
}

.interactive-element:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: rgba(52, 152, 219, 0.02);
}

/* Universal Alerts */
.alert-rpl {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 1rem;
}

.alert-rpl.alert-success {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border-color: #9ae6b4;
  color: #22543d;
}

.alert-rpl.alert-info {
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
  border-color: #90cdf4;
  color: var(--rpl-blue-dark);
}

.alert-rpl.alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef5e7 100%);
  border-color: #f6e05e;
  color: #744210;
}

.alert-rpl.alert-danger {
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
  border-color: #fc8181;
  color: #742a2a;
}

/* Universal Responsive Design */
@media (max-width: 768px) {
  .rpl-section-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .rpl-section-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .main-title-container {
    flex-direction: column;
    gap: 1rem;
  }

  .rpl-card {
    padding: 20px;
  }

  .section-card-header {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .rpl-section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }
}

/* Universal Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-shapes::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.1),
    rgba(52, 152, 219, 0.05)
  );
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-shapes::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.08),
    rgba(52, 152, 219, 0.03)
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Universal Rwanda Pattern */
.rwanda-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a0aec0' fill-opacity='0.01'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.02;
  pointer-events: none;
}

/* Icon and Text Alignment Utilities */
.icon-text-aligned {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-text-aligned i {
  flex-shrink: 0;
  width: 1.2em;
  text-align: center;
}

.header-icon-aligned {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 24px;
}

.header-icon-aligned.text-left {
  justify-content: flex-start;
}

.header-icon-aligned.text-right {
  justify-content: flex-end;
}
