/* ══════════════════════════════════════════════════
   TECH STACK PAGE — STYLES (Light & Dark)
   ══════════════════════════════════════════════════ */

.stack-page {
    background: var(--bg, #faf9f6);
    color: var(--text-dark, #1a1a1a);
    min-height: 100vh;
    font-family: var(--font-body);
    padding-bottom: 40px;
    transition: background 0.3s ease, color 0.3s ease;
}

.stack-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

/* ── Header ── */
.stack-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stack-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
}

/* ── Section ── */
.stack-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stack-section:last-child {
    border-bottom: none;
}

.stack-section-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

/* ── Grid ── */
.stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0rem 0.8rem;
}

/* ── Item ── */
.stack-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.4rem 0;
    border-radius: 8px;
    padding-left: 0.4rem;
}

/* ── Icon ── */
.stack-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stack-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove border in dark mode */
:is(html, body).dark-mode .stack-icon {
    border-color: transparent;
}

/* ── Name ── */
.stack-name {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-body, #555);
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════════════════ */
:is(html, body).dark-mode.stack-page {
    background: #060d18;
}

:is(html, body).dark-mode .stack-section {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}



:is(html, body).dark-mode .stack-name {
    color: #d0d0d0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .stack-container {
        padding-top: 5.5rem;
    }
}

@media (max-width: 600px) {
    .stack-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stack-container {
        padding: 5.5rem 1.2rem 2rem;
    }
}