/*
 * The parts of the profile (the tabs, Vzhled with the choice of the theme and of the light or dark mode) and the strip that offers a new theme to
 * the people who have not chosen one. The look of a theme itself is in its own file (css/christmas.css), which only the people who picked it load.
 */

/* ---- the tabs of the profile: a row that wraps on a narrow phone (every tab is in sight), one is open ---- */
.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 1.1rem 0 1.4rem;
    padding: 0 0 .6rem;
    border-bottom: 2px solid #d9e0ea;
}

.profile-tab,
.profile-tab:visited {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: #e9eff6;
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}

.profile-tab:hover {
    background: #dbe5f1;
    color: var(--brand-dark);
    text-decoration: none;
}

.profile-tab.is-active,
.profile-tab.is-active:hover,
.profile-tab.is-active:visited {
    background: var(--brand);
    color: #fff;
}

/* ---- Vzhled: the cards of the themes ---- */
.theme-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 46rem;
}

@media (min-width: 768px) {
    .theme-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.theme-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 2px solid #d9e0ea;
    border-radius: 14px;
    background: #fff;
}

.theme-card.is-selected {
    border-color: var(--yellow-hover);
    box-shadow: 0 0 0 3px rgba(255, 202, 40, .35);
}

.theme-preview {
    display: block;
    height: 120px;
    background: center / cover no-repeat;
}

.theme-preview-classic { background-image: url('../images/christmas/preview-classic.svg'); }
.theme-preview-christmas { background-image: url('../images/christmas/preview-christmas.svg'); }
.theme-preview-retro { background-image: url('../images/retro/preview-retro.svg'); }

.theme-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .2rem;
    padding: .75rem 1rem .25rem;
}

.theme-card-name {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
}

.theme-card-text {
    color: #5b6773;
    font-size: .88rem;
}

.theme-card-tagline {
    margin-top: .3rem;
    color: var(--brand);
    font-size: .88rem;
    font-style: italic;
    font-weight: 700;
}

html[data-theme="dark"] .theme-card-tagline {
    color: var(--dark-link);
}

.theme-card-preview-note {
    margin: .4rem 1rem 0;
    color: #8a5a00;
    font-size: .82rem;
    font-weight: 700;
}

html[data-theme="dark"] .theme-card-preview-note {
    color: #f2e3ad;
}

.theme-card-button {
    align-self: flex-start;
    margin: .6rem 1rem 1rem;
}

.theme-card-button.is-current {
    cursor: default;
    pointer-events: none;
}

/* a theme that is a premium function and is not unlocked yet: a little paler, and a calm note instead of the button when the credits are short */
.theme-card.is-locked .theme-preview {
    filter: grayscale(.45) brightness(.95);
}

.theme-card-lock-note {
    color: #5b6773;
    font-size: .88rem;
}

html[data-theme="dark"] .theme-card-lock-note {
    color: var(--dark-muted);
}

/* the light or the dark mode: two buttons, the one that is on is the filled one */
.mode-choice {
    display: flex;
    gap: .5rem;
}

.mode-button.is-current {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ---- the strip that offers a new theme: under the menu, over the page, on every page of the person who has not chosen ---- */
.theme-offer {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .4rem 0 .75rem;
    padding: .55rem .75rem .55rem .6rem;
    border: 1px solid #b9d9c7;
    border-radius: 12px;
    background: linear-gradient(100deg, #e4f3ea 0%, #fff0f0 100%);
    color: #1f3a2d;
}

.theme-offer-art {
    flex: 0 0 auto;
    width: 38px;
    height: 46px;
    background: url('../images/christmas/tree.svg') no-repeat center / contain;
}

.theme-offer-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: .92rem;
    line-height: 1.35;
}

.theme-offer-hint {
    display: block;
    color: #4b6256;
    font-size: .82rem;
}

.theme-offer form {
    margin: 0;
    flex: 0 0 auto;
}

.theme-offer-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 58, 45, .12);
    color: #1f3a2d;
    cursor: pointer;
}

.theme-offer-cross:hover,
.theme-offer-cross:focus-visible {
    background: rgba(31, 58, 45, .25);
}

@media (max-width: 575.98px) {
    .theme-offer {
        flex-wrap: wrap;
        padding-right: 2.6rem;
        position: relative;
    }

    .theme-offer-text {
        flex-basis: calc(100% - 52px);
    }

    .theme-offer-try {
        margin-left: 50px;
    }

    .theme-offer-close {
        position: absolute;
        top: .4rem;
        right: .4rem;
    }
}

/* ---- the dark mode ---- */
html[data-theme="dark"] .profile-tabs {
    border-bottom-color: var(--dark-border);
}

html[data-theme="dark"] .profile-tab,
html[data-theme="dark"] .profile-tab:visited {
    background: var(--dark-surface-3);
    color: var(--dark-text);
}

html[data-theme="dark"] .profile-tab:hover {
    background: #34445a;
    color: #fff;
}

html[data-theme="dark"] .profile-tab.is-active,
html[data-theme="dark"] .profile-tab.is-active:hover,
html[data-theme="dark"] .profile-tab.is-active:visited {
    background: var(--brand-fill);
    color: #fff;
}

html[data-theme="dark"] .theme-card {
    border-color: var(--dark-border);
    background: var(--dark-surface-2);
}

html[data-theme="dark"] .theme-card.is-selected {
    border-color: #e6b92f;
    box-shadow: 0 0 0 3px rgba(230, 185, 47, .3);
}

html[data-theme="dark"] .theme-card-name {
    color: var(--dark-text);
}

html[data-theme="dark"] .theme-card-text {
    color: var(--dark-muted);
}

html[data-theme="dark"] .mode-button.is-current {
    background-color: var(--brand-fill);
    border-color: var(--brand-fill);
}

html[data-theme="dark"] .theme-offer {
    border-color: #2f6a4c;
    background: linear-gradient(100deg, #12372b 0%, #3a1e27 100%);
    color: #e6f3ec;
}

html[data-theme="dark"] .theme-offer-hint {
    color: #a9c7b9;
}

html[data-theme="dark"] .theme-offer-cross {
    background: rgba(255, 255, 255, .14);
    color: #e6f3ec;
}

html[data-theme="dark"] .theme-offer-cross:hover,
html[data-theme="dark"] .theme-offer-cross:focus-visible {
    background: rgba(255, 255, 255, .28);
}

/* ---- the shop of the Rubíny (the page Rubíny, App\Shop): the way to get more first, then the cards of what they buy ---- */
.shop-featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 2px solid #f0d27a;
    border-radius: 14px;
    background: #fff8e1;
}

.shop-featured-text p {
    margin: 0;
}

.shop-featured-button {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (min-width: 768px) {
    .shop-featured {
        grid-template-columns: auto 1fr auto;
    }

    .shop-featured-button {
        grid-column: auto;
    }
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.shop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #d9e0ea;
    border-radius: 14px;
    background: #fff;
}

.shop-card.is-selected {
    border-color: var(--yellow-hover);
    box-shadow: 0 0 0 3px rgba(255, 202, 40, .35);
}

.shop-card.is-locked .theme-preview {
    filter: grayscale(.45) brightness(.95);
}

.shop-card-body {
    flex: 1;
    padding: .75rem 1rem .25rem;
}

.shop-card-name {
    margin: 0 0 .2rem;
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
}

.shop-card-text {
    margin: 0;
    color: #5b6773;
    font-size: .88rem;
}

.shop-card-tagline {
    margin: .3rem 0 0;
    color: var(--brand);
    font-size: .88rem;
    font-style: italic;
    font-weight: 700;
}

.shop-card-price {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin: .6rem 0 0;
    font-weight: 800;
}

.shop-card-note {
    margin: .5rem 0 0;
    color: #5b6773;
    font-size: .88rem;
    font-weight: 700;
}

.shop-card-note-admin {
    color: #8a5a00;
}

.shop-progress {
    height: 10px;
    margin-top: .6rem;
    overflow: hidden;
    border-radius: 5px;
    background: #e3e8ee;
}

.shop-progress-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: #e0245e;
}

.shop-progress-text {
    margin: .3rem 0 0;
    font-size: .85rem;
}

.shop-card-action {
    padding: .6rem 1rem 1rem;
}

.shop-card-action form {
    margin: 0;
}

html[data-theme="dark"] .shop-featured {
    border-color: var(--dark-amber-border);
    background: var(--dark-amber);
}

html[data-theme="dark"] .shop-card {
    border-color: var(--dark-border);
    background: var(--dark-surface-2);
}

html[data-theme="dark"] .shop-card.is-selected {
    border-color: #e6b92f;
    box-shadow: 0 0 0 3px rgba(230, 185, 47, .3);
}

html[data-theme="dark"] .shop-card-name,
html[data-theme="dark"] .shop-card-price {
    color: var(--dark-text);
}

html[data-theme="dark"] .shop-card-text,
html[data-theme="dark"] .shop-card-note {
    color: var(--dark-muted);
}

html[data-theme="dark"] .shop-card-tagline {
    color: var(--dark-link);
}

html[data-theme="dark"] .shop-card-note-admin {
    color: #f2e3ad;
}

html[data-theme="dark"] .shop-progress {
    background: var(--dark-surface-3);
}
