﻿/* Pro Table Tennis Theme - Clean & Professional */
:root {
  /* Primary Colors - ITTF Inspired */
  --primary-blue: #2B4C8C;
  /* Deep Table Blue */
  --primary-dark: #1A365D;
  /* Navy */
  --accent-orange: #FF9F1C;
  /* Ball Orange */
  --accent-red: #D63031;
  /* Paddle Red */

  /* Neutral Colors */
  --bg-body: #F4F6F7;
  /* Agile Gray */
  --bg-card: #FFFFFF;
  --text-main: #2C3E50;
  --text-muted: #7F8C8D;
  --border-color: #E2E8F0;

  /* Functional Colors */
  --success: #27AE60;
  --warning: #F1C40F;
  --danger: #E74C3C;
  --info: #3498DB;

  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing & Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Reset & Typography */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  /* Critical for sticky footer */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  /* Flexbox Sticky Footer Setup with Gap */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 4rem;
  /* Defines space between main content and footer */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  /* Ensure headers don't overflow */
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
  text-decoration: none;
  /* Clean look */
}

/* Layout Containers - Bootstrap Standard Alignment */
.container {
  max-width: 1200px;
  /* Standardize max width */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navbar - Clean Professional */
.navbar {
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  border-bottom: 3px solid var(--primary-blue);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-icon-box {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #FF9F1C 0%, #2B4C8C 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(43, 76, 140, 0.3);
  transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-icon-box {
  box-shadow: 0 6px 16px rgba(43, 76, 140, 0.4);
  transform: rotate(5deg);
}

.navbar-icon-box i {
  font-size: 1.5rem;
  color: white;
}

.brand-text {
  color: var(--primary-blue);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-main) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue) !important;
  font-weight: 700;
}

/* Buttons - Solid & Tactile */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(43, 76, 140, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 76, 140, 0.5);
  color: white;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #cbd5e0;
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #FF9F1C 0%, #F37335 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.5);
  color: white;
}

/* Cards - Clean & Bordered */
.card {
  background: white;
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid #edf2f7;
  padding: 2rem 2.5rem 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.card-body {
  padding: 2.5rem;
}

.card-footer {
  background-color: #f8fafc;
  border-top: 1px solid #edf2f7;
  padding: 1.5rem 2.5rem;
}

/* Forms - Modern & Clean */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background-color: #f7fafc;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(43, 76, 140, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

textarea.form-control {
  min-height: 120px;
}

/* Footer - Clean 3-Column */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 3rem 0;
  margin-top: auto;
  /* Push to bottom */
  border-top: 4px solid var(--accent-orange);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--accent-orange);
}

.footer h5 {
  color: white;
  margin-bottom: 1.25rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  border-radius: 0 0 50px 50px;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-sm);
}

.badge-primary {
  background-color: var(--primary-blue);
  color: white;
}

.badge-secondary {
  background-color: var(--text-muted);
  color: white;
}

.badge-success {
  background-color: var(--success);
  color: white;
}

.badge-danger {
  background-color: var(--danger);
  color: white;
}

.badge-warning {
  background-color: var(--warning);
  color: var(--text-main);
}

.badge-info {
  background-color: var(--info);
  color: white;
}

/* Utility Animations (Keep simple) */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Score Display - Dashboard */
.score-card {
  background: white;
  border-left: 4px solid var(--primary-blue);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-live {
  border-left-color: var(--accent-red);
}

/* Alignment Utilities */
.text-justify {
  text-align: justify;
}

.object-cover {
  object-fit: cover;
}