/* Site-specific overrides on top of the ported WordPress/Gecko theme. */

/* The Gecko theme declares --GC-FONT-FAMILY as a self-reference (invalid), which made the
   header menu and all theme chrome fall back to the browser serif font. Define it for real. */
body {
    --GC-FONT-FAMILY: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Membership (PMPro) buttons styled like the Elementor buttons on the About page:
   pink, bold uppercase Roboto, 16px radius, blue on hover. */
:root {
    --pmpro--color--accent: #EF5BA1;
    --pmpro--color--accent--variation: #6CC3EE;
}

.pmpro .pmpro_btn,
.pmpro .button.button-primary,
.pmpro input[type="submit"] {
    background-color: #EF5BA1;
    border-color: #EF5BA1;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 16px;
    transition: background-color .2s ease, border-color .2s ease;
}

.pmpro .pmpro_btn:hover,
.pmpro .pmpro_btn:focus,
.pmpro .button.button-primary:hover,
.pmpro .button.button-primary:focus,
.pmpro input[type="submit"]:hover,
.pmpro input[type="submit"]:focus {
    background-color: #6CC3EE;
    border-color: #6CC3EE;
    color: #fff;
}

/* Gradient page banner shared by Sign up / Login / Checkout pages (mirrors the
   Elementor hero on the About page). */
.fc-page-banner {
    background-image: linear-gradient(90deg, #6CC3EE 0%, #EF5BA1 100%);
    padding: 29px 12px;
    text-align: center;
}

.fc-page-banner h1 {
    margin: 0;
    font-family: "Dancing Script", cursive;
    font-size: 56px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .fc-page-banner h1 {
        font-size: 29px;
    }
}

/* Auth & membership cards (login / checkout / confirm / account) */
.fc-auth {
    max-width: 560px;
    margin: 0 auto 70px;
    padding: 0 16px;
}

.fc-auth--wide {
    max-width: 620px;
}

.fc-auth__divider {
    text-align: center;
    margin: 34px 0 26px;
}

.fc-auth__divider img {
    width: 190px;
    height: auto;
    opacity: .9;
}

.fc-auth__card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(18, 38, 65, 0.10);
    overflow: hidden;
}

.fc-auth__card-body {
    padding: 38px 44px 34px;
}

.fc-auth__title {
    font-family: "Roboto", sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #6CC3EE;
    margin: 0 0 6px;
    text-align: center;
}

.fc-auth__subtitle {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #777;
    text-align: center;
    margin: 0 0 28px;
}

.fc-auth__footer {
    background: #F8F9FB;
    border-top: 1px solid rgba(70, 77, 87, 0.08);
    padding: 18px 44px;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
}

.fc-auth__footer a {
    color: #EF5BA1;
    font-weight: 600;
    text-decoration: none;
}

.fc-auth__footer a:hover {
    color: #6CC3EE;
}

/* Selected-level summary panel on checkout */
.fc-level-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(90deg, rgba(108, 195, 238, 0.12) 0%, rgba(239, 91, 161, 0.12) 100%);
    border: 1px solid rgba(239, 91, 161, 0.18);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.fc-level-summary__name {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.fc-level-summary__desc {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    color: #777;
    margin-top: 2px;
}

.fc-level-summary__price {
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #EF5BA1;
    white-space: nowrap;
}

/* Form fields */
.fc-field {
    margin: 0 0 18px;
}

.fc-field label {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.fc-input,
.fc-field input[type="text"],
.fc-field input[type="email"],
.fc-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 1px solid #D9DEE7;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.fc-input:focus {
    outline: none;
    border-color: #EF5BA1;
    box-shadow: 0 0 0 3px rgba(239, 91, 161, 0.15);
}

.fc-checkbox-row {
    display: flex;
    align-items: center;
    margin: 4px 0 22px;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    color: #555;
}

.fc-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.fc-checkbox-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #EF5BA1;
}

/* Primary action button */
.fc-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(90deg, #EF5BA1 0%, #E6488F 100%);
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 15px 24px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(239, 91, 161, 0.35);
    transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}

.fc-btn:hover,
.fc-btn:focus {
    background: linear-gradient(90deg, #6CC3EE 0%, #55B4E4 100%);
    box-shadow: 0 6px 18px rgba(108, 195, 238, 0.4);
    color: #fff;
}

.fc-btn:active {
    transform: translateY(1px);
}

.fc-checkout__note {
    font-size: 13.5px;
    color: #888;
    font-family: "Roboto", sans-serif;
    text-align: center;
    margin-top: 14px;
}

/* Vault */
.fc-vault {
    max-width: 980px;
    margin: 0 auto 70px;
    padding: 0 16px;
}

.fc-vault__intro {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    text-align: center;
    max-width: 620px;
    margin: 0 auto 22px;
}

.fc-vault__usage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(18, 38, 65, 0.07);
    padding: 14px 22px;
    margin-bottom: 22px;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    color: #555;
}

.fc-vault__usage-bar {
    flex: 0 0 160px;
    height: 8px;
    border-radius: 4px;
    background: #ECEFF4;
    overflow: hidden;
}

.fc-vault__usage-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6CC3EE 0%, #EF5BA1 100%);
}

.fc-vault__upgrade {
    color: #EF5BA1;
    font-weight: 600;
    text-decoration: none;
}

.fc-vault__upgrade:hover {
    color: #6CC3EE;
}

.fc-vault__add {
    margin-bottom: 34px;
}

.fc-vault__form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
}

.fc-optional {
    font-weight: 300;
    color: #999;
}

.fc-input--file {
    padding: 10px 12px;
    font-size: 14px;
}

textarea.fc-input {
    resize: vertical;
    min-height: 90px;
}

select.fc-input {
    appearance: auto;
    -webkit-appearance: menulist;
}

.fc-vault__empty {
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    color: #888;
    padding: 30px 0;
}

.fc-vault__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.fc-vault-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(18, 38, 65, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fc-vault-item__thumb {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.fc-vault-item__body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fc-vault-item__chip {
    align-self: flex-start;
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    background: #B0B7C3;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.fc-vault-item__chip--thought { background: #9B8CDB; }
.fc-vault-item__chip--memory { background: #EF5BA1; }
.fc-vault-item__chip--recipe { background: #F5A45D; }
.fc-vault-item__chip--photo { background: #6CC3EE; }
.fc-vault-item__chip--document { background: #66BB6A; }

.fc-vault-item__title {
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.fc-vault-item__notes {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #666;
    line-height: 1.5;
    margin: 0 0 10px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.fc-vault-item__meta {
    font-family: "Roboto", sans-serif;
    font-size: 12.5px;
    color: #999;
    margin-top: auto;
}

.fc-vault-item__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(70, 77, 87, 0.08);
}

.fc-vault-item__actions form {
    margin: 0;
}

.fc-vault-item__action {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6CC3EE;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.fc-vault-item__action:hover {
    color: #EF5BA1;
}

.fc-vault-item__action--delete {
    color: #E57373;
}

.fc-vault-item__action--delete:hover {
    color: #D32F2F;
}

@media (max-width: 767px) {
    .fc-vault__form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fc-vault__usage-bar {
        flex-basis: 100%;
        order: 3;
    }
}

/* Legacy container kept for older pages */
.fc-checkout {
    max-width: 760px;
    margin: 40px auto 60px;
    padding: 0 16px;
}

.fc-checkout__heading {
    font-family: "Roboto", sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #6CC3EE;
    margin: 0 0 8px;
}

.fc-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 16px;
}

.fc-alert--error {
    background: #FFEBEE;
    color: #D32F2F;
}

.fc-alert--warning {
    background: #FFF3E0;
    color: #B26A00;
}

.fc-alert--success {
    background: #E8F5E9;
    color: #2E7D32;
}

.validation-message {
    display: block;
    color: #D32F2F;
    font-size: 14px;
    margin-top: 4px;
}

/* Footer */
.fc-footer {
    background: #fff;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #6CC3EE 0%, #EF5BA1 100%) 1;
    margin-top: 40px;
}

.fc-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 24px;
    text-align: center;
}

.fc-footer__logo {
    height: 56px;
    width: auto;
}

.fc-footer__tagline {
    max-width: 560px;
    margin: 12px auto 0;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
}

.fc-footer__menu {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.fc-footer__menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-footer__menu a {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #EF5BA1;
    transition: color .2s ease;
}

.fc-footer__menu a:hover {
    color: #6CC3EE;
}

.fc-footer__bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(70, 77, 87, 0.1);
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    color: #999;
}

.fc-footer__motto {
    font-family: "Dancing Script", cursive;
    font-size: 17px;
    color: #EF5BA1;
}

@media (max-width: 767px) {
    .fc-footer__inner {
        padding: 28px 16px 20px;
    }

    .fc-footer__logo {
        height: 42px;
    }

    .fc-footer__menu {
        gap: 18px;
        flex-wrap: wrap;
    }
}

/* Mobile polish: hero paddings and pricing table on small screens */
@media (max-width: 767px) {
    .pmpro_table th,
    .pmpro_table td {
        font-size: 15px;
    }

    .fc-checkout {
        margin-top: 24px;
    }

    .fc-auth__card-body {
        padding: 26px 22px 24px;
    }

    .fc-auth__footer {
        padding: 16px 22px;
    }

    .fc-auth__divider {
        margin: 24px 0 18px;
    }

    .fc-auth__divider img {
        width: 150px;
    }

    .fc-level-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* The WP export loaded emoji/embed scripts we don't need; keep smiley images inline if any appear. */
img.wp-smiley,
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

html {
    margin-top: 0 !important;
}

/* Blazor reconnect/error UI kept out of the themed flow. */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
