/* Basic reset and font setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background-color: #000;
  color: #fff;
  line-height: 1.5;
}

#root {
  height: 100vh;
  overflow: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.heading-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Positioning */
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.pl-4 { padding-left: 1rem; }

/* Colors */
.bg-black { background-color: #000; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-red-900 { background-color: #7f1d1d; }
.bg-red-950 { background-color: #450a0a; }
.bg-red-600 { background-color: #dc2626; }
.text-white { color: #fff; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.border-gray-700 { border-color: #374151; }
.border-red-700 { border-color: #b91c1c; }
.border-red-600 { border-color: #dc2626; }
.border-red-800 { border-color: #991b1b; }

/* Background opacity */
.bg-opacity-95 { 
  background-color: rgba(17, 24, 39, 0.95); 
}

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-mono { font-family: 'Courier New', monospace; }

/* Text alignment - Fixed and enhanced */
.text-center { 
  text-align: center !important;
}

/* Ensure headings are centered */
h1, h2, h3 {
  text-align: inherit;
}

/* Specific heading centering fixes */
section .text-center h1,
section .text-center h2,
section .text-center h3,
.text-center h1,
.text-center h2,
.text-center h3 {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.leading-relaxed { line-height: 1.625; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded { border-radius: 0.25rem; }

/* Shadows */
.shadow-sm { 
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
}

/* Min height */
.min-h-screen { min-height: 100vh; }

/* Width/Height */
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-fit { width: fit-content; }

/* Flex properties */
.flex-col { flex-direction: column; }

/* Grid */
.grid { display: grid; }

/* Backgrounds */
.bg-gradient-to-b { 
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); 
}
.from-gray-900 { 
  --tw-gradient-from: #111827; 
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0));
}
.to-black { 
  --tw-gradient-to: #000; 
}

/* Transitions */
.transition-all { 
  transition-property: all; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms; 
}
.transition-colors { 
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms; 
}
.duration-500 { transition-duration: 500ms; }

/* Hover effects */
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:border-red-500:hover { border-color: #ef4444; }

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse { 
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; 
}

/* Button styles */
button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
}

.inline-flex {
  display: inline-flex;
}

/* SVG styles */
svg {
  display: block;
  vertical-align: middle;
}

/* Space utilities */
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

/* Additional utilities */
.whitespace-nowrap { white-space: nowrap; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.opacity-95 { opacity: 0.95; }

/* Badge/Button component styles */
[data-slot="badge"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
  white-space: nowrap;
}

[data-slot="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

[data-slot="card"] {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Main layout structure */
.scrollable-container {
  height: calc(100vh - 112px); /* Adjust based on your header height */
  overflow-y: auto;
}

.main-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  max-width: 95vw;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Left content area - 75% */
.content-container {
  flex: 1;
  xpadding-right: 2rem;
  min-width: 0;
}

/* Right video sidebar - 25% */
.video-container {
  flex: 0 0 400;
  min-width: 300px;
  max-width: 400px;
  padding-left: 2rem;
  position: sticky;
  top: 0;
  xheight: fit-content;
  xmax-height: calc(100vh - 112px);
  xoverflow-y: hidden;
}

/* Video grid layout */
.video-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.video-item-vertical {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  font-size: 0.875rem; 
}

.video-item-vertical iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Scrollbar for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #374151 #111827;
}

/* Enhanced section styling */
section {
  position: relative;
  z-index: 1;
}

/* Hero section specific fixes */
section[class*="bg-gradient-to-b"] {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

section[class*="bg-gradient-to-b"] .text-center {
  width: 100%;
  max-width: none;
}

section[class*="bg-gradient-to-b"] h1 {
  text-align: center !important;
  width: 100%;
  margin: 0 auto;
}

/* Responsive design */
@media (max-width: 1200px) {
  .main-layout {
    padding: 0 0.5rem;
  }
  
  .content-container {
    padding-right: 1rem;
  }
  
  .video-container {
    padding-left: 1rem;
    min-width: 280px;
  }
}

@media (max-width: 1000px) {
  .main-layout {
    flex-direction: column;
  }
  
  .content-container,
  .video-container {
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
    max-width: none;
    min-width: 0;
  }
  
  .video-container {
    position: static;
    max-height: none;
    margin-top: 2rem;
  }
  
  .video-grid-vertical {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .video-item-vertical {
    flex: 0 0 300px;
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .main-layout {
    padding: 0;
  }
  
  .text-7xl {
    font-size: 3rem;
  }
  
  .text-4xl {
    font-size: 2rem;
  }
  
  .text-3xl {
    font-size: 1.75rem;
  }
  
  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-16 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .p-8 {
    padding: 1.5rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  /* Stack navigation items on mobile */
  nav .container .flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav .container .flex:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Video grid adjustments for mobile */
  .video-item-vertical {
    flex: 0 0 280px;
    min-width: 280px;
  }
  
  .video-grid-vertical {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .text-7xl {
    font-size: 2.5rem;
  }
  
  .text-4xl {
    font-size: 1.75rem;
  }
  
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
  }
  
  .p-8 {
    padding: 1rem;
  }
  
  .p-6 {
    padding: 0.75rem;
  }
  
  .px-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Smaller video items on very small screens */
  .video-item-vertical {
    flex: 0 0 250px;
    min-width: 250px;
  }
  
  /* Adjust navigation for very small screens */
  nav .container .flex:last-child {
    gap: 0.5rem;
  }
  
  nav [data-slot="button"] {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Focus states for accessibility */
a:focus,
button:focus,
[data-slot="button"]:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .video-container,
  nav,
  .bg-red-900 {
    display: none;
  }
  
  .content-container {
    flex: 1;
    padding: 0;
  }
  
  .main-layout {
    flex-direction: column;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .bg-black,
  .bg-gray-900,
  .bg-gray-800 {
    background: #fff !important;
    color: #000 !important;
  }
  
  .text-white,
  .text-gray-300,
  .text-gray-400 {
    color: #000 !important;
  }
  
  .text-red-500,
  .text-red-400,
  .text-red-300 {
    color: #dc2626 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-gray-300,
  .text-gray-400 {
    color: #fff;
  }
  
  .border-gray-700 {
    border-color: #fff;
  }
  
  [data-slot="card"] {
    border-color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-pulse {
    animation: none;
  }
  
  .transition-all,
  .transition-colors {
    transition: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode adjustments (if needed) */
@media (prefers-color-scheme: light) {
  /* Your site is already dark themed, but you can add light mode overrides here if needed */
}

/* Utility classes for better text handling */
/* .text-balance {
  text-wrap: balance;
} */

/* .text-pretty {
  text-wrap: pretty;
} */

/* Additional hover states for better UX */
nav a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  transition: all 150ms ease;
}

[data-slot="card"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Ensure proper stacking context */
.bg-red-900 {
  position: relative;
  z-index: 50;
}

nav {
  position: relative;
  z-index: 40;
}

.scrollable-container {
  position: relative;
  z-index: 10;
}

/* Fix for any remaining centering issues */
.text-center * {
  text-align: center;
}

/* Ensure iframe responsiveness */
iframe {
  max-width: 100%;
  height: auto;
}

/* Loading states */
.video-item-vertical iframe {
  background-color: #1f2937;
  transition: opacity 300ms ease;
}

.video-item-vertical iframe:not([src]) {
  opacity: 0.5;
}