/* ======================================================
   AZIAPL Custom Styles – Pickleball Club
   ====================================================== */

/* ---- Color Palette ---- */
:root {
  --aziapl-green: #1a6b3c;
  --aziapl-green-light: #2ecc71;
  --aziapl-dark: #1a1a2e;
  --aziapl-accent: #f39c12;
  --aziapl-blue: #3498db;
  --aziapl-gradient: linear-gradient(135deg, #1a6b3c, #2ecc71);
  --aziapl-gradient-dark: linear-gradient(135deg, #0f3d22, #1a6b3c);
  --aziapl-gradient-accent: linear-gradient(135deg, #f39c12, #e74c3c);
}

/* ---- General Overrides ---- */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #333;
}

.navbar-brand {
  color: #fff !important;
  font-size: 1.5rem !important;
}

/* ---- Hero Section ---- */
.hero-aziapl {
  background: var(--aziapl-gradient-dark);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-aziapl::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-aziapl::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(243, 156, 18, 0.08);
  animation: heroFloat 8s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-aziapl h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hero-aziapl p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 550px;
}

.hero-aziapl .hero-badge {
  display: inline-block;
  background: var(--aziapl-accent);
  color: #fff;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243,156,18,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(243,156,18,0); }
}

/* ---- Stats Cards ---- */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aziapl-green);
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Section Styles ---- */
.section-aziapl {
  padding: 80px 0;
}

.section-title-aziapl {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-aziapl h6 {
  color: var(--aziapl-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-title-aziapl h2 {
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--aziapl-dark);
}

/* ---- Event Cards ---- */
.event-card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.event-card .event-header {
  background: var(--aziapl-gradient);
  padding: 20px 24px;
  color: #fff;
}

.event-card .event-header h5 {
  margin: 0;
  font-weight: 700;
}

.event-card .event-header .badge {
  font-size: 0.75rem;
}

.event-card .event-body {
  padding: 24px;
}

.event-card .event-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

.event-card .event-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-card .event-categories .badge {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ---- Team Cards ---- */
.team-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.team-card.team-a {
  border-color: rgba(46, 204, 113, 0.3);
}

.team-card.team-b {
  border-color: rgba(52, 152, 219, 0.3);
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.team-card h5 {
  font-weight: 700;
}

.team-card .player-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.team-card .player-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.team-card .player-list li:last-child {
  border-bottom: none;
}

/* ---- Dashboard Table ---- */
.dashboard-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.dashboard-table thead th {
  background: var(--aziapl-gradient);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 14px 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.9rem;
}

.dashboard-table tbody tr {
  transition: background 0.2s ease;
}

.dashboard-table tbody tr:hover {
  background: rgba(46, 204, 113, 0.04);
}

/* ---- Album Table ---- */
.album-table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.album-table thead th {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 14px 16px;
}

.album-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.album-table tbody tr:hover {
  background: rgba(52, 152, 219, 0.04);
}

/* ---- Buttons ---- */
.btn-aziapl {
  background: var(--aziapl-gradient);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-aziapl:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 107, 60, 0.3);
  transform: translateY(-2px);
}

.btn-aziapl-outline {
  background: transparent;
  color: var(--aziapl-green);
  border: 2px solid var(--aziapl-green);
  padding: 8px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-aziapl-outline:hover {
  background: var(--aziapl-green);
  color: #fff;
}

/* ---- About Section ---- */
.about-aziapl {
  background: #fff;
}

.about-aziapl .about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.about-aziapl .category-list {
  list-style: none;
  padding: 0;
}

.about-aziapl .category-list li {
  padding: 6px 0;
  font-size: 1rem;
  color: #444;
}

.about-aziapl .category-list li i {
  color: var(--aziapl-green);
  margin-right: 8px;
}

/* ---- Status Badges ---- */
.badge-upcoming {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

.badge-active {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
}

.badge-completed {
  background: rgba(149, 165, 166, 0.15);
  color: #7f8c8d;
}

.badge-pending {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

.badge-approved {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
}

.badge-rejected {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

/* ---- Page Header ---- */
.page-header-aziapl {
  background: var(--aziapl-gradient-dark);
  padding: 60px 0 40px;
  color: #fff;
  margin-bottom: 40px;
}

.page-header-aziapl h2 {
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header-aziapl p {
  color: rgba(255,255,255,0.7);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-aziapl h1 {
    font-size: 2rem;
  }

  .hero-aziapl {
    min-height: 400px;
    padding: 40px 0;
  }

  .stat-card {
    margin-bottom: 16px;
  }

  .section-aziapl {
    padding: 50px 0;
  }
}

/* ---- Animations ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* ---- Mobile nav auth buttons ---- */
@media (max-width: 991px) {
  .navbar-btn {
    display: block !important;
    text-align: center;
    padding: 16px 0;
  }
}

/* ---- Card glassmorphism ---- */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 24px;
}

/* ---- Event Description ---- */
.event-description {
  line-height: 1.8;
  font-size: 0.95rem;
}

.event-description a {
  color: var(--aziapl-green);
  text-decoration: underline;
  text-decoration-color: rgba(26, 107, 60, 0.3);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
  word-break: break-all;
}

.event-description a:hover {
  color: var(--aziapl-green-light);
  text-decoration-color: var(--aziapl-green-light);
}

/* ---- Toast / Message ---- */
.aziapl-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}
