
@import url('./nav.css');

:root {
    --primary-color: #007bff;
    --background-dark: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --focus-outline-color: #ffffff;
  }
  
  /* Base layout with sidebar */
  body {
    display: flex;
    background: linear-gradient(135deg, rgb(19, 19, 19) 0%, rgba(46, 46, 46, 0.9) 100%);
  }
  
  .main-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    height: 100vh;
  }
  
  .category-page-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* --- Header Banner --- */
  .category-header {
    text-align: center;
    background: linear-gradient(to right, #06b6d4, #3b82f6); /* from-cyan-500 to-blue-600 */
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  }
  
  .header-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  }
  
  .header-subtitle {
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* --- Category Grid --- */
  .category-grid {
    display: grid;
    gap: 1.5rem;
    /* Default to 4 columns */
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* --- Category Card --- */
  .category-card {
    display: block;
    padding: 1.5rem;
    border-radius: 0.75rem;
    height: 180px;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 2px solid transparent; /* Reserve space for focus border */
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }
  
  /* TV & Web Focus/Hover State */
  .category-card:hover,
  .category-card:focus,
  .category-card.focused {
    outline: none;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: var(--focus-outline-color);
    z-index: 10;
  }
  
  .category-card h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .category-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  /* Card-specific Gradients */
  .card-hollywood  { background: linear-gradient(to bottom right, #ef4444, #f59e0b); }
  .card-bollywood  { background: linear-gradient(to bottom right, #10b981, #0d9488); }
  .card-animation  { background: linear-gradient(to bottom right, #a855f7, #ec4899); }
  .card-premium    { background: linear-gradient(to bottom right, #2563eb, #4f46e5); }
  .card-series     { background: linear-gradient(to bottom right, #f59e0b, #ea580c); }
  .card-asian      { background: linear-gradient(to bottom right, #f43f5e, #dc2626); }
  .card-free       { background: linear-gradient(to bottom right, #22c55e, #10b981); }
  .card-documentary{ background: linear-gradient(to bottom right, #475569, #334155); }
  .card-adult      { background: linear-gradient(to bottom right, #64748b, #9ca3af); }
  
  
  /* Responsive Adjustments */
  @media (max-width: 1280px) { /* xl breakpoint */
    .category-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 1024px) { /* lg breakpoint */
    .category-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 640px) { /* sm breakpoint */
    .category-grid {
      grid-template-columns: 1fr;
    }
    .main-content {
      padding: 1rem;
    }
  }