/* =========================================
   Downloads Pages Custom Styles for UP4U
   ========================================= */

/* Hero Section */
.docs-hero {
  background: radial-gradient(circle at 50% 0%, rgba(11, 99, 229, 0.12), transparent 60%);
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--docs-border);
}
.docs-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--docs-text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.docs-hero h1 span { color: var(--docs-primary); }
.docs-hero p {
  font-size: 1.1rem;
  color: var(--docs-text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.docs-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.docs-hero-actions a {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.docs-hero-actions .primary {
  background: var(--docs-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 99, 229, 0.3);
}
.docs-hero-actions .primary:hover {
  background: var(--docs-primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
}
.docs-hero-actions .secondary {
  background: var(--docs-bg-soft);
  color: var(--docs-text);
  border: 1px solid var(--docs-border);
}
.docs-hero-actions .secondary:hover {
  border-color: var(--docs-primary);
  color: var(--docs-primary);
  text-decoration: none;
}

/* Cards Section */
.docs-cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.docs-cards-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--docs-text);
}
.docs-cards-section .section-sub {
  text-align: center;
  color: var(--docs-text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}
.docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.docs-card {
  background: var(--docs-bg-soft);
  border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--docs-text);
  transition: 0.25s;
  display: block;
}
.docs-card:hover {
  border-color: var(--docs-primary);
  transform: translateY(-4px);
  box-shadow: var(--docs-shadow-lg);
  text-decoration: none;
}
.docs-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--docs-primary-soft);
  color: var(--docs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.docs-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--docs-text);
}
.docs-card p {
  color: var(--docs-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.docs-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--docs-border);
  padding-top: 16px;
}
.docs-card-list li {
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--docs-text-muted);
}
.docs-card-list li::before {
  content: '←';
  color: var(--docs-primary);
  margin-left: 8px;
  font-weight: 700;
}

/* Download Tables (for inner pages like jdk.html, webservers.html) */
.dl-table { 
  width: 100%; 
  border-collapse: collapse; 
  background: var(--docs-bg-soft); 
  border: 1px solid var(--docs-border); 
  border-radius: var(--docs-radius-lg); 
  overflow: hidden; 
  margin: 24px 0; 
}
.dl-table th, .dl-table td { 
  padding: 14px 16px; 
  text-align: right; 
  border-bottom: 1px solid var(--docs-border); 
  font-size: 0.9rem; 
}
.dl-table th { 
  background: var(--docs-primary-soft); 
  color: var(--docs-primary); 
  font-weight: 700; 
}
.dl-table tr:last-child td { 
  border-bottom: none; 
}
.dl-table tr:hover td { 
  background: rgba(11, 99, 229, 0.04); 
}
.dl-btn { 
  display: inline-block; 
  padding: 8px 20px; 
  border-radius: 24px; 
  background: var(--docs-primary); 
  color: #fff !important; 
  font-size: 0.85rem; 
  font-weight: 600; 
  text-decoration: none; 
  transition: 0.2s;
}
.dl-btn:hover { 
  background: var(--docs-primary-dark); 
  text-decoration: none; 
  transform: translateY(-1px);
}
.dl-note { 
  background: var(--docs-primary-soft); 
  border-right: 4px solid var(--docs-primary); 
  padding: 16px 20px; 
  border-radius: 8px; 
  margin: 24px 0; 
  font-size: 0.95rem; 
  line-height: 1.8;
}
.dl-note strong { 
  color: var(--docs-primary); 
}

/* Code Blocks */
pre {
  background: var(--docs-bg-soft); 
  border: 1px solid var(--docs-border); 
  padding: 16px; 
  border-radius: 8px; 
  overflow-x: auto; 
  direction: ltr; 
  text-align: left; 
  font-size: 0.85rem;
  font-family: monospace;
  margin: 16px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-hero h1 { font-size: 2rem; }
  .docs-hero p { font-size: 1rem; }
  .docs-cards-grid { grid-template-columns: 1fr; }
  .dl-table { display: block; overflow-x: auto; white-space: nowrap; }
}