/**
 * Producto - Estilos de la página de detalle de plugin
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables - Tema Claro (default) y Oscuro
   ========================================================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar-custom {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.navbar-brand span { color: var(--primary); }

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link-custom:hover { color: var(--primary) !important; }

.btn-theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none !important;
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.mobile-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav.show {
    display: flex !important;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-section {
    background: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ==========================================================================
   Product Header
   ========================================================================== */
.product-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Banner as background */
.product-header[style*="--banner-url"] {
    background-image: var(--banner-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark mode - only apply gradient when NO banner */
[data-theme="dark"] .product-header:not([style*="--banner-url"]) {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
}

/* Overlay for readability */
.product-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.75) 0%, rgba(118, 75, 162, 0.75) 100%);
    z-index: 0;
}

[data-theme="dark"] .product-header-overlay {
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.5) 0%, rgba(91, 33, 182, 0.5) 100%);
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.product-header .container { position: relative; z-index: 1; }

.product-image-wrapper {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}

.product-image-wrapper .product-icon {
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

.product-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.product-short-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.product-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-buy {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
    color: var(--primary-dark);
}

.btn-buy.btn-donate {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-buy.btn-donate:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.4);
}

.btn-demo {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-demo:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* ==========================================================================
   Tabs Navigation - IMPORTANTE: Estos estilos tienen prioridad
   ========================================================================== */
.tabs-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 73px;
    z-index: 100;
}

.nav-tabs-custom {
    border: none !important;
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-tabs-custom .nav-link {
    border: none !important;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    background: transparent !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--primary);
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* ==========================================================================
   Tab Content - CRÍTICO para el funcionamiento
   ========================================================================== */
.tab-content {
    width: 100%;
}

.tab-content > .tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.15s linear;
}

.tab-content > .tab-pane.active {
    display: block;
}

.tab-content > .tab-pane.show {
    opacity: 1;
}

/* ==========================================================================
   Content Section
   ========================================================================== */
.content-section {
    padding: 4rem 0;
}

/* Description */
.product-description {
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-description h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-description h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-description h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-description h4,
.product-description h5,
.product-description h6 {
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description p { 
    margin-bottom: 1rem; 
}

.product-description ul,
.product-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.product-description li { 
    margin-bottom: 0.5rem; 
}

.product-description li ul,
.product-description li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-description strong,
.product-description b {
    color: var(--text-primary);
    font-weight: 600;
}

.product-description em,
.product-description i {
    font-style: italic;
}

.product-description u {
    text-decoration: underline;
}

.product-description s,
.product-description strike {
    text-decoration: line-through;
    opacity: 0.7;
}

.product-description a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.product-description a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.product-description blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-tertiary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.product-description pre,
.product-description code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.875rem;
}

.product-description code {
    background: var(--bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--primary);
}

.product-description pre {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.product-description pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.product-description video,
.product-description iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-description th,
.product-description td {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.product-description th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.product-description tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.product-description tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.product-description hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.screenshot-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.screenshot-item:hover img {
    transform: scale(1.03);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-item:hover .screenshot-overlay { opacity: 1; }

.screenshot-overlay i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.screenshot-caption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Empty state for screenshots */
.screenshots-gallery:empty::after {
    content: 'No hay capturas disponibles';
    display: block;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    grid-column: 1 / -1;
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.pricing-card.featured::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.pricing-type {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-sites {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-duration {
    margin: 1.5rem 0;
}

.pricing-duration select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pricing-features li i {
    color: var(--success);
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.btn-pricing-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(99,102,241,0.5);
    color: white;
}

.btn-pricing-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-pricing-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.accordion-button:focus { box-shadow: none; }

[data-theme="dark"] .accordion-button::after { filter: invert(1); }

.accordion-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    background: var(--card-bg);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar-sticky {
    position: sticky;
    top: 140px;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.sidebar-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Sidebar Badges - shields.io style */
.sidebar-badges {
    margin: 1.25rem 0 0 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.sidebar-badge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.sidebar-badge-item:last-child {
    padding-bottom: 0;
}

.sidebar-badge-item .badge-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-badge-item img {
    height: 20px;
    border-radius: 3px;
}

/* Sidebar Actions with spacing */
.sidebar-actions {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-card-license h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.sidebar-info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.sidebar-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.sidebar-info-list li:last-child { border-bottom: none; }

.sidebar-info-list .label { color: var(--text-muted); }
.sidebar-info-list .value { font-weight: 600; }

.btn-sidebar {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.btn-sidebar-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-sidebar-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(99,102,241,0.5);
    color: white;
}

.btn-sidebar-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-sidebar-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sidebar Help Text */
.sidebar-help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* WhatsApp Button */
.btn-whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.btn-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

/* ==========================================================================
   Related Products
   ========================================================================== */
.related-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.related-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.related-card-image {
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-image i {
    font-size: 3rem;
    color: white;
}

.related-card-content {
    padding: 1.5rem;
}

.related-card-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.related-card-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

.related-card-content h4 a:hover { color: var(--primary); }

.related-card-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Documentation Tab
   ========================================================================== */
.docs-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pdf-toolbar,
.markdown-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.pdf-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.markdown-content {
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.markdown-rendered {
    line-height: 1.8;
}

.markdown-rendered h1,
.markdown-rendered h2,
.markdown-rendered h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.markdown-rendered pre {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.markdown-rendered code {
    background: var(--bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.875rem;
}

.markdown-rendered pre code {
    background: none;
    padding: 0;
}

/* ==========================================================================
   Download Tab
   ========================================================================== */
.download-container {
    max-width: 600px;
    margin: 0 auto;
}

.download-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.download-icon i {
    font-size: 2.5rem;
    color: white;
}

.download-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-action {
    margin-top: 2rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.download-requirements {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.download-requirements h5 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.download-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

/* ==========================================================================
   Demo Tab (Video)
   ========================================================================== */
.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.demo-description {
    text-align: center;
}

/* ==========================================================================
   Repository Tab
   ========================================================================== */
.repo-container {
    max-width: 700px;
    margin: 0 auto;
}

.repo-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.repo-icon {
    width: 80px;
    height: 80px;
    background: #24292e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.repo-icon i {
    font-size: 2.5rem;
    color: white;
}

.repo-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.repo-url {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    word-break: break-all;
}

.repo-url code {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.repo-instructions {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.repo-instructions h5 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.code-block {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.code-block code {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .product-header h1 { font-size: 2rem; }
    .tabs-section { top: 73px; }
    .sidebar-sticky { position: relative; top: 0; }
}

@media (max-width: 768px) {
    .product-header { padding: 2rem 0; }
    .product-header h1 { font-size: 1.75rem; }
    .product-meta { gap: 1rem; }
    .content-section { padding: 2rem 0; }
    
    .nav-tabs-custom .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .pdf-iframe {
        height: 400px;
    }
    
    .download-meta {
        flex-direction: column;
        gap: 0.5rem;
