/*#region COLORS*/
:root {
    --not-started-bg: #fbe0e0;
    --not-started-text: #b03337;
    --in-progress-bg: #fff0c9;
    --in-progress-text: #8a5a00;
    --done-bg: #cdf5cc;
    --done-text: #215a2f;
}

[data-theme="dark"] {
    --not-started-bg: #36191c;
    --not-started-text: #ff6b70;
    --in-progress-bg: #33280d;
    --in-progress-text: #f5c451;
    --done-bg: #14301a;
    --done-text: #7ee08f;
}

[data-theme="dim"] {
    --not-started-bg: #402a33;
    --not-started-text: #ff7b80;
    --in-progress-bg: #3d3522;
    --in-progress-text: #f2c76b;
    --done-bg: #234036;
    --done-text: #8fe0a4;
}

[data-theme="mist"] {
    --not-started-bg: #fae6e3;
    --not-started-text: #b3342b;
    --in-progress-bg: #f6ebcf;
    --in-progress-text: #7a5412;
    --done-bg: #dcefe0;
    --done-text: #2c5a3a;
}

[data-theme="sakura"] {
    --not-started-bg: #fde7ee;
    --not-started-text: #8b3a54;
    --in-progress-bg: #f58fb6;
    --in-progress-text: #fdf4fb;
    --done-bg: #c2456b;
    --done-text: #fff7f9;
}

[data-theme="matcha"] {
    --not-started-bg: #fbe9e5;
    --not-started-text: #b3402f;
    --in-progress-bg: #f5e8c0;
    --in-progress-text: #7a5a0a;
    --done-bg: #c8e6c4;
    --done-text: #1f5230;
}

[data-theme="marshmallow"] {
    --not-started-bg: #ffe0ee;
    --not-started-text: #a9316b;
    --in-progress-bg: #f7efc5;
    --in-progress-text: #96641b;
    --done-bg: #d6e8fb;
    --done-text: #2f5f96;
}

[data-theme="mocha"] {
    --not-started-bg: #f9e3de;
    --not-started-text: #b3342b;
    --in-progress-bg: #f6e6bd;
    --in-progress-text: #7a5200;
    --done-bg: #dfe8cd;
    --done-text: #3d5a2a;
}

[data-theme="ocean"] {
    --not-started-bg: #3a2227;
    --not-started-text: #ff7a7f;
    --in-progress-bg: #3a3320;
    --in-progress-text: #f2c76b;
    --done-bg: #123d33;
    --done-text: #6fe0b0;
}

[data-theme="honey"] {
    --not-started-bg: #fbe5df;
    --not-started-text: #b3342b;
    --in-progress-bg: #f8dd93;
    --in-progress-text: #6b4300;
    --done-bg: #d6ecc9;
    --done-text: #2f5a24;
}

[data-theme="neon"] {
    --not-started-bg: #2a2350;
    --not-started-text: #a99cff;
    --in-progress-bg: #3b1236;
    --in-progress-text: #ff8fd6;
    --done-bg: #0f3a34;
    --done-text: #4dffd0;
}

[data-theme="piltover"] {
    --not-started-bg: #2a3a57;
    --not-started-text: #a9b8d4;
    --in-progress-bg: #3d3112;
    --in-progress-text: #e8b54f;
    --done-bg: #153d3a;
    --done-text: #6fd3b8;
}

[data-theme="zaun"] {
    --not-started-bg: #263a37;
    --not-started-text: #8aa89b;
    --in-progress-bg: #4a1f42;
    --in-progress-text: #f78ae0;
    --done-bg: #2e4a1a;
    --done-text: #d4ff6e;
}

[data-theme="lesbian"] {
    --not-started-bg: #ffd8c4;
    --not-started-text: #a82e00;
    --in-progress-bg: #f9d3e6;
    --in-progress-text: #b0307f;
    --done-bg: #de85b8;
    --done-text: #fff;
}

/*#endregion*/
/*#region Q-CARD*/
.q-card {
    width: 100%;
    min-height: 11rem;
    overflow: hidden;

    background-color: var(--surface);
    border: solid 1px var(--border-light);
    border-radius: 0.5rem;

    display: flex;
    flex-direction: column;
}

.q-head {
    background-color: var(--surface-accent);
    padding: 0.2rem 0.5rem;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.q-head .label {
    font-weight: 700;
}

@property --p {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

.q-head .progress-circle {
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-hover-dark) 0);
    transition: --p 0.6s ease;
}

.q-head .progress-circle::after {
    content: '';
    position: absolute;
    inset: 0.15rem;
    border-radius: 50%;
    background-color: var(--surface-accent);

    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'lucide';
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
}

.q-head .progress-circle.complete::after {
    content: '\e06c';
}

.q-card-info {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.3rem;

    margin-bottom: 0.75rem;
}

.q-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.q-row .label {
    font-weight: 500;
    flex: 1;
}

.q-row .value {
    background-color: var(--surface-accent);
    color: var(--text);
    padding: 0.1rem 0.5rem;
    border-radius: 2rem;
    width: 70%;
    text-align: center;
}

.q-row .value.status-standby {
    background-color: var(--not-started-bg);
    color: var(--not-started-text);
    font-weight: 700;
}

.q-row .value.status-working {
    background-color: var(--in-progress-bg);
    color: var(--in-progress-text);
    font-weight: 700;
}

.q-row .value.status-done {
    background-color: var(--done-bg);
    color: var(--done-text);
    font-weight: 700;
}

.q-progress-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem;
    padding-top: 0;
    position: relative;
}

.q-progress-info.open {
    flex-direction: column;
    align-items: stretch;
}

.p-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
}

.q-progress-info.open .p-label {
    gap: 0.5rem;
}

.p-label .text {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.1rem 0;
    border-radius: 1rem;

    background-color: transparent;
    border: 0;
    font: inherit;
    color: inherit;

    cursor: pointer;
    transition: padding 0.2s ease, background-color 0.2s ease;
}

.p-label .text::after {
    content: '\e06d';
    font-family: 'lucide';
    font-size: 0.8rem;
    color: var(--text);
    padding-top: 0.1rem;
    padding-left: 0.2rem;

    display: none;
    opacity: 0;
    transform: scale(0);

    transition: opacity 0.2s ease, transform 0.2s ease;
}

.p-label .text:hover {
    background-color: var(--surface-hover-light);
    padding: 0.1rem 0.5rem 0.1rem 0.7rem;
}

.p-label .text:hover::after {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.q-progress-info.open .p-label .text::after {
    display: block;
    opacity: 1;
    transform: scale(1) rotate(180deg);
}

.p-label .line {
    flex: 1;
    height: 1px;
    background-color: var(--border-dark);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.q-progress-info.open .p-label .line {
    opacity: 1;
}

.q-ref {
    margin-top: auto;
    text-align: right;
    padding: 0 0.5rem 0.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

/*#endregion*/

/*#region CHIPS*/
.q-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    animation: chips-fade-a 0.25s ease backwards;
}

.q-progress-info.open .q-chips {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.35rem;
    flex: none;
}

.q-progress-info.open .q-chips {
    animation-name: chips-fade-b;
}

.q-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.q-progress-info.open .q-item {
    gap: 0.5rem;
}

.q-item .label {
    white-space: nowrap;
}

.q-progress-info:not(.open) .q-item .label {
    display: none;
}

.q-item .chk {
    background-color: var(--surface-accent);
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
    border: solid 1px var(--border-light);

    display: flex;
    align-items: center;
    justify-content: center;
}

.q-item.done .chk {
    background-color: var(--accent);
    border-color: var(--accent);
}

.q-item.done .chk::after {
    content: '\e06c';
    font-family: 'lucide';
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-accent);
    padding-top: 0.1rem;
}

.q-item.done .label {
    font-style: italic;
    opacity: 0.4;
}

.q-item.in-progress .chk {
    --dot-dim: color-mix(in srgb, var(--accent) 30%, transparent);
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    outline: solid 0.1rem var(--accent);
}

.q-item.in-progress .chk::after {
    content: '';
    width: 0.18rem;
    height: 0.18rem;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: -0.3rem 0 var(--dot-dim), 0.3rem 0 var(--dot-dim);
    animation: dots-wave 1.2s ease-in-out infinite;
}

.q-item.in-progress .label {
    font-weight: 600;
    font-style: italic;
}

/*#endregion*/

/*#region KEYFRAMES*/

@keyframes dots-wave {

    0%,
    100% {
        background-color: var(--dot-dim);
        box-shadow: -0.3rem 0 var(--accent), 0.3rem 0 var(--dot-dim);
    }

    33% {
        background-color: var(--accent);
        box-shadow: -0.3rem 0 var(--dot-dim), 0.3rem 0 var(--dot-dim);
    }

    66% {
        background-color: var(--dot-dim);
        box-shadow: -0.3rem 0 var(--dot-dim), 0.3rem 0 var(--accent);
    }
}

@keyframes chips-fade-a {
    from {
        opacity: 0;
        transform: translateY(-0.2rem);
    }
}

@keyframes chips-fade-b {
    from {
        opacity: 0;
        transform: translateY(-0.2rem);
    }
}

/*#endregion*/

/*#region PAGE/GRID*/
.q-page {
    width: 100%;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.q-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .q-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .q-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .q-grid {
        grid-template-columns: 1fr;
    }
}

/*#endregion*/

/*#region NOTICES*/
.q-notices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.q-notice {
    flex: 1 1 16rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background-color: var(--accent-light);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.q-notice .n-icon {
    flex-shrink: 0;
}

.q-notice .n-icon::before {
    content: attr(data-icon);
    font-family: 'lucide';
    font-size: 1.1rem;
    line-height: 1;
    color: var(--accent);
}

.q-notice a {
    color: var(--accent-dark);
    font-weight: 600;
}

.q-notice p {
    text-wrap: wrap;
}

/*#endregion*/

/*#region OPEN SLOT CARD*/
.q-card.open-slot {
    background-color: transparent;
    border: 2px dotted var(--border-dark);
}

.q-open-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 0.5rem;
    opacity: 0.7;

    flex: 1;
    justify-content: center;
}

.open-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--accent-light);

    display: flex;
    align-items: center;
    justify-content: center;
}

.open-mark::after {
    content: '\e13d';
    font-family: 'lucide';
    font-size: 1.5rem;
    color: var(--accent-dark);
}

.portfolio-loading,
.portfolio-empty {
    padding: 1.5rem;
    text-align: center;
    opacity: 0.65;
}

/*#endregion*/