/* ========================================
   BLOG STYLES
   ======================================== */

/* Blog Header */
.blog-header {
    padding: 150px 0 80px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-muted);
}

.breadcrumb span {
    color: var(--primary-light);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Blog Controls */
.blog-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 15px;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--white);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Blog Main */
.blog-main {
    padding: 60px 0 100px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

/* Blog Card */
.blog-card {
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.blog-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-meta i {
    color: var(--primary-light);
    font-size: 12px;
}

.blog-card-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-content h2 a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-content h2 a:hover {
    color: var(--primary-light);
}

.blog-card-content > p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--white);
    gap: 15px;
}

/* Related Section */
.related-section {
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
}

.related-section h3 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 25px;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: var(--white);
}

/* Blog CTA */
.blog-cta {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.blog-cta h3 {
    font-family: var(--font-display);
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 18px;
}

.blog-cta .btn {
    background: white;
    color: var(--primary-dark);
}

.blog-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */

.article-header {
    padding: 150px 0 60px;
}

.article-header .container {
    max-width: 900px;
}

.article-category {
    display: inline-block;
    background: var(--gradient-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.author-name {
    font-weight: 600;
    color: var(--white);
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

.article-stats {
    display: flex;
    gap: 25px;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-stats i {
    color: var(--primary-light);
}

/* Table of Contents */
.toc {
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.toc h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc h4 i {
    color: var(--primary-light);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.toc a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.toc a:hover {
    color: var(--primary-light);
}

.toc a:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

.article-content .container {
    max-width: 900px;
}

.article-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    margin: 50px 0 25px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: 22px;
    color: var(--white);
    margin: 35px 0 20px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.article-body ul,
.article-body ol {
    margin: 25px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.article-body strong {
    color: var(--white);
    font-weight: 600;
}

.article-body a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    transition: all var(--transition-fast);
}

.article-body a:hover {
    border-bottom-color: var(--primary-light);
}

.article-body blockquote {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 16px 16px 0;
}

.article-body blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text);
}

/* Info Box */
.info-box {
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
}

.info-box.tip {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.info-box.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--white);
}

.info-box.tip .info-box-header i {
    color: var(--success);
}

.info-box.warning .info-box-header i {
    color: var(--warning);
}

.info-box p {
    margin-bottom: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(139, 92, 246, 0.2);
    color: var(--white);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-muted);
}

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

.comparison-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

/* Article FAQ */
.article-faq {
    background: var(--dark-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin: 50px 0;
}

.article-faq h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 30px;
}

/* Article CTA */
.article-cta {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    margin: 50px 0;
}

.article-cta h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.article-cta .btn {
    background: white;
    color: var(--primary-dark);
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: var(--dark-lighter);
}

.related-articles h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 15px;
    }
}
