/* Enhanced Article Styles for QlickXL */

/* Article Hero Section */
.article-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #667eea 100%);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><polygon points="30 10 40 25 30 40 20 25"/></g></g></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.article-meta span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.article-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ffffff;
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

/* Article Content */
.article-content {
    background: #ffffff;
    position: relative;
}

.article-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
}

/* Sticky Table of Contents */
.article-toc {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.toc-card {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.toc-card h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.toc-card ul {
    list-style: none;
    padding: 0;
}

.toc-card li {
    margin-bottom: 0.75rem;
}

.toc-card a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.toc-card a:hover {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

.toc-card a.active {
    color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.1);
    font-weight: 600;
}

.toc-card a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--primary-blue);
    border-radius: 0 3px 3px 0;
}

/* Article Main Content */
.article-main {
    max-width: 800px;
}

.article-section {
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-section h2 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
    border-radius: 2px;
}

.article-section h3 {
    color: #334155;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem;
}

.article-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #667eea);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 102, 204, 0.3);
}

.feature-card h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-card h4 i {
    font-size: 1.5rem;
    color: #3b82f6;
}

/* Comparison Tables */
.comparison-table {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #667eea 100%);
    color: white;
}

.comparison-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.125rem;
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr {
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    padding-left: 4rem;
}

.info-box::before {
    content: '\f05a';
    font-family: 'Phosphor';
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    font-size: 1.5rem;
    color: #3b82f6;
}

.info-box.warning {
    background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.info-box.warning::before {
    content: '\f071';
    color: #f59e0b;
}

.info-box.success {
    background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #34d399;
}

.info-box.success::before {
    content: '\f058';
    color: #10b981;
}

/* Enhanced Lists */
.article-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.article-section ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0, 102, 204, 0.2);
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-card h4 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.pricing-card .price-unit {
    font-size: 1rem;
    color: #64748b;
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #667eea 100%);
    border-radius: 1.5rem;
    padding: 4rem;
    margin: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
}

.article-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.article-cta .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .article-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 6rem 0 3rem;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-hero .lead {
        font-size: 1.125rem;
    }
    
    .article-section h2 {
        font-size: 1.75rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}