@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(150 8% 26%);
}

:root {
  --background: 150 12% 16%;
  --foreground: 0 0% 98%;
  --card: 150 10% 20%;
  --card-foreground: 0 0% 98%;
  --primary: 0 72% 51%;
  --primary-foreground: 0 0% 100%;
  --secondary: 145 63% 42%;
  --secondary-foreground: 0 0% 100%;
  --muted: 150 8% 26%;
  --muted-foreground: 150 6% 65%;
  --accent: 150 30% 25%;
  --accent-foreground: 0 0% 98%;
  --border: 150 8% 26%;
  --afghan-red: 0 72% 51%;
  --afghan-green: 145 63% 42%;
  --gold: 45 93% 58%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(0 40% 18%);
  border-bottom: 1px solid hsl(0 30% 25%);
  height: 7rem;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header .logo img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
}

.header .logo span {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, hsl(var(--afghan-red)), hsl(var(--afghan-green)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.3s;
  font-size: 0.9rem;
}

.header nav a:hover,
.header nav a.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(0 40% 18%);
  border-top: 1px solid hsl(0 30% 25%);
  padding: 0.75rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer .copyright {
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
}

.footer .donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 2rem;
  background: hsl(var(--gold));
  color: hsl(var(--background));
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s;
}

/* Layout */
.page {
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background) / 0.6), hsl(var(--background) / 0.4), hsl(var(--background)));
}

.hero .content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Page Header (smaller) */
.page-header {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--background) / 0.7), hsl(var(--background) / 0.5), hsl(var(--background)));
}

.page-header .content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, hsl(var(--afghan-red)), hsl(var(--afghan-green)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sections */
.section {
  padding: 5rem 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title p {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(180deg, hsl(var(--card)), hsl(150 10% 18%));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: hsl(var(--primary));
}

.feature-card .image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.feature-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.feature-card:hover .image img {
  transform: scale(1.1);
}

.feature-card .info {
  padding: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-card .subtitle {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.feature-card .desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* About Card */
.about-card {
  background: linear-gradient(180deg, hsl(var(--card)), hsl(150 10% 18%));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.about-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-card p {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Contact */
.contact-section {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  transition: all 0.3s;
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

.media-card {
  background: linear-gradient(180deg, hsl(var(--card)), hsl(220 20% 12%));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 0.75rem;
  transition: all 0.3s;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px hsl(var(--afghan-red) / 0.2);
}

.media-card .poster {
  aspect-ratio: 2/3;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.media-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card .meta {
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-family: inherit;
  transition: all 0.3s;
}

.category-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Description */
.description-section {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, hsl(150 15% 20%), hsl(0 25% 18%), hsl(var(--background)));
}

.description-section p {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Channel Grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

.channel-card {
  background: linear-gradient(180deg, hsl(var(--card)), hsl(220 20% 12%));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px hsl(var(--afghan-red) / 0.2);
}

.channel-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.channel-card .cat {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .header nav { display: none; }
  .hero h1 { font-size: 2rem; }
  .page-header h1 { font-size: 1.75rem; }
}
