/* Homepage Theme */

:root {
    --homepage-background: #101010;
    --homepage-text: #ffffff;

    --section-border: #292929;

    --card-background: #1a1a1a;
    --card-background-hover: #222222;
    --card-border: #292929;
    --card-text: #ffffff;
    --card-shadow: rgb(0 0 0 / 30%);
}

html[data-theme="light"] {
    --homepage-background: #f5f5f5;
    --homepage-text: #181818;

    --section-border: #d8d8d8;

    --card-background: #ffffff;
    --card-background-hover: #f0f0f0;
    --card-border: #d8d8d8;
    --card-text: #181818;
    --card-shadow: rgb(0 0 0 / 12%);
}

/* Homepage */

.homepage-main {
    flex: 1;

    width: 100%;
    margin: 0;
    padding: 0;

    background: var(--homepage-background);
    color: var(--homepage-text);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Section */

.section {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 64px 60px;
}

.section + .section {
    border-top: 1px solid var(--section-border);
}

.section-title {
    margin: 0 0 32px;

    color: var(--homepage-text);

    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;

    transition: color 0.2s ease;
}

/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 30px;
}

/* Homepage Cards */

.card {
    position: relative;

    display: flex;
    align-items: flex-end;

    min-width: 0;
    height: 200px;
    padding: 20px;

    overflow: hidden;

    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 24px var(--card-shadow);

    color: var(--card-text);
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card-title {
    position: relative;
    z-index: 1;

    color: var(--card-text);

    font-family: "Rajdhani", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.card-status {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: calc(100% - 40px);

    color: var(--card-text);

    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;

    opacity: 0.6;
}

/* Tablet */

@media (max-width: 900px) {
    .section {
        padding: 48px 30px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .section {
        padding: 36px 16px;
    }

    .section-title {
        margin-bottom: 22px;
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        height: 140px;
        padding: 18px;
        border-radius: 14px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .homepage-main,
    .section-title,
    .card,
    .card-title {
        transition: none;
    }

    .card:hover {
        transform: none;
    }
}