/* ============================================
   ARTICLE DETAIL PAGE STYLES
   Know Your Debt Campaign
   ============================================ */

/* Breadcrumb Section */
.article-breadcrumb {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-item a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-teal-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumb-item.active {
    color: #1a1f3a;
    font-weight: 500;
}

/* Article Hero Section */
.article-detail-hero {
    background: linear-gradient(135deg, #178a63 0%, #0d5c42 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.article-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.article-detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.article-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 1.5rem;
}

.article-detail-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.article-detail-excerpt {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Article Meta */
.article-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.author-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-stat svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-btn-edit {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0a0e27;
}

.action-btn-edit:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
}

/* Featured Image */
.article-detail-hero-image {
    margin-top: 3rem;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-caption {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Article Content Section */
.article-content-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

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

/* Main Article Content */
.article-main-content {
    min-width: 0; /* Prevent grid overflow */
}

.content-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1f3a;
    margin-bottom: 1.5rem;
}

.content-paragraph p {
    margin-bottom: 1.2rem;
}

.content-paragraph a {
    color: var(--primary-teal);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.content-paragraph a:hover {
    color: var(--primary-teal-dark);
}

.content-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0e27;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-subheading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1f3a;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Content Images */
.content-image-block {
    margin: 3rem 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.content-image-caption {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 1rem;
}

/* Rich Text Editor Images - Fix for sidebar overlap */
.content-paragraph .editor-image-block {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 2.5rem 0;
    text-align: center;
}

.content-paragraph .editor-image-block img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
    margin: 0 auto;
}

/* Safety net for all images in content */
.article-main-content img {
    max-width: 100%;
    height: auto;
}

/* Content Quote */
.content-quote {
    background: #f9fafb;
    border-left: 4px solid var(--primary-teal);
    padding: 2rem;
    margin: 2.5rem 0;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: #1a1f3a;
    border-radius: 0 8px 8px 0;
}

.content-quote p {
    margin-bottom: 1rem;
}

.content-quote p:last-child {
    margin-bottom: 0;
}

/* Content Interview */
.content-interview {
    background: #f0f9ff;
    border-left: 4px solid var(--accent-emerald);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.interview-question {
    font-weight: 600;
    color: #0a0e27;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.interview-answer {
    color: #1a1f3a;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Content List */
.content-list {
    margin: 2rem 0;
    padding-left: 2rem;
}

.content-list li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1a1f3a;
    margin-bottom: 1rem;
}

/* Content Callout */
.content-callout {
    background: #fffbeb;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.callout-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1rem;
}

.callout-content {
    color: #78350f;
    line-height: 1.7;
}

/* Tags Section */
.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #6b7280;
}

.tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag-item {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-teal);
    color: white;
}

/* Share Section */
.article-share-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
}

.share-label {
    font-weight: 600;
    color: #1a1f3a;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.share-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.share-twitter {
    background: #1DA1F2;
}

.share-facebook {
    background: #1877F2;
}

.share-linkedin {
    background: #0A66C2;
}

.share-copy {
    background: #6b7280;
}

.share-copy svg {
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Author Card */
.author-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.author-card-header {
    background: var(--primary-teal);
    color: white;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.author-card-content {
    padding: 2rem;
    text-align: center;
}

.author-card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

.author-card-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #0a0e27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.author-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a0e27;
    margin-bottom: 0.5rem;
}

.author-card-title {
    font-size: 0.95rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-weight: 500;
}

.author-card-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.author-social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.author-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.author-social-link:hover {
    background: var(--primary-teal);
}

.author-social-link svg {
    width: 18px;
    height: 18px;
    fill: #6b7280;
    transition: fill 0.3s ease;
}

.author-social-link:hover svg {
    fill: white;
}

.author-card-stats {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.author-stat {
    text-align: center;
}

.author-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-teal);
}

.author-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Sidebar Newsletter Card */
.sidebar-newsletter-card {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.sidebar-newsletter-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.sidebar-newsletter-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-newsletter-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-newsletter-input {
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.sidebar-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-newsletter-btn {
    padding: 0.875rem 1.5rem;
    background: var(--accent-gold);
    color: #0a0e27;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-newsletter-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 176, 65, 0.4);
}

/* Related Articles Section */
.related-articles-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);
}

.related-articles-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 0.75rem;
}

.related-articles-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.related-article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-article-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.related-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-article-card:hover .related-article-image {
    transform: scale(1.1);
}

.related-article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: white;
    z-index: 2;
}

.related-article-content {
    padding: 2rem;
}

.related-article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.related-article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-articles-cta {
    text-align: center;
}

.related-articles-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--primary-teal);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-articles-btn:hover {
    background: var(--primary-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 155, 124, 0.4);
}

.related-articles-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Newsletter Full CTA Section */
.newsletter-full-cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-full-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-full-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-full-cta-content {
    text-align: center;
}

.newsletter-full-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.newsletter-full-cta-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.newsletter-full-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.newsletter-full-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.newsletter-full-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-full-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-full-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-gold);
    color: #0a0e27;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-full-btn:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 176, 65, 0.4);
}

.newsletter-full-privacy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 10000;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Print Styles */
@media print {
    .article-breadcrumb,
    .article-actions,
    .article-sidebar,
    .related-articles-section,
    .newsletter-full-cta-section,
    .footer-section {
        display: none !important;
    }

    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-main-content {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .article-content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .article-sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 3rem;
    }
}

@media (max-width: 768px) {
    .article-breadcrumb {
        padding: 1rem 1.5rem;
    }

    .article-detail-hero {
        padding: 3rem 1.5rem;
    }

    .article-detail-title {
        font-size: 2rem;
    }

    .article-detail-excerpt {
        font-size: 1.1rem;
    }

    .article-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .article-stats {
        gap: 1rem;
    }

    .article-stat {
        font-size: 0.875rem;
    }

    .article-content-section {
        padding: 3rem 1.5rem;
    }

    .content-paragraph {
        font-size: 1rem;
    }

    .content-heading {
        font-size: 1.75rem;
        margin-top: 2rem;
    }

    .content-subheading {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .content-quote {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons {
        gap: 0.75rem;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    .related-articles-section,
    .newsletter-full-cta-section {
        padding: 3rem 1.5rem;
    }

    .newsletter-full-form {
        flex-direction: column;
    }

    .toast-notification {
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-detail-title {
        font-size: 1.75rem;
    }

    .article-detail-excerpt {
        font-size: 1rem;
    }

    .action-btn {
        width: 44px;
        height: 44px;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    .content-image-block {
        margin: 2rem 0;
    }
}
