/* Override colors from CSS library */
:root {
    --accent: green;
    --accent-hover: darkgreen;
}

/* Custom style for the logo */
img.icon {
    max-width: 128px;
    max-height: 128px;
    margin-top: 10px;
}

:root {
    --activity-bg: transparent;
    --activity-panel: rgba(255, 255, 255, 0.03);
    --activity-card: rgba(255, 255, 255, 0.04);
    --activity-border: rgba(255, 255, 255, 0.08);
    --activity-muted: rgba(255, 255, 255, 0.58);
    --activity-accent: rgba(255, 255, 255, 0.82);
    --activity-accent-soft: rgba(255, 255, 255, 0.1);
    --activity-warning: #b9986a;
    --activity-tag: rgba(255, 255, 255, 0.06);
}

.activities-shell {
    margin-top: 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.activities-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.activities-kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.62rem;
    color: var(--activity-muted);
    margin-bottom: 0.6rem;
}

.activities-title {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: clamp(1.7rem, 2vw + 1.2rem, 2.4rem);
}

.activities-lead {
    max-width: 38rem;
    color: var(--activity-muted);
}

.activities-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.activities-actions .button {
    background: transparent;
    border: 1px solid var(--activity-border);
    color: #e7e9ec;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.activities-actions .button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #f5f7fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.activity-card {
    border-radius: 12px;
    padding: 1.25rem;
    background: var(--activity-card);
    border: 1px solid var(--activity-border);
    position: relative;
    overflow: hidden;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: border-color 0.2s ease;
}

.activity-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.activity-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.activity-card p {
    margin: 0;
    color: var(--activity-muted);
    font-size: 0.92rem;
}

.activity-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.activity-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.activity-status::before {
    content: "●";
    font-size: 0.6rem;
}

.activity-status.status-closed {
    background: rgba(185, 152, 106, 0.25);
    color: var(--activity-warning);
}

.activity-status.status-cooking {
    background: green;
    color: #f5f7fa;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--activity-muted);
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.activity-tags .activity-tag:nth-child(n + 3) {
    display: none;
}

.activity-tag {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--activity-tag);
    color: #d5d9e0;
    font-size: 0.68rem;
}

.activity-link {
    margin-top: auto;
    color: #f5f7fa;
    font-weight: 600;
    text-decoration: none;
}

.activity-link:hover {
    text-decoration: underline;
}

.activities-section {
    margin-bottom: 2.5rem;
}

.activities-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.activities-section-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.activities-section-head p {
    margin: 0;
    color: var(--activity-muted);
    font-size: 0.88rem;
}

.activities-ideas {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.activities-idea {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--activity-border);
    background: var(--activity-panel);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: space-between;
    align-items: center;
    color: #e0e5ea;
    font-size: 0.92rem;
}

.activities-idea a {
    color: #f5f7fa;
    font-weight: 600;
    text-decoration: none;
}

.activities-idea a:hover {
    text-decoration: underline;
}

.activities-footer {
    margin-top: 2.4rem;
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    background: var(--activity-panel);
    border: 1px solid var(--activity-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.activities-footer p {
    margin: 0;
    color: var(--activity-muted);
}

.activities-footer .button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f5f7fa;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}

.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.activities-empty {
    grid-column: 1 / -1;
    padding: 1.5rem;
    text-align: center;
    background: var(--activity-panel);
    border-radius: 12px;
    border: 1px dashed var(--activity-border);
    color: var(--activity-muted);
}

.activities-fallback {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--activity-border);
    color: var(--activity-muted);
    font-size: 0.9rem;
}

.activities-fallback a {
    color: #f5f7fa;
}

@media (max-width: 720px) {
    .activities-shell {
        padding: 0;
    }

    .activities-actions {
        width: 100%;
    }

    .activities-actions .button {
        width: 100%;
        text-align: center;
    }

    .activities-idea {
        flex-direction: column;
        align-items: flex-start;
    }

    .activities-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
