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

:root {
  --primary: #1a5c3a;
  --primary-light: #2d8253;
  --primary-glow: rgba(26, 92, 58, 0.3);
  --accent: #d4af37; /* Warm Gold */
  --bg-dark: #070d0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(26, 92, 58, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(26, 92, 58, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(26, 92, 58, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(7, 13, 10, 1) 0%, rgba(3, 6, 4, 1) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

/* Header styling */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 13, 10, 0.8);
  border-bottom: 1px solid var(--border-glass);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-block img {
  height: 28px;
  width: auto;
}

.logo-block span.tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(26, 92, 58, 0.25);
  color: #55d691;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(26, 92, 58, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-main);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

/* Hero Section */
.hero {
  max-width: 800px;
  margin: 60px auto 40px;
  text-align: center;
  padding: 0 24px;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  background: linear-gradient(to right, #ffffff, #88c0a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Search Box */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary-light);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Main Dashboard Grid */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Glassmorphic Card */
.support-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0.6;
  transition: var(--transition);
}

.support-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(26, 92, 58, 0.15);
}

.support-card:hover::before {
  opacity: 1;
  height: 6px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(26, 92, 58, 0.2);
  border: 1px solid rgba(26, 92, 58, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55d691;
  margin-bottom: 20px;
  transition: var(--transition);
}

.support-card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.support-card h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.support-card p.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 0;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.topic-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.topic-item a svg.play-icon {
  color: var(--primary-light);
  opacity: 0.7;
  transition: var(--transition);
}

.topic-item a:hover {
  color: white;
  transform: translateX(4px);
}

.topic-item a:hover svg.play-icon {
  color: #55d691;
  opacity: 1;
  transform: scale(1.1);
}

/* Individual Problem Layout */
.problem-container {
  max-width: 800px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.problem-header {
  margin-bottom: 30px;
}

.problem-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #55d691;
  margin-bottom: 12px;
}

.problem-header h1 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1.25;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 36px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Content Blocks */
.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
}

.content-card h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.instruction-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  display: flex;
  gap: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 92, 58, 0.2);
  border: 1px solid rgba(26, 92, 58, 0.4);
  color: #55d691;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-item h3::before {
  content: 'Q:';
  color: var(--accent);
  font-weight: 700;
}

.faq-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 24px;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 12px;
  margin-top: auto;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: white;
}

/* Responsive Viewports */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .problem-header h1 {
    font-size: 24px;
  }
  
  .content-card {
    padding: 20px;
  }
}
