/* ===================================
   Article Content Styling
   For TinyMCE editor output
   Scoped to .article-content only
   =================================== */

.article-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.9;
}

/* Headings Hierarchy - Clear Visual Structure */
.article-content h1 {
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    color: #1f2937;
    border-bottom: 3px solid #0ea5e9;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

/* h3 to h6 use the same color family (blue) with gradual intensity decrease */
.article-content h3 {
    color: #0ea5e9;
    margin-top: 1.875rem;
    margin-bottom: 0.875rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.article-content h4 {
    color: #38bdf8;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
}

.article-content h5 {
    color: #7dd3fc;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.article-content h6 {
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Paragraphs - Improved Readability */
.article-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.85;
    color: #374151;
}

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

.article-content a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
    padding-bottom: 2px;
    position: relative;
    display: inline;
}

.article-content a:hover {
    color: #0284c7;
    border-bottom-color: #0284c7;
    border-bottom-width: 2px;
}

/* Exclude video link button from regular link styling */
.article-content .video-link-button a {
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
    padding-right: 0.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.article-content li::marker {
    color: #0ea5e9;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    color: #4b5563;
    background-color: #f8fafc;
    border-right: 4px solid #0ea5e9;
    border-radius: 0.5rem;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    font-style: italic;
    line-height: 1.85;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content blockquote cite {
    color: #6b7280;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    display: block;
}

.article-content img {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;
    display: block;
}

.article-content figure {
    margin: 2rem 0;
}

.article-content figcaption {
    text-align: center;
    color: #6b7280;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.article-content th,
.article-content td {
    text-align: right;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.article-content th {
    color: #374151;
    background-color: #f8fafc;
    font-weight: 600;
}

.article-content tr:nth-child(2n) {
    background-color: #f9fafb;
}

.article-content tr:hover {
    background-color: #f3f4f6;
}

.article-content code {
    color: #e11d48;
    background-color: #f1f5f9;
    border-radius: 0.25rem;
    padding: 0.2rem 0.4rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
}

.article-content pre {
    color: #e2e8f0;
    background-color: #1e293b;
    border-radius: 0.5rem;
    margin: 2rem 0;
    padding: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.75;
    overflow-x: auto;
}

.article-content pre code {
    color: inherit;
    font-size: inherit;
    background: 0 0;
    padding: 0;
}

.article-content hr {
    background: linear-gradient(270deg, #0000, #e5e7eb, #0000);
    border: none;
    height: 2px;
    margin: 2rem 0;
}

.article-content strong,
.article-content b {
    color: #1f2937;
    font-weight: 700;
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content mark {
    background-color: #fef08a;
    border-radius: 0.125rem;
    padding: 0.1rem 0.25rem;
}

.article-content sub,
.article-content sup {
    font-size: 0.75em;
}

.article-content dl {
    margin: 2rem 0;
}

.article-content dt {
    color: #1f2937;
    margin-top: 1rem;
    font-weight: 600;
}

.article-content dd {
    color: #4b5563;
    margin-right: 1.5rem;
}

.article-content iframe,
.article-content video,
.article-content embed {
    border-radius: 0.5rem;
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
}

.article-content .video-container {
    border-radius: 0.5rem;
    height: 0;
    margin: 1.5rem 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}

.article-content .video-container iframe {
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.article-content .info-box,
.article-content .note {
    background-color: #eff6ff;
    border-right: 4px solid #3b82f6;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.article-content .warning-box,
.article-content .warning {
    background-color: #fffbeb;
    border-right: 4px solid #f59e0b;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.article-content .success-box,
.article-content .success {
    background-color: #ecfdf5;
    border-right: 4px solid #10b981;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.article-content .error-box,
.article-content .error {
    background-color: #fef2f2;
    border-right: 4px solid #ef4444;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

/* Video Link Button - Elegant Video Button Style */
.article-content .video-link-button {
    margin: 2rem 0;
    text-align: center;
}

.article-content .video-link-button .video-link-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    min-width: 200px;
}

.article-content .video-link-button .video-link-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.article-content .video-link-button .video-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1;
}

.article-content .video-link-button .video-link-wrapper:hover .video-link-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.article-content .video-link-button .video-link-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.article-content.drop-cap > p:first-of-type::first-letter {
    float: right;
    color: #0ea5e9;
    margin-left: 0.75rem;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content {
        font-size: 0.9375rem;
    }
    
    .article-content h1 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .article-content h4 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .article-content h5 {
        font-size: 1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.625rem;
    }
    
    .article-content h6 {
        font-size: 0.9375rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .article-content ul,
    .article-content ol {
        margin-right: 1rem;
    }
    
    .article-content blockquote {
        padding: 0.75rem 1rem;
    }
    
    .article-content table {
        font-size: 0.8125rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.5rem 0.75rem;
    }
    
    .article-content .video-link-button .video-link-wrapper {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .article-content .video-link-button .video-link-icon {
        width: 28px;
        height: 28px;
    }
    
    .article-content .video-link-button .video-link-icon svg {
        width: 16px;
        height: 16px;
    }
}
