/**
 * ArturDevs - Plugins Home Page CSS
 * Estilos específicos para la página principal de plugins
 * @version 2.0.0
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: var(--hero-gradient);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::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");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-badges {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stats-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.3);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-image .product-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-version {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.product-version i {
    font-size: 0.7rem;
}

.product-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.product-requirements img {
    height: 18px;
    border-radius: 3px;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #0bf5d6 0%, #05e2c5 100%);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.product-badge .badge-label {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.9;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.product-features li i {
    color: var(--success);
    font-size: 1rem;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Licenses Section
   ========================================================================== */
.licenses-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.licenses-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.licenses-table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: collapse;
    min-width: 800px;
}

.licenses-table th,
.licenses-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.licenses-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.licenses-table tbody tr:hover {
    background: var(--bg-secondary);
}

.licenses-table tbody tr:last-child td {
    border-bottom: none;
}

.license-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.license-gpl {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

[data-theme="dark"] .license-gpl {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.license-mit {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

[data-theme="dark"] .license-mit {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.license-apache {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

[data-theme="dark"] .license-apache {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.license-prop {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

[data-theme="dark"] .license-prop {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.license-dual {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

[data-theme="dark"] .license-dual {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.status-yes {
    color: var(--success);
    font-weight: 500;
}

.status-no {
    color: var(--danger);
    font-weight: 500;
}

.status-warning {
    color: var(--warning);
    font-weight: 500;
}

.status-partial {
    color: var(--text-muted);
    font-weight: 500;
}

.status-yes i,
.status-no i,
.status-warning i,
.status-partial i {
    margin-right: 0.35rem;
}

.license-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 250px;
}

.license-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.license-info-card h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 5rem 0;
    background: var(--hero-gradient);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 12px;
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .stat-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}
