/*
Theme Name: Ahdaf Online
Theme URI: https://ahdaf.online
Author: ahdaf
Author URI: https://ahdaf.online
Description: Sleek dark neon WordPress theme for sports live streaming and match schedules.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ahdaf-online
Tags: black, green, sports, blog, custom-menu, featured-images, rtl-language-support, translation-ready

This theme is designed specifically for ahdaf.online sports streaming.
*/

:root {
  --bg-dark: #09090b;
  --card-bg: #18181b;
  --accent: #00ff88;
  --text-dim: #a1a1aa;
  --text-bright: #ffffff;
  --glass: rgba(255, 255, 255, 0.03);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-bright);
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #27272a #09090b;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Glassmorphism glass card style */
.glass-panel {
  background: rgba(24, 24, 27, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-hover:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 136, 0.15);
}

/* Pulser for Live Badge */
.live-pulse {
  position: relative;
}
.live-pulse::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #EF4444;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px #EF4444;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(0.9);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-50%) scale(0.9);
    opacity: 1;
  }
}

/* Custom Video Container constraints */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.7) 60%, rgba(9, 9, 11, 0) 100%);
  padding: 1.5rem 1rem 0.75rem 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

/* Spinner */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-left-color: #00ff88;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Custom styling for inputs range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background-color: #00ff88;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  transition: transform 0.1s ease;
}

.big-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 255, 136, 0.9);
  color: #000000;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  border: none;
}

.big-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #00ff88;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
}
