/* ==========================================
   BLOG DETAIL PAGE STYLES
   ========================================== */

/* Article Hero */
.article-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.article-hero .breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-hero .breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.article-hero .breadcrumb-nav a:hover {
    opacity: 0.7;
}

.article-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.article-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge-category {
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.article-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.article-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.article-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-stats svg {
    width: 16px;
    height: 16px;
}

/* Featured Image */
.article-featured-image {
    padding: 40px 0;
    background: #fff;
}

.featured-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stats Banner */
.article-stats-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Content */
.article-content-section {
    padding: 80px 0;
    background: #fff;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 50px;
}

.content-block p {
    margin-bottom: 20px;
}

.content-block strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffef0 100%);
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    margin: 40px 0;
}

.highlight-icon {
    font-size: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
}

.highlight-icon svg {
    width: 36px;
    height: 36px;
}

.highlight-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.highlight-content p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Visual Divider */
.visual-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.divider-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.divider-icon svg {
    width: 32px;
    height: 32px;
}

/* Workflow Steps */
.workflow-steps {
    margin: 40px 0;
}

.workflow-step {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.workflow-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.step-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.step-tags .tag {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.example-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
}

.example-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.example-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 17px;
}

.feature-list li svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 12px;
    margin-top: 20px;
}

.benefit-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-text {
    font-size: 16px;
    color: var(--text-primary);
}

.reminder-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.reminder-list li {
    padding: 12px 0;
    font-size: 17px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminder-list li svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* CTA Inline */
.cta-inline {
    margin: 60px 0;
    padding: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inline::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-inline-content {
    position: relative;
    z-index: 2;
}

.cta-inline h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-inline h3 svg {
    width: 32px;
    height: 32px;
}

.cta-inline p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.benefit-box {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.benefit-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon-large {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.benefit-icon-large svg {
    width: 48px;
    height: 48px;
}

.benefit-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-box p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.benefit-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.benefit-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.benefit-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* Quote Box */
.quote-box {
    position: relative;
    padding: 50px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 16px;
    margin: 60px 0;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 24px;
    padding-left: 30px;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 30px;
}

.quote-author .author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.quote-author .author-role {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Stats Comparison */
.stats-comparison {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
    margin: 40px 0;
    align-items: stretch;
}

.comparison-col {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.col-header {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.comparison-col.before .col-header {
    color: #dc3545;
}

.comparison-col.after .col-header {
    color: var(--primary-color);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value.red {
    color: #dc3545;
}

.metric-value.green {
    color: #28a745;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
}

/* Simple Steps */
.steps-simple {
    margin: 40px 0;
}

.simple-step {
    display: flex;
    gap: 24px;
    padding: 30px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.simple-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.simple-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
}

.simple-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.simple-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.tag-label {
    font-weight: 700;
    color: var(--text-primary);
}

.article-tag {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.article-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
}

.sidebar-card h3,
.sidebar-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.sidebar-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA Sidebar */
.cta-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary-color);
}

.cta-sidebar h3 {
    color: #fff;
}

.cta-sidebar p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #fff;
    font-size: 15px;
}

.cta-features li svg {
    width: 18px;
    height: 18px;
    color: #00ff7f;
}

.btn-block {
    width: 100%;
    display: block;
}

.cta-sidebar .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.cta-sidebar .btn-primary:hover {
    background: #f8f9fa;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.linkedin {
    background: #0077b5;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.facebook {
    background: #4267B2;
    color: #fff;
}

.share-btn.link {
    background: var(--bg-light);
    color: var(--text-primary);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.related-item:hover {
    background: var(--bg-light);
}

.related-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.related-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 6px;
    line-height: 1.4;
}

/* Newsletter Sidebar */
.newsletter-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    text-align: center;
}

.newsletter-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.newsletter-icon svg {
    width: 48px;
    height: 48px;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-newsletter input {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.sidebar-newsletter input:focus {
    border-color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.comments-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.comments-wrapper h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
}

.comment-form textarea {
    resize: vertical;
}

/* More Articles Section */
.more-articles-section {
    padding: 80px 0;
    background: #fff;
}

.more-articles-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.more-articles-section .section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
}

.more-articles-section .section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Reuse blog card styles from index */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* Final CTA Banner */
.final-cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.final-cta-content {
    position: relative;
    z-index: 2;
}

.final-cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.final-cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .article-title {
        font-size: 38px;
    }

    .article-subtitle {
        font-size: 18px;
    }

    .article-meta-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .article-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .stats-comparison {
        flex-direction: column;
        gap: 20px;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }

    .sidebar {
        position: static;
        margin-top: 60px;
    }
}

@media (max-width: 767px) {
    .article-hero {
        padding: 100px 0 40px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-subtitle {
        font-size: 16px;
    }

    .article-meta-header {
        padding: 20px;
    }

    .author-profile img {
        width: 48px;
        height: 48px;
    }

    .stats-banner {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .article-content {
        font-size: 16px;
    }

    .content-block h2 {
        font-size: 26px;
    }

    .highlight-box {
        flex-direction: column;
        padding: 20px;
    }

    .workflow-step {
        flex-direction: column;
        padding: 24px;
    }

    .workflow-step:hover {
        transform: translateY(-5px);
    }

    .step-content h3 {
        font-size: 20px;
    }

    .quote-box {
        padding: 30px 20px;
    }

    .quote-text {
        font-size: 18px;
        padding-left: 0;
    }

    .quote-author {
        padding-left: 0;
    }

    .cta-inline {
        padding: 30px 20px;
    }

    .cta-inline h3 {
        font-size: 24px;
    }

    .comments-wrapper {
        padding: 24px;
    }

    .final-cta-content h2 {
        font-size: 28px;
    }

    .final-cta-content p {
        font-size: 16px;
    }
}
