/* Explain: Reusable glass, code, article, and form components */
.glass-panel {
    background: var(--glass-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(18px);
}

.stack-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(5, 10, 17, 0.94));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.stack-card:hover {
    border-color: rgba(34, 197, 94, 0.42);
    box-shadow: var(--shadow-green);
    transform: translateY(-2px);
}

.stack-chip {
    align-items: center;
    background: rgba(51, 65, 85, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #CBD5E1;
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    transition: all 180ms ease;
}

.stack-chip:hover,
.stack-chip.is-active {
    background: rgba(34, 197, 94, 0.13);
    border-color: rgba(34, 197, 94, 0.44);
    color: var(--text-color);
}

.code-window {
    background: #07111F;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.code-window__bar {
    align-items: center;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
}

.code-dot {
    border-radius: 999px;
    height: 0.72rem;
    width: 0.72rem;
}

.syntax-code {
    color: #D1FAE5;
    font-family: var(--font-heading);
    font-size: clamp(0.78rem, 1.7vw, 0.95rem);
    line-height: 1.75;
    overflow-x: auto;
    padding: 1.25rem;
    white-space: pre;
}

.syntax-keyword { color: #22C55E; }
.syntax-function { color: #06B6D4; }
.syntax-string { color: #F8FAFC; }
.syntax-comment { color: #64748B; }

.article-row {
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 1rem;
    padding: 1.25rem 0;
}

@media (min-width: 768px) {
    .article-row {
        grid-template-columns: 9rem 1fr auto;
    }
}

.newsletter-shell {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.16), transparent 38%),
        linear-gradient(315deg, rgba(6, 182, 212, 0.16), transparent 42%),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: calc(var(--radius-lg) + 8px);
    box-shadow: var(--shadow-glow);
}

.form-status {
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
}

.form-status.is-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #BBF7D0;
}

.form-status.is-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #FECACA;
}
