/* Deferred CSS for crypto article page - loaded async */

/* Article Content - Below the Fold */
.crypto-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.crypto-article-content blockquote {
    border-left: 4px solid #37aee2;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f0f8ff;
    font-style: italic;
    color: #555;
}

.crypto-article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.crypto-article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

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

.crypto-article-content ul,
.crypto-article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.crypto-article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive table wrapper — horizontal scroll on mobile */
.crypto-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.crypto-table-wrapper table {
    margin: 0;
}

.crypto-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 16px;
}

.crypto-article-content table th,
.crypto-article-content table td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.crypto-article-content table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #10232b;
}

.crypto-article-content table tr:nth-child(even) {
    background: #fafafa;
}

/* Article Footer */
.crypto-article__footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tags */
.crypto-tags__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #10232b;
}

.crypto-tags__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crypto-tags__item {
    margin: 0;
}

.crypto-tags__link {
    display: inline-block;
    padding: 6px 14px;
    background: #e7f3ff;
    color: #0066cc;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.crypto-tags__link:hover {
    background: #0066cc;
    color: #fff;
}

/* Share Buttons */
.crypto-share__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #10232b;
}

.crypto-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crypto-share__button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: GothamPro;
}

.crypto-share__button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.crypto-share__button--telegram {
    background: #0088cc;
    color: #fff;
}

.crypto-share__button--telegram:hover {
    background: #006699;
}

.crypto-share__button--twitter {
    background: #1da1f2;
    color: #fff;
}

.crypto-share__button--twitter:hover {
    background: #0d8bd9;
}

.crypto-share__button--copy {
    background: #6c757d;
    color: #fff;
}

.crypto-share__button--copy:hover {
    background: #5a6268;
}

.crypto-share__button--copy.copied {
    background: #28a745;
}

/* Cluster Articles Nav (In this section) */
.crypto-cluster-nav-inline {
    margin-top: 40px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 100%);
    border: 1px solid #d4e5f7;
    border-radius: 12px;
}

.crypto-cluster-nav-inline__title {
    font-size: 15px;
    font-weight: 700;
    color: #10232b;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-cluster-nav-inline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crypto-cluster-nav-inline__item {
    margin: 0;
    padding-left: 16px;
    position: relative;
}

.crypto-cluster-nav-inline__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0088cc;
}

.crypto-cluster-nav-inline__item--active::before {
    background: #10232b;
}

.crypto-cluster-nav-inline__item a {
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.2s;
}

.crypto-cluster-nav-inline__item a:hover {
    color: #004499;
    text-decoration: underline;
}

.crypto-cluster-nav-inline__item--active span {
    color: #10232b;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

/* Author Box */
.crypto-author-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.crypto-author-box__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #10232b;
    border-bottom: 2px solid #37aee2;
    padding-bottom: 12px;
}

.crypto-author-box__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crypto-author-box__header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.crypto-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.crypto-author-box__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.crypto-author-box__info {
    flex: 1;
}

.crypto-author-box__name {
    font-size: 18px;
    font-weight: 700;
    color: #10232b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.crypto-author-box__name:hover {
    color: #0066cc;
}

.crypto-author-box__credentials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crypto-author-box__credential {
    font-size: 13px;
    color: #666;
}

.crypto-author-box__bio {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.crypto-author-box__link {
    display: inline-block;
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.crypto-author-box__link:hover {
    text-decoration: underline;
}

/* Related Channels */
.crypto-related-channels {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.crypto-related-channels__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #10232b;
    border-bottom: 2px solid #37aee2;
    padding-bottom: 12px;
}

.crypto-related-channels__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crypto-related-channels__item {
    margin: 0;
}

.crypto-related-channels__link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.crypto-related-channels__link:hover {
    background: #e7f3ff;
    transform: translateX(4px);
}

.crypto-related-channels__image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.crypto-related-channels__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.crypto-related-channels__info {
    flex: 1;
}

.crypto-related-channels__name {
    font-size: 14px;
    font-weight: 600;
    color: #10232b;
    margin-bottom: 4px;
}

.crypto-related-channels__subscribers {
    font-size: 12px;
    color: #666;
}

.crypto-related-channels__view-all {
    display: block;
    text-align: center;
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.crypto-related-channels__view-all:hover {
    text-decoration: underline;
}

/* Showcase Shortcode Block (inline in article content) */
.crypto-showcase {
    margin: 32px 0;
}

.crypto-showcase__header {
    margin-bottom: 12px;
}

.crypto-showcase__caption {
    font-size: 16px;
    font-weight: 700;
    color: #10232b;
    margin: 0;
}

.crypto-showcase__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.crypto-showcase__item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
    background: #fff;
}

.crypto-showcase__item:hover {
    background: #f0f7ff;
    border-color: #b8d4f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.crypto-showcase__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.crypto-showcase__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.crypto-showcase__info {
    flex: 1;
    min-width: 0;
}

.crypto-showcase__name {
    font-size: 14px;
    font-weight: 600;
    color: #10232b;
    margin-bottom: 2px;
}

.crypto-showcase__description {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crypto-showcase__action {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0088cc;
    white-space: nowrap;
}

.crypto-showcase__item:hover .crypto-showcase__action {
    color: #006699;
}

@media (max-width: 768px) {
    .crypto-showcase__list {
        grid-template-columns: 1fr;
    }

    .crypto-showcase__action {
        display: none;
    }
}

/* Cluster Nav */
.crypto-cluster-nav {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.crypto-cluster-nav__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #10232b;
    border-bottom: 2px solid #37aee2;
    padding-bottom: 12px;
}

.crypto-cluster-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crypto-cluster-nav__item {
    margin: 0;
}

.crypto-cluster-nav__link {
    display: block;
    padding: 10px 12px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.crypto-cluster-nav__link:hover {
    background: #e7f3ff;
    color: #0066cc;
}

.crypto-cluster-nav__link--active {
    background: #37aee2;
    color: #fff;
    font-weight: 600;
}

.crypto-cluster-nav__link--active:hover {
    background: #1e96c8;
}

/* Related Articles */
.crypto-related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #37aee2;
}

.crypto-related-articles__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px;
    color: #10232b;
    text-align: center;
}

.crypto-related-articles__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .crypto-related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .crypto-related-articles__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Article Card */
.crypto-article-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.crypto-article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.crypto-article-card__link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crypto-article-card__image-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.crypto-article-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crypto-article-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.crypto-article-card__badge--pillar {
    background: #ffd700;
    color: #333;
}

.crypto-article-card__badge--new {
    background: #28a745;
    color: #fff;
}

.crypto-article-card__badge--updated {
    background: #17a2b8;
    color: #fff;
}

.crypto-article-card__badge--draft {
    background: #dc3545;
    color: #fff;
}

.crypto-draft {
    opacity: 0.6;
}

.crypto-article-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.crypto-article-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.crypto-article-card__cluster {
    font-weight: 600;
    color: #37aee2;
}

.crypto-article-card__reading-time {
    color: #999;
}

.crypto-article-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #10232b;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crypto-article-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crypto-article-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
}

.crypto-article-card__date {
    color: #999;
}

.crypto-article-card__difficulty {
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.crypto-article-card__difficulty--beginner {
    background: #d4edda;
    color: #155724;
}

.crypto-article-card__difficulty--intermediate {
    background: #fff3cd;
    color: #856404;
}

.crypto-article-card__difficulty--advanced {
    background: #f8d7da;
    color: #721c24;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .crypto-article-toc {
        margin-bottom: 30px;
    }

    .crypto-article-toc__nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .crypto-article-toc__nav.open {
        max-height: 600px;
    }

    .crypto-article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .crypto-article__title {
        font-size: 28px;
    }

    .crypto-article-content {
        font-size: 16px;
    }

    .crypto-article-content h2 {
        font-size: 24px;
    }

    .crypto-article-content h3 {
        font-size: 20px;
    }

    .crypto-related-channels__list {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .crypto-related-channels__item {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .crypto-share__buttons {
        flex-direction: column;
    }

    .crypto-share__button {
        width: 100%;
        justify-content: center;
    }

    .crypto-cluster-nav-inline {
        margin-top: 32px;
        padding: 20px;
    }
}

/* CTA Blocks */
.crypto-cta {
    border-radius: 12px;
    overflow: hidden;
}

/* Inline CTA */
.crypto-cta--inline {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #c8e1ff;
}

.crypto-cta__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.crypto-cta__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.crypto-cta__button {
    display: inline-block;
    padding: 12px 28px;
    background: #0088cc;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    font-family: GothamPro;
}

.crypto-cta__button:hover {
    background: #006699;
    color: #fff;
}

/* Bottom CTA */
.crypto-cta--bottom {
    margin: 40px 0 0;
    padding: 32px;
    background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%);
    text-align: center;
}

.crypto-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.crypto-cta__description {
    font-size: 16px;
    color: #a0b4c8;
    margin: 0 0 24px;
    line-height: 1.5;
}

.crypto-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.crypto-cta__button--primary {
    background: #0088cc;
    color: #fff;
}

.crypto-cta__button--primary:hover {
    background: #006699;
}

.crypto-cta__button--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.crypto-cta__button--secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Sticky Mobile CTA */
.crypto-cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.crypto-cta-sticky__button {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    background: #0088cc;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-family: GothamPro;
}

.crypto-cta-sticky__button:hover {
    background: #006699;
    color: #fff;
}

@media (min-width: 768px) {
    .crypto-cta-sticky {
        display: none !important;
    }
}

/* Image Placeholders */
.crypto-article-content .image-placeholder {
    border: 2px dashed #b0bec5;
    border-radius: 8px;
    padding: 24px 20px;
    margin: 24px 0;
    background: #f5f7fa;
    text-align: center;
    color: #546e7a;
    font-size: 14px;
    line-height: 1.5;
}
.crypto-article-content .image-placeholder__icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}
.crypto-article-content .image-placeholder__text {
    display: block;
}

/* Read Next / Cross-references */
.crypto-read-next {
    margin: 32px 0;
    padding: 24px;
    background: #f0f8ff;
    border: 1px solid #c8e1ff;
    border-radius: 12px;
}

.crypto-read-next h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #10232b;
}

.crypto-read-next ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crypto-read-next li {
    margin: 0;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: background 0.2s;
}

.crypto-read-next li:hover {
    background: #e7f3ff;
}

.crypto-read-next a {
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
}

.crypto-read-next a:hover {
    text-decoration: underline;
}

/* Strategy Comparison Table */
.crypto-strategy-table {
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.crypto-strategy-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
}

.crypto-strategy-table th,
.crypto-strategy-table td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.crypto-strategy-table th {
    background: #1a2332;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-strategy-table tr:nth-child(even) {
    background: #f8f9fa;
}

.crypto-strategy-table tr:hover {
    background: #e7f3ff;
}

.crypto-strategy-table .risk-high {
    color: #dc3545;
    font-weight: 600;
}

.crypto-strategy-table .risk-medium-high {
    color: #e67e22;
    font-weight: 600;
}

.crypto-strategy-table .risk-medium {
    color: #f0ad4e;
    font-weight: 600;
}

.crypto-strategy-table .risk-low {
    color: #28a745;
    font-weight: 600;
}

@media (max-width: 768px) {
    .crypto-read-next {
        padding: 16px;
    }

    .crypto-read-next li {
        padding: 6px 8px;
        font-size: 14px;
    }

    .crypto-strategy-table {
        font-size: 13px;
    }

    .crypto-strategy-table th,
    .crypto-strategy-table td {
        padding: 8px 10px;
    }

    .crypto-cta--bottom {
        padding: 24px 16px;
    }

    .crypto-cta__title {
        font-size: 20px;
    }

    .crypto-cta__buttons {
        flex-direction: column;
    }

    .crypto-cta__button {
        width: 100%;
        text-align: center;
    }
}
