/* OmKarTv - Custom Stylesheet */

/* Theme variables */
:root {
  /* Light Skyblue Mode (Default & Active Light Mode) */
  --bg-primary: #e0f2fe; /* light skyblue-100 instead of white */
  --bg-secondary: #bae6fd; /* light skyblue-200 for cards */
  --bg-tertiary: #7dd3fc; /* skyblue-300 */
  --text-primary: #0f172a; /* deep slate blue instead of black */
  --text-secondary: #334155; /* slate gray */
  --accent-color: #0284c7; /* sky-600 */
  --accent-hover: #0369a1; /* sky-700 */
  --border-color: #93c5fd; /* light blue-300 */
  --glow-color: rgba(2, 132, 199, 0.4);
  --font-nepali: 'Preeti', 'Kantipur', 'Noto Sans Devanagari', sans-serif;
  --panel-bg: rgba(186, 230, 253, 0.85);
}

[data-theme="dark"] {
  /* Dark Skyblue Mode (Instead of pure black) */
  --bg-primary: #0b1e33; /* Deep dark blue-sky instead of black */
  --bg-secondary: #13315c; /* Medium deep sky blue for cards */
  --bg-tertiary: #1e4275; /* Sky blue card header */
  --text-primary: #e2e8f0; /* Soft white/ice-blue text */
  --text-secondary: #94a3b8; /* Ice-slate text */
  --accent-color: #38bdf8; /* Bright sky-400 */
  --accent-hover: #7dd3fc; /* Bright sky-300 */
  --border-color: #1d4ed8; /* Darker blue border */
  --glow-color: rgba(56, 189, 248, 0.4);
  --panel-bg: rgba(19, 49, 92, 0.85);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  overflow-x: hidden;
}

/* Apply variables to custom components */
.themed-bg {
  background-color: var(--bg-primary);
}
.themed-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
}
.themed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px var(--glow-color);
}
.themed-header {
  background-color: var(--bg-tertiary);
}
.themed-text {
  color: var(--text-primary);
}
.themed-text-muted {
  color: var(--text-secondary);
}
.themed-border {
  border-color: var(--border-color);
}
.themed-button {
  background-color: var(--accent-color);
  color: #ffffff;
  transition: all 0.3s ease;
}
.themed-button:hover {
  background-color: var(--accent-hover);
  transform: scale(1.02);
}

/* Spiritual Navbar Header Styling */
.spiritual-bar {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 50%, #b45309 100%);
  color: #fffbeb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

/* Slider / Carousel styling */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--border-color);
}
.slide {
  display: none;
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.slide.active {
  display: block;
  animation: fadeEffect 0.8s ease-in-out;
}
.slide-overlay {
  background: linear-gradient(to top, rgba(11, 30, 51, 0.95) 0%, rgba(11, 30, 51, 0.6) 50%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  color: #e2e8f0;
}
@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Pulse animation for Live Streaming button */
.live-pulse {
  position: relative;
}
.live-pulse::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  right: -14px;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Chatbot Overlay styling */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chatbot-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  animation: bounce 2s infinite;
}
.chatbot-bubble:hover {
  transform: scale(1.1);
  background-color: var(--accent-hover);
}
.chatbot-window {
  width: 380px;
  height: 520px;
  border-radius: 16px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}
.chatbot-window.active {
  display: flex;
}
.chatbot-header {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chatbot-message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chatbot-message.bot {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid var(--border-color);
}
.chatbot-message.user {
  background-color: var(--accent-color);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.chatbot-input-area {
  display: flex;
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}
.chatbot-input {
  flex-grow: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
}
.chatbot-send {
  background-color: var(--accent-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.chatbot-send:hover {
  background-color: var(--accent-hover);
}

/* Nepal's traditional norms card style */
.spiritual-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1.5px solid #ea580c;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.spiritual-card::before {
  content: 'ॐ';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 7rem;
  opacity: 0.08;
  color: #ea580c;
  font-weight: bold;
  pointer-events: none;
}

/* Video streaming player container */
.live-stream-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #ef4444; /* red pulse border for Live */
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Infinite Marquee Animation for Tickers */
.animate-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Dynamic visualizer simulator */
.visualizer-bar {
  width: 3px;
  height: 15px;
  background-color: #38bdf8;
  animation: visualize 1s ease-in-out infinite alternate;
}
@keyframes visualize {
  0% { height: 4px; }
  100% { height: 28px; }
}

/* Accordion dropdown toggle animation */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-active .accordion-content {
  max-height: 200px;
}

/* Timeline component */
.timeline-item {
  position: relative;
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
}
.timeline-item::after {
  content: 'ॐ';
  position: absolute;
  left: -9px;
  top: 0;
  width: 18px;
  height: 18px;
  background-color: #ea580c;
  border-radius: 50%;
  color: white;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.animate-spinner {
  animation: spinner 1s linear infinite;
}
