/* Homepage section nav — grouped tiles (Concept 6) */

.nav-c6 {
    --nav-border: rgba(86, 143, 89, 0.22);
    --nav-bg: #ffffff;
    --nav-muted: #64748b;
    --nav-title: #233f26;
    --nav-sub: #467648;
    --nav-accent-buzz: #2563eb;
    --nav-accent-life: #568f59;
    --nav-accent-humor: #d97706;
}

@media (prefers-color-scheme: dark) {
    .nav-c6 {
        --nav-border: rgba(138, 189, 140, 0.25);
        --nav-bg: rgba(30, 41, 59, 0.85);
        --nav-muted: #94a3b8;
        --nav-title: #e3ece4;
        --nav-sub: #8abd8c;
        --nav-accent-buzz: #60a5fa;
        --nav-accent-life: #69a76d;
        --nav-accent-humor: #fbbf24;
    }
}

.nav-c6__label {
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nav-muted);
    margin: 0 0 0.5rem;
}

.nav-c6__group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-c6__grid {
    display: grid;
    gap: 0.5rem;
}

.nav-c6__grid--buzz {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-c6__grid--life {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-c6__grid--triple {
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .nav-c6__grid--triple {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nav-c6__layout--full {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-c6__layout--full {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        align-items: start;
    }
}

.nav-c6--header {
    width: 100%;
}

/* Compact header tiles: icon + title/teaser stack */
.nav-c6--header .nav-c6__label {
    font-size: 0.5rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.16em;
}

.nav-c6--header .nav-c6__layout--full {
    gap: 0.35rem;
}

@media (min-width: 768px) {
    .nav-c6--header .nav-c6__layout--full {
        gap: 0.5rem;
    }
}

.nav-c6--header .nav-c6__grid {
    gap: 0.25rem;
}

.nav-c6--header .nav-c6__group:first-child .nav-c6__grid--triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .nav-c6--header .nav-c6__group:first-child .nav-c6__grid--triple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nav-c6--header .nav-c6__tile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0.35rem;
    row-gap: 0.05rem;
    align-items: start;
    padding: 0.35rem 0.45rem;
    min-height: 0;
    border-radius: 0.5rem;
    border-top-width: 2px;
}

.nav-c6--header .nav-c6__tile:hover {
    transform: translateY(-1px);
}

.nav-c6--header .nav-c6__tile-icon {
    grid-row: 1 / -1;
    align-self: center;
    font-size: 0.85rem;
}

.nav-c6--header .nav-c6__tile-title {
    grid-column: 2;
    grid-row: 1;
    font-family: "Rokkitt", Georgia, serif;
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-c6--header .nav-c6__tile-sub {
    grid-column: 2;
    grid-row: 2;
    display: -webkit-box;
    font-size: 0.5rem;
    line-height: 1.2;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-c6--header .nav-c6__badge {
    grid-column: 2;
    grid-row: 3;
    display: inline-flex;
    font-size: 0.4375rem;
    margin-top: 0;
}

.nav-c6__tile--humor-inline {
    border-top: 2px solid var(--nav-accent-humor);
}

@media (max-width: 639px) {
    .nav-c6__layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 640px) {
    .nav-c6__layout {
        display: grid;
        grid-template-columns: 5fr 7fr;
        gap: 0.75rem;
        align-items: start;
    }
}

.nav-c6__tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.625rem 0.75rem;
    min-height: 4.25rem;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nav-c6__tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: rgba(86, 143, 89, 0.45);
}

.nav-c6__tile:focus-visible {
    outline: 2px solid #69a76d;
    outline-offset: 2px;
}

.nav-c6__tile-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-c6__tile-title {
    font-family: "Rokkitt", Georgia, serif;
    font-weight: 900;
    font-size: 0.9375rem;
    line-height: 1.1;
    color: var(--nav-title);
    letter-spacing: -0.01em;
}

.nav-c6__tile-sub {
    font-family: "Nunito", sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    font-style: italic;
    color: var(--nav-sub);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-c6__tile--buzz {
    border-top: 3px solid var(--nav-accent-buzz);
}

.nav-c6__tile--life {
    border-top: 3px solid var(--nav-accent-life);
}

.nav-c6__tile--community {
    border-top: 3px solid #14b8a6;
}

.nav-c6__tile--current {
    box-shadow: 0 0 0 2px rgba(105, 167, 109, 0.35);
    border-color: rgba(105, 167, 109, 0.55);
}

.nav-c6__tile--humor {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    min-height: 0;
    padding: 0.875rem 1rem;
    margin-top: 0.75rem;
    border-top: 3px solid var(--nav-accent-humor);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.55) 0%, var(--nav-bg) 55%);
}

@media (prefers-color-scheme: dark) {
    .nav-c6__tile--humor {
        background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, var(--nav-bg) 55%);
    }
}

.nav-c6__tile--humor .nav-c6__tile-icon {
    font-size: 2rem;
}

.nav-c6__tile--humor .nav-c6__tile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-c6__tile--humor .nav-c6__tile-title {
    font-size: 1.125rem;
}

.nav-c6__tile-arrow {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--nav-accent-humor);
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.nav-c6__tile--humor:hover .nav-c6__tile-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.nav-c6__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: "Nunito", sans-serif;
    font-size: 0.5rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dc2626;
    margin-top: 0.15rem;
}

.nav-c6__badge-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #ef4444;
    animation: nav-c6-pulse 1.5s ease-in-out infinite;
}

@keyframes nav-c6-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}
