/**
 * Downloads Page Styles
 * Extracted from page-downloads.php inline <style> block
 *
 * @package Teleworld_AI_Theme
 * @since 1.1.0
 */

/* Downloads Page Styles */
.downloads-page {
  padding-top: calc(var(--header-height) + 20px);
}

/* Downloads Hero */
.downloads-hero {
  background: linear-gradient(
    135deg,
    #1e1b4b 0%,
    #312e81 25%,
    #1e293b 75%,
    #0f172a 100%
  );
  padding: 120px 0;
  text-align: center;
}

.downloads-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
}

/* SDKs Section */
.sdks-section {
  padding: 100px 0;
}

.sdks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.sdk-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.sdk-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.sdk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: rgba(139, 92, 246, 0.1);
  position: relative;
}

.sdk-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
}

.sdk-info {
  flex: 1;
}

.sdk-info h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sdk-version {
  color: #8b5cf6;
  font-size: 0.9rem;
  font-weight: 600;
}

.sdk-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.sdk-badge.popular {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sdk-badge:not(.popular):not(.enterprise) {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sdk-badge.enterprise {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sdk-content {
  padding: 2rem;
}

.sdk-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sdk-requirements {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.requirements-label {
  color: #94a3b8;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.requirements-value {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

.sdk-features {
  margin-bottom: 2rem;
}

.feature-item {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.feature-item:before {
  content: "";
  width: 4px;
  height: 4px;
  background: #8b5cf6;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.sdk-actions {
  display: flex;
  gap: 0.5rem;
}

.sdk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sdk-btn.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  flex: 1;
}

.sdk-btn.secondary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  flex: 1;
}

.sdk-btn.tertiary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  flex: 1;
}

.sdk-btn.quaternary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  flex: 1;
}

.sdk-btn.icon {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  width: 45px;
  padding: 0.75rem;
}

.sdk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  color: white;
}

/* Tools Section */
.tools-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tool-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2rem;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tool-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.tool-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-content p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tool-features {
  margin-bottom: 2rem;
}

.tool-actions {
  display: flex;
  gap: 0.5rem;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tool-btn.postman {
  background: #ff6c37;
  color: white;
  width: 100%;
  justify-content: center;
}

.tool-btn.json {
  background: #10b981;
  color: white;
  flex: 1;
  justify-content: center;
}

.tool-btn.yaml {
  background: #3b82f6;
  color: white;
  flex: 1;
  justify-content: center;
}

.tool-btn.pdf {
  background: #dc2626;
  color: white;
  width: 100%;
  justify-content: center;
}

.tool-btn.github {
  background: #374151;
  color: white;
  width: 100%;
  justify-content: center;
}

.tool-btn.cli {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  width: 100%;
  justify-content: center;
}

.tool-btn.docker {
  background: #0db7ed;
  color: white;
  width: 100%;
  justify-content: center;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Installation Section */
.installation-section {
  padding: 100px 0;
}

.installation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.install-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.install-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1);
}

.install-header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(139, 92, 246, 0.1);
}

.install-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.install-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.install-content {
  padding: 2rem;
}

.code-block {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 1rem;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.code-title {
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 600;
}

.copy-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.copy-btn:hover {
  color: #8b5cf6;
}

.code-block code {
  display: block;
  padding: 1rem;
  color: #e2e8f0;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.install-note {
  color: #94a3b8;
  font-size: 0.8rem;
  font-style: italic;
}

/* Support CTA Section */
.support-cta-section {
  padding: 100px 0;
  background: rgba(30, 41, 59, 0.3);
}

.support-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.support-text h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-text p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  justify-content: center;
}

.support-btn.primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.support-btn.secondary {
  background: transparent;
  color: #8b5cf6;
  border: 2px solid #8b5cf6;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.support-btn.secondary:hover {
  background: #8b5cf6;
  color: white;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .downloads-page {
    padding-top: calc(var(--header-height) + 10px);
  }

  .downloads-hero {
    padding: 60px 0;
  }

  .page-title {
    font-size: 3rem;
  }

  .page-subtitle {
    font-size: 1.15rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 2.5rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .sdks-section,
  .tools-section,
  .installation-section {
    padding: 80px 0;
  }

  .support-cta-section {
    padding: 80px 0;
  }

  .sdks-grid,
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .support-cta-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .support-text h2 {
    font-size: 2.2rem;
  }

  .sdk-card {
    border-radius: 16px;
  }

  .sdk-header {
    padding: 1.75rem;
  }

  .sdk-content {
    padding: 1.75rem;
  }

  .tool-card {
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .downloads-page {
    padding-top: calc(var(--header-height) + 8px);
  }

  .downloads-hero {
    padding: 50px 0;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .sdks-section,
  .tools-section,
  .installation-section {
    padding: 60px 0;
  }

  .support-cta-section {
    padding: 60px 0;
  }

  .sdks-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .installation-grid {
    grid-template-columns: 1fr;
  }

  .sdk-card:hover,
  .tool-card:hover,
  .install-card:hover {
    transform: none;
  }

  .sdk-info h3 {
    font-size: 1.15rem;
  }

  .sdk-icon {
    font-size: 2rem;
  }

  .sdk-actions,
  .tool-actions {
    flex-direction: column;
  }

  .support-text h2 {
    font-size: 1.85rem;
  }

  .support-text p {
    font-size: 1rem;
  }

  .support-actions {
    align-items: stretch;
  }

  .tool-header h3 {
    font-size: 1.1rem;
  }

  .install-header h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .downloads-page {
    padding-top: calc(var(--header-height) + 2px);
  }

  .downloads-hero {
    padding: 40px 0;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .sdks-section,
  .tools-section,
  .installation-section,
  .support-cta-section {
    padding: 40px 0;
  }

  .sdk-header,
  .install-header {
    padding: 1.25rem;
  }

  .sdk-content,
  .tool-card,
  .install-content {
    padding: 1.25rem;
  }

  .sdk-info h3 {
    font-size: 1.05rem;
  }

  .sdk-icon {
    font-size: 1.75rem;
  }

  .sdk-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .sdk-content p,
  .tool-content p {
    font-size: 0.88rem;
  }

  .feature-item {
    font-size: 0.82rem;
  }

  .sdk-btn,
  .tool-btn {
    font-size: 0.82rem;
    padding: 0.65rem 1.25rem;
  }

  .support-text h2 {
    font-size: 1.5rem;
  }

  .support-text p {
    font-size: 0.9rem;
  }

  .support-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .code-block code {
    font-size: 0.78rem;
    padding: 0.75rem;
  }

  .install-note {
    font-size: 0.75rem;
  }

  .tool-header h3 {
    font-size: 1rem;
  }

  .tool-icon {
    font-size: 1.5rem;
  }

  .install-icon {
    font-size: 1.25rem;
  }

  .install-header h3 {
    font-size: 1rem;
  }
}

/* ---------- 360px (Extra Small Mobile) ---------- */
@media (max-width: 360px) {
  .downloads-page {
    padding-top: var(--header-height);
  }

  .downloads-hero {
    padding: 30px 0;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .tools-section,
  .sdks-section,
  .installation-section,
  .support-cta-section {
    padding: 30px 0;
  }

  .tool-card,
  .sdk-card {
    padding: 1rem;
    border-radius: 8px;
  }

  .tool-header h3,
  .sdk-name {
    font-size: 0.95rem;
  }
}

/* ---------- Landscape ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .downloads-page {
    padding-top: calc(var(--header-height) + 8px);
  }

  .downloads-hero {
    padding: 25px 0;
  }

  .tools-section,
  .sdks-section,
  .installation-section,
  .support-cta-section {
    padding: 25px 0;
  }
}

/* ---------- Safe-area Insets ---------- */
@supports (padding: env(safe-area-inset-left)) {
  .tools-section,
  .sdks-section,
  .installation-section,
  .support-cta-section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  @media (max-width: 480px) {
    .tools-section,
    .sdks-section,
    .installation-section,
    .support-cta-section {
      padding-left: max(0.75rem, env(safe-area-inset-left));
      padding-right: max(0.75rem, env(safe-area-inset-right));
    }
  }
}

/* Copy to clipboard functionality */
