/* Blog Article Styles — extends main style.css */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem 2rem;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: var(--border);
}

.article-badge {
    background: #000;
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.article-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1;
    margin-bottom: 1rem;
    -webkit-text-stroke: 0;
}

.article-title span {
    color: var(--color-main);
    display: inline;
}

.article-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #666;
}

/* Article Content */
.article-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: var(--border);
    display: inline-block;
    padding-right: 2rem;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-bottom: 0;
    display: block;
    padding-right: 0;
    padding-bottom: 0;
}

.article-content h2 + h3 {
    margin-top: 0.75rem;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: none;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content a {
    color: var(--color-main);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.article-content a:not(.video-card):not(.btn):hover {
    color: var(--color-text);
    background: transparent;
    text-decoration-thickness: 3px;
    padding: 0;
}

/* Callout boxes */
.callout {
    border: var(--border);
    padding: 1.5rem;
    margin: 2rem 0;
    background: #fff;
    position: relative;
    border-radius: 24px;
}

.callout::before {
    content: attr(data-label);
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    background: var(--color-main);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    text-transform: uppercase;
}

.callout p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.article-content th {
    background: #000;
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #000;
}

.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
}

.article-content tr:hover td {
    background: var(--color-bg);
}

/* Code / terminal block */
.terminal-block {
    background: #000;
    color: #0f0;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 2rem 0;
    border: var(--border);
    overflow-x: auto;
}

.terminal-block .cmd::before {
    content: '$ ';
    color: var(--color-main);
}

/* Video embed card — matches nftconnect LIVE_DEMO card */
.video-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #000;
    border: var(--border);
    padding: 2rem;
    height: 300px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 2rem 0;
    border-radius: 24px;
}

.article-content a.video-card,
.article-content a.video-card:visited,
.article-content a.video-card:hover,
.article-content a.video-card:focus {
    color: inherit;
    text-decoration: none;
}

.video-card:hover {
    background: var(--color-main);
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow);
}

.video-card:hover i {
    color: #fff;
}

.video-card i {
    font-size: 5rem;
    color: var(--color-main);
    margin-bottom: 1rem;
}

.video-card span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
}

/* Prevent article link styles from leaking into cards */
.article-content .video-card span {
    text-decoration: none;
}

.article-content .article-cta a.btn {
    color: #fff;
    text-decoration: none;
}

.article-content .article-cta a.btn:hover {
    color: #fff;
    text-decoration: none;
    padding: 1rem 3rem;
}

/* CTA block — matches nftconnect TRY_IT_YOURSELF card */
.article-cta {
    border: var(--border);
    padding: 3rem 2rem;
    background: #fff;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 24px;
}

.article-cta:hover {
    background: var(--color-main);
    color: #fff;
    box-shadow: var(--shadow);
    transform: translate(-4px, -4px);
}

.article-cta:hover p {
    color: #fff;
}

.article-cta h2 {
    border-bottom: var(--border-width) solid currentColor;
    margin-top: 0;
    margin-bottom: 2rem;
    display: block;
    width: 100%;
    padding-right: 0;
}

.article-cta p {
    margin: 1rem auto 1.5rem auto;
    max-width: 50ch;
}

/* Step blocks */
.step {
    border-left: 2px solid #000;
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-main);
}

/* Responsive */
@media (max-width: 600px) {
    .article-container {
        padding: 2rem 1rem 4rem 1rem;
    }

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

    .article-content h2 {
        font-size: 1.3rem;
    }

    .article-content table {
        font-size: 0.8rem;
    }

    .article-content th,
    .article-content td {
        padding: 0.5rem;
    }
}
