/* =========================================================
   LINK DIGITAL HUB
   FOOTBALL FAN PAGE MAKER
   MOBILE-FIRST UI
========================================================= */

:root {
    --green: #079447;
    --green-dark: #056b36;
    --green-soft: #eaf8f0;

    --black: #142019;
    --text: #27312c;
    --muted: #748078;

    --bg: #f5f7f5;
    --white: #ffffff;

    --border: #dfe6e1;
    --border-dark: #cbd5ce;

    --danger: #e63d3d;

    --radius: 18px;
    --small-radius: 12px;

    --shadow:
        0 10px 30px
        rgba(16, 40, 27, .07);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;

    background: var(--bg);

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button,
a,
input,
textarea {
    outline: none;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
textarea {
    width: 100%;
}


/* REMOVE MOBILE BLUE TAP/FOCUS BOX */

button:focus,
button:active,
button:focus-visible,
a:focus,
a:active,
a:focus-visible {
    outline: none !important;
    box-shadow: none;
}


/* =========================================================
   APP
========================================================= */

.app {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    overflow: hidden;

    background: var(--bg);

    box-shadow:
        0 0 45px
        rgba(0, 0, 0, .06);
}


/* =========================================================
   HEADER
========================================================= */

.topbar {
    position: relative;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 66px;

    padding:
        10px
        18px;

    background: #fff;

    border-bottom:
        1px solid
        #edf0ee;
}

.brand {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}

.brand-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 35px;
    height: 35px;

    border-radius: 10px;

    background: var(--green);

    color: #fff;

    font-size: 15px;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;

    color: var(--black);

    font-size: 10px;
    font-weight: 900;

    line-height: 1.1;

    letter-spacing: .04em;
}

.brand-copy span {
    display: block;

    margin-top: 3px;

    color: #8a938e;

    font-size: 5.5px;
    font-weight: 700;

    line-height: 1.1;

    letter-spacing: .08em;
}

.header-badge {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 5px;

    padding:
        7px
        9px;

    border-radius: 999px;

    background: var(--green-soft);

    color: var(--green-dark);

    font-size: 7px;
    font-weight: 800;
}

.header-badge i {
    font-size: 8px;
}


/* =========================================================
   HERO
========================================================= */

.maker-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 245px;

    padding:
        32px
        20px
        35px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #071b10 0%,
            #07341c 50%,
            #087d3f 100%
        );

    color: #fff;
}

.maker-hero::before {
    content: "";

    position: absolute;

    right: -80px;
    bottom: -120px;

    width: 260px;
    height: 260px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 50%;
}

.maker-hero::after {
    content: "";

    position: absolute;

    right: -20px;
    top: -80px;

    width: 180px;
    height: 180px;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-radius: 50%;
}

.hero-decoration {
    position: absolute;

    border:
        1px solid
        rgba(255, 255, 255, .06);

    border-radius: 50%;
}

.hero-decoration-one {
    left: -85px;
    top: -85px;

    width: 190px;
    height: 190px;
}

.hero-decoration-two {
    left: 44%;
    bottom: -100px;

    width: 210px;
    height: 210px;
}

.hero-copy {
    position: relative;
    z-index: 3;

    width: 68%;
}

.hero-label {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 13px;

    padding:
        5px
        8px;

    border:
        1px solid
        rgba(255, 255, 255, .16);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .08);

    color:
        rgba(255, 255, 255, .90);

    font-size: 6px;
    font-weight: 800;

    letter-spacing: .08em;
}

.hero-label i {
    color: #73e69e;
}

.hero-copy h1 {
    color: #fff;

    font-size: clamp(30px, 9vw, 45px);
    font-weight: 900;

    line-height: .87;

    letter-spacing: -.055em;
}

.hero-copy h1 span {
    display: block;

    color: #55db8a;
}

.hero-copy p {
    max-width: 280px;

    margin-top: 15px;

    color:
        rgba(255, 255, 255, .76);

    font-size: 8px;

    line-height: 1.55;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 11px;

    margin-top: 17px;
}

.hero-features div {
    display: flex;
    align-items: center;

    gap: 4px;

    color:
        rgba(255, 255, 255, .86);

    font-size: 6px;
    font-weight: 700;
}

.hero-features i {
    color: #55db8a;

    font-size: 7px;
}


/* HERO BALL */

.hero-ball {
    position: relative;
    z-index: 3;

    flex: 0 0 28%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;
}

.ball-circle {
    display: grid;
    place-items: center;

    width: 78px;
    height: 78px;

    border:
        1px solid
        rgba(255, 255, 255, .22);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, .20);

    backdrop-filter: blur(4px);
}

.ball-circle i {
    color: #fff;

    font-size: 42px;
}

.hero-ball span {
    color:
        rgba(255, 255, 255, .50);

    font-size: 5px;
    font-weight: 800;

    line-height: 1.25;

    letter-spacing: .17em;

    text-align: center;
}


/* =========================================================
   MAIN FORM AREA
========================================================= */

.maker-main {
    padding:
        18px
        14px
        30px;
}

.maker-form {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   FORM CARD
========================================================= */

.form-card {
    padding:
        18px
        15px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background: #fff;

    box-shadow: var(--shadow);
}

.card-heading {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 19px;
}

.step-number {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    background: var(--green);

    color: #fff;

    font-size: 13px;
    font-weight: 900;

    box-shadow:
        0 6px 15px
        rgba(7, 148, 71, .20);
}

.card-heading h2 {
    color: var(--black);

    font-size: 14px;
    font-weight: 900;

    line-height: 1.1;
}

.card-heading h2 span {
    display: inline-block;

    margin-left: 4px;

    color: #8a938e;

    font-size: 7px;
    font-weight: 600;
}

.card-heading p {
    margin-top: 4px;

    color: var(--muted);

    font-size: 7px;

    line-height: 1.35;
}


/* =========================================================
   CLUB GRID
========================================================= */

.club-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}

.club-option {
    min-width: 0;

    cursor: pointer;
}

.club-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.club-box {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 68px;

    gap: 9px;

    padding:
        9px
        10px;

    overflow: hidden;

    border:
        1.5px solid
        var(--border);

    border-radius: 13px;

    background: #fff;

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.club-logo {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    padding: 4px;

    border-radius: 11px;

    background: #f5f7f5;
}

.club-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.club-box strong {
    min-width: 0;

    padding-right: 17px;

    color: #27312c;

    font-size: 8px;
    font-weight: 800;

    line-height: 1.25;
}

.selected-check {
    position: absolute;

    top: 7px;
    right: 7px;

    display: grid;
    place-items: center;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: var(--green);

    color: #fff;

    font-size: 7px;

    opacity: 0;

    transform: scale(.6);

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.club-option input:checked + .club-box {
    border-color: var(--green);

    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #f0fbf5 100%
        );

    box-shadow:
        0 7px 18px
        rgba(7, 148, 71, .10);
}

.club-option input:checked +
.club-box .selected-check {
    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   FIELDS
========================================================= */

.field-group {
    margin-bottom: 15px;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field-group > label {
    display: flex;
    align-items: center;

    gap: 4px;

    margin-bottom: 7px;

    color: #344039;

    font-size: 8px;
    font-weight: 800;
}

.field-group > label span {
    color: var(--danger);
}

.field-group > label em {
    margin-left: auto;

    color: #99a29d;

    font-size: 6px;
    font-style: normal;
    font-weight: 600;
}

.field-group input,
.field-group textarea {
    display: block;

    border:
        1.5px solid
        var(--border);

    border-radius: 11px;

    background: #fbfcfb;

    color: var(--black);

    font-size: 9px;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.field-group input {
    height: 44px;

    padding:
        0
        13px;
}

.field-group textarea {
    min-height: 90px;

    padding:
        12px
        13px;

    resize: vertical;

    line-height: 1.5;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #a9b0ac;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: var(--green);

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgba(7, 148, 71, .07);
}

.field-help {
    margin-top: 5px;

    color: #9aa39e;

    font-size: 6px;
}


/* =========================================================
   UPLOAD BOX
========================================================= */

.upload-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 155px;

    overflow: hidden;

    border:
        1.5px dashed
        #b8c7bd;

    border-radius: 13px;

    background:
        #f8faf8;

    cursor: pointer;
}

.upload-box input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;

    padding: 18px;

    text-align: center;
}

.upload-empty > i {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 11px;

    background: var(--green-soft);

    color: var(--green);

    font-size: 15px;
}

.upload-empty strong {
    color: #344039;

    font-size: 8px;
    font-weight: 800;
}

.upload-empty small {
    color: #9aa39e;

    font-size: 6px;
}

.upload-preview {
    position: absolute;

    inset: 0;

    display: none;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.upload-box.has-image
.upload-preview {
    display: block;
}

.upload-box.has-image
.upload-empty {
    display: none;
}

.change-photo {
    position: absolute;
    z-index: 4;

    right: 8px;
    bottom: 8px;

    display: none;
    align-items: center;

    gap: 4px;

    padding:
        6px
        8px;

    border-radius: 8px;

    background:
        rgba(10, 20, 14, .78);

    color: #fff;

    font-size: 6px;
    font-weight: 700;

    backdrop-filter: blur(4px);
}

.upload-box.has-image
.change-photo {
    display: flex;
}


/* SMALL UPLOAD */

.upload-box-small {
    min-height: 115px;
}


/* =========================================================
   FAVORITE BLOCKS
========================================================= */

.favorite-block,
.extra-block {
    position: relative;

    margin-top: 12px;

    padding:
        15px
        13px;

    border:
        1px solid
        #e4e9e5;

    border-radius: 14px;

    background:
        #fafbfa;
}

.favorite-block:first-of-type {
    margin-top: 0;
}

.favorite-icon {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    margin-bottom: 7px;

    border-radius: 8px;

    background: var(--green-soft);

    color: var(--green);

    font-size: 10px;
}

.favorite-title {
    margin-bottom: 13px;

    color: var(--black);

    font-size: 10px;
    font-weight: 900;
}

.favorite-block .field-group,
.extra-block .field-group {
    margin-bottom: 11px;
}


/* =========================================================
   MOMENTS
========================================================= */

.moments-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;
}

.moment-upload {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border:
        1.5px dashed
        #bdc9c0;

    border-radius: 11px;

    background: #f8faf8;

    cursor: pointer;
}

.moment-upload input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.moment-empty {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    color: #89948d;

    font-size: 6px;
    font-weight: 700;
}

.moment-empty i {
    color: var(--green);

    font-size: 15px;
}

.moment-preview {
    position: absolute;

    inset: 0;

    display: none;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.moment-upload.has-image
.moment-preview {
    display: block;
}

.moment-upload.has-image
.moment-empty {
    display: none;
}


/* =========================================================
   AUTOMATIC CONTENT CARD
========================================================= */

.automatic-card {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding:
        16px
        15px;

    border:
        1px solid
        #ccebd9;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #eefaf3 0%,
            #f8fcfa 100%
        );
}

.automatic-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    background: var(--green);

    color: #fff;

    font-size: 12px;
}

.automatic-card h3 {
    color: var(--green-dark);

    font-size: 10px;
    font-weight: 900;

    line-height: 1.3;
}

.automatic-card p {
    margin-top: 5px;

    color: #617069;

    font-size: 7px;

    line-height: 1.5;
}

.auto-items {
    display: flex;
    flex-wrap: wrap;

    gap:
        6px
        9px;

    margin-top: 10px;
}

.auto-items span {
    display: flex;
    align-items: center;

    gap: 4px;

    color: #526159;

    font-size: 6px;
    font-weight: 700;
}

.auto-items i {
    display: grid;
    place-items: center;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: var(--green);

    color: #fff;

    font-size: 5px;
}


/* =========================================================
   GENERATE BUTTON
========================================================= */

.generate-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    min-height: 58px;

    padding:
        0
        18px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #087d3f,
            #079447
        );

    color: #fff;

    box-shadow:
        0 12px 26px
        rgba(7, 148, 71, .20);

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.generate-button:active {
    transform: scale(.985);
}

.generate-button > span {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .02em;
}

.generate-button > i {
    font-size: 11px;
}

.generate-note {
    margin-top: -4px;

    padding:
        0
        12px;

    color: #929b96;

    font-size: 6px;

    line-height: 1.45;

    text-align: center;
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {
    margin-top: 15px;

    padding:
        25px
        16px
        18px;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background: #fff;

    box-shadow: var(--shadow);

    text-align: center;
}

.result-card[hidden] {
    display: none !important;
}

.result-check {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    margin:
        0 auto
        12px;

    border-radius: 50%;

    background: var(--green);

    color: #fff;

    font-size: 18px;

    box-shadow:
        0 8px 20px
        rgba(7, 148, 71, .20);
}

.result-card > h2 {
    color: var(--black);

    font-size: 18px;
    font-weight: 900;
}

.result-card > p {
    max-width: 300px;

    margin:
        6px auto
        18px;

    color: var(--muted);

    font-size: 7px;

    line-height: 1.5;
}

.result-card > label {
    display: block;

    margin-bottom: 6px;

    color: #455149;

    font-size: 7px;
    font-weight: 800;

    text-align: left;
}

.url-box {
    display: flex;

    padding: 4px;

    border:
        1.5px solid
        var(--border);

    border-radius: 11px;

    background: #fafbfa;
}

.url-box input {
    min-width: 0;

    flex: 1;

    border: 0;

    padding:
        0
        8px;

    background: transparent;

    color: #445049;

    font-size: 7px;
}

.url-box button {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 5px;

    min-height: 37px;

    padding:
        0
        10px;

    border-radius: 8px;

    background: var(--green);

    color: #fff;

    font-size: 7px;
    font-weight: 800;
}

.result-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;

    margin-top: 10px;
}

.preview-button,
.another-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 42px;

    border-radius: 10px;

    font-size: 7px;
    font-weight: 800;
}

.preview-button {
    background: var(--black);

    color: #fff;
}

.another-button {
    border:
        1px solid
        var(--border);

    background: #fff;

    color: #465149;
}


/* NFC HELP */

.nfc-help {
    margin-top: 15px;

    padding:
        14px;

    border-radius: 13px;

    background: #f5f7f5;

    text-align: left;
}

.nfc-help-heading {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 11px;
}

.nfc-help-heading > i {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border-radius: 9px;

    background: var(--green-soft);

    color: var(--green);

    font-size: 11px;
}

.nfc-help-heading strong {
    display: block;

    color: var(--black);

    font-size: 8px;
}

.nfc-help-heading span {
    display: block;

    margin-top: 2px;

    color: #909993;

    font-size: 6px;
}

.nfc-help ol {
    display: grid;

    gap: 7px;

    list-style: none;
}

.nfc-help li {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #5b6760;

    font-size: 7px;
}

.nfc-help li > span {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #fff;

    color: var(--green);

    font-size: 6px;
    font-weight: 900;
}


/* =========================================================
   FOOTER
========================================================= */

.maker-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding:
        25px
        20px
        calc(25px + env(safe-area-inset-bottom));

    border-top:
        1px solid
        #e6eae7;

    background: #fff;

    text-align: center;
}

.footer-logo {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    margin-bottom: 7px;

    border-radius: 9px;

    background: var(--green);

    color: #fff;

    font-size: 12px;
}

.maker-footer strong {
    color: var(--black);

    font-size: 8px;
    font-weight: 900;
}

.maker-footer > span {
    margin-top: 3px;

    color: #9ba39f;

    font-size: 5.5px;
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-copy span {
        display: none;
    }

    .maker-hero {
        padding-left: 17px;
        padding-right: 17px;
    }

    .hero-copy {
        width: 70%;
    }

    .ball-circle {
        width: 66px;
        height: 66px;
    }

    .ball-circle i {
        font-size: 35px;
    }

    .maker-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-card {
        padding-left: 12px;
        padding-right: 12px;
    }

}


/* =========================================================
   LARGER MOBILE SCREENS
========================================================= */

@media (min-width: 500px) {

    .topbar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .maker-hero {
        min-height: 270px;

        padding:
            38px
            28px;
    }

    .hero-copy p {
        font-size: 9px;
    }

    .ball-circle {
        width: 92px;
        height: 92px;
    }

    .ball-circle i {
        font-size: 50px;
    }

    .maker-main {
        padding:
            22px
            20px
            35px;
    }

    .form-card {
        padding:
            21px
            19px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}