/* CTP | Clan Time Bomb - Official Tactical Theme */
:root {
  --ctp-red: #EF4444;
  --ctp-green: #10B981;
  --ctp-yellow: #F59E0B;
  --ctp-white: #FFFFFF;
  --ctp-dark: #080C14;
  --ctp-card: #0F1626;
  --ctp-card-border: #1E293B;
  --ctp-card-hover: #162035;
  --ctp-muted: #94A3B8;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--ctp-dark);
  color: #F8FAFC;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.font-changa {
  font-family: 'Changa', sans-serif;
}

/* Tactical Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #080C14;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ctp-red);
}

/* Pulse Bomb Animation */
@keyframes bombPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.7));
  }
}
.bomb-glow {
  animation: bombPulse 2.4s infinite ease-in-out;
}

/* Navigation button states */
.nav-btn {
  color: #94A3B8;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-btn:hover {
  color: #FFFFFF;
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}
.nav-btn.active {
  color: #FFFFFF;
  background-color: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

/* Mobile bottom nav states */
.mobile-nav-btn {
  color: #94A3B8;
  transition: all 0.2s ease;
}
.mobile-nav-btn:hover {
  color: #FFFFFF;
}
.mobile-nav-btn.active {
  color: #EF4444;
  transform: translateY(-2px);
}

/* Admin Sub Tab Buttons */
.admin-tab-btn {
  background-color: #080C14;
  border: 1px solid #1E293B;
  color: #94A3B8;
}
.admin-tab-btn:hover {
  color: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.4);
}
.admin-tab-btn.active {
  background-color: rgba(239, 68, 68, 0.2);
  color: #FFFFFF;
  border-color: rgba(239, 68, 68, 0.6);
}

/* Rank Badges */
.rank-badge-Leader {
  background-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
}
.rank-badge-Supervisor {
  background-color: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.rank-badge-Trainer {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.5);
}
.rank-badge-Member {
  background-color: rgba(148, 163, 184, 0.15);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Status Badges */
.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.status-accepted {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Chat bubble styling */
.chat-bubble-me {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FFFFFF;
}
.chat-bubble-other {
  background: #111A2C;
  border: 1px solid #1E293B;
  color: #F1F5F9;
}

/* AI chat bubbles */
.ai-bubble-user {
  background: #152033;
  border: 1px solid #1E293B;
  color: #F8FAFC;
}
.ai-bubble-bot {
  background: linear-gradient(135deg, #0F172A, #14223A);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Home hub cards styling */
.home-hub-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.home-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Prevent unwanted selection on controls */
button, select, input, textarea {
  user-select: none;
}
input, textarea {
  user-select: auto;
}

/* ============================================================== */
/* 🎬 TikTok 9:16 Vertical Video CapCut Engine Styles             */
/* Strict color adherence: Red, Green, Yellow, White              */
/* Strictly Forbidden in video: Pink, Black, Blue                 */
/* ============================================================== */
.tiktok-phone-bezel {
  background: linear-gradient(145deg, #182218, #1c261b);
  box-shadow: 0 25px 60px -15px rgba(245, 158, 11, 0.25), 0 0 35px rgba(239, 68, 68, 0.2);
}

.tiktok-screen-viewport {
  background: radial-gradient(circle at 50% 30%, #1e2b1d 0%, #172418 60%, #121c14 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 0 50px rgba(239, 68, 68, 0.25);
}

.tiktok-bg-canvas {
  background: 
    radial-gradient(ellipse at top right, rgba(239, 68, 68, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 70%);
}

/* Neon Glows (strictly Red, Green, Gold) */
.glow-red {
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4);
}
.glow-emerald {
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.85), 0 0 40px rgba(16, 185, 129, 0.45);
}
.glow-gold {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.85), 0 0 40px rgba(245, 158, 11, 0.5);
}

/* CapCut Kinetic Typography Keyframe Animations */
@keyframes capcutPop {
  0% {
    transform: scale(0.65) translateY(20px);
    opacity: 0;
  }
  60% {
    transform: scale(1.08) translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.capcut-entry-pop {
  animation: capcutPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes capcutShake {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
  20% { transform: translate(-3px, 2px) scale(1.05); opacity: 1; }
  40% { transform: translate(3px, -2px) scale(1.02); }
  60% { transform: translate(-2px, -1px) scale(1); }
  80% { transform: translate(1px, 2px) scale(1); }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
.capcut-entry-shake {
  animation: capcutShake 0.4s ease-out both;
}

@keyframes capcutPulse {
  0% { transform: scale(0.85); opacity: 0; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.capcut-entry-pulse {
  animation: capcutPulse 0.3s ease-out both;
}

/* Speed Lines simulation */
#videoSpeedLines {
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(245, 158, 11, 0.04) 18px,
    rgba(245, 158, 11, 0.04) 20px
  );
}

/* iPad Responsive Adaptations (Portrait & Landscape) */
@media only screen and (min-width: 768px) and (max-width: 1366px) {
  .home-hub-card {
    min-height: 110px;
  }
  #weeklyScheduleGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tab-view {
    max-width: 100%;
  }
}