/* ============================================
   INVESTAY CAPITAL - ARTICLE PAGE STYLES
   Ultra-modern, responsive reading experience
   Dark Theme - Year 9999 Futuristic Design
   ============================================ */

/* Article Page Body */
.article-page {
    background: #0a0e27;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

.article-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 98, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 169, 98, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #C9A962 0%, #f4e4c1 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.5);
}

/* Article Header */
.article-header {
    background: rgba(10, 14, 39, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.1) !important;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #C9A962;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Article Hero Section */
.article-hero {
    padding: 100px 0 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.article-hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-category-badge {
    display: inline-block;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: #C9A962;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.article-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.article-hero-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border: 1px solid rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A962 0%, #f4d03f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
}

.author-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 31, 58, 0.4);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    background: #C9A962;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Featured Image Section */
.article-featured-image-section {
    padding: 40px 0;
    background: rgba(26, 31, 58, 0.3);
}

.article-featured-image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Article Content Section */
.article-content-section {
    padding: 80px 0;
    background: transparent;
}

.article-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: start;
}

/* Main Content */
.article-main-content {
    min-width: 0; /* Important for text overflow */
}

/* Article Body - Prose Styling */
.article-body.prose {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.article-body.prose p {
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.8);
}

.article-body.prose h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-body.prose h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.article-body.prose h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-body.prose a {
    color: #C9A962;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body.prose a:hover {
    color: #f4e4c1;
}

.article-body.prose strong {
    font-weight: 600;
    color: #ffffff;
}

.article-body.prose em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.article-body.prose ul,
.article-body.prose ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-body.prose li {
    margin-bottom: 0.5em;
    color: rgba(255, 255, 255, 0.8);
}

.article-body.prose blockquote {
    border-left: 4px solid #C9A962;
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
}

.article-body.prose code {
    background: rgba(201, 169, 98, 0.1);
    color: #C9A962;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-body.prose pre {
    background: rgba(26, 31, 58, 0.6);
    color: #e5e7eb;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.article-body.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-body.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

/* FAQ Section */
.article-faq-section {
    margin-top: 60px;
    padding-top: 60px;
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.faq-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(26, 31, 58, 0.3);
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #C9A962;
}

.faq-item[open] {
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex-shrink: 0;
    color: #C9A962;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Author Box */
.article-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 40px;
    margin-top: 60px;
    background: rgba(26, 31, 58, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A962 0%, #f4d03f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-box-info {
    flex: 1;
}

.author-box-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.author-box-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #C9A962;
    font-weight: 500;
    margin-bottom: 12px;
}

.author-box-bio {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Article Navigation */
.article-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: rgba(26, 31, 58, 0.3);
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-nav-link:hover {
    background: transparent;
    border-color: #C9A962;
    transform: translateX(-4px);
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-direction svg {
    color: #C9A962;
}

.nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

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

.sidebar-widget {
    background: rgba(26, 31, 58, 0.3);
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sticky-widget {
    position: sticky;
    top: 100px;
}

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(201, 169, 98, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.widget-share-btn:hover {
    background: rgba(26, 31, 58, 0.4);
    border-color: #C9A962;
    color: #ffffff;
    transform: translateX(4px);
}

.widget-share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.widget-share-btn.twitter:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.widget-share-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: #ffffff;
}

.widget-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.toc-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding-left: 12px;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: #ffffff;
    border-left-color: #C9A962;
    padding-left: 16px;
}

/* Related Articles Section */
.related-articles-section {
    padding: 80px 0;
    background: rgba(26, 31, 58, 0.3);
    text-align: center;
}

.related-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.related-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.related-cta {
    margin-top: 40px;
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

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

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

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

    .widget-share-buttons {
        flex-direction: row;
    }

    .widget-share-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 80px 0 40px;
    }

    .article-hero-title {
        font-size: 2.5rem;
    }

    .article-hero-excerpt {
        font-size: 1.125rem;
    }

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

    .social-share-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .article-featured-image {
        max-height: 400px;
    }

    .article-content-section {
        padding: 60px 0;
    }

    .article-body.prose {
        font-size: 1.0625rem;
    }

    .article-body.prose h2 {
        font-size: 2rem;
    }

    .article-body.prose h3 {
        font-size: 1.5rem;
    }

    .article-author-box {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .author-box-avatar {
        margin: 0 auto;
    }

    .related-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 60px 0 30px;
    }

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

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

    .author-avatar-small {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .share-button {
        width: 36px;
        height: 36px;
    }

    .article-featured-image {
        border-radius: 8px;
    }

    .article-content-section {
        padding: 40px 0;
    }

    .article-body.prose {
        font-size: 1rem;
    }

    .article-body.prose h2 {
        font-size: 1.75rem;
    }

    .faq-title {
        font-size: 2rem;
    }

    .related-title {
        font-size: 2rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .article-header,
    .social-share-buttons,
    .article-sidebar,
    .article-navigation,
    .related-articles-section,
    .premium-footer,
    .reading-progress-bar {
        display: none !important;
    }

    .article-body.prose {
        font-size: 12pt;
        line-height: 1.6;
    }

    .article-hero-title {
        font-size: 24pt;
    }
}
