@charset "UTF-8";

/*
Theme Name: L.O.L. MF
Theme URI:
Author: KENNY
Author URI: https://kenny.pl/
Description:
Version: 1.0
Tags: lol, kenny
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@font-face {
    font-family: 'Alphabet Soup';
    src: url('./assets/fonts/AlphabetSoupPro.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

:root {
    --color-white: #fff;
    --color-black: #000;

    --color-pink: #ff3fb4;
    --color-yellow: #f6ff07;
    --color-blue: #37dbb6;
    --color-purple: #ab2d79;
    --color-beige: #fbe9f7;
    --color-orange: #ff9c72;
    --admin-bar: 0px;
}

*,*::before,*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito Sans', sans-serif;
    color: var(--color-black);
    font-size: 18px;
    line-height: 1.4;
}

body.admin-bar { --admin-bar: 32px; }

.bg-hero {
    background-image: url('./assets/images/bg-hero.jpg'); 
    background-position: center;
    background-size: cover;
    color: var(--color-white);
    overflow: hidden;

    h1 {
        font-weight: 900;
        line-height: 1.1;
        transform: rotate(355deg);

        span {
            display: block;

            &:nth-child(2) {
                color: var(--color-yellow);
            }

            &:nth-child(3) {
                color: var(--color-blue);
            }
        }
    }

    p {
        font-size: 1.125rem;
    }

    .hero-dolls {
        margin-bottom: -8rem;
    }
}

.bg-beige {
    background-color: var(--color-beige);
}

.bg-form {
    background-image: url('./assets/images/bg-hero.jpg'); 
    background-position: center;
    background-size: cover;
    color: var(--color-white);
    overflow: hidden;
    padding-top: 15rem;
    margin-top: -14rem;
}

.step-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 320 / 330;

    h3 {
        font-family: 'Alphabet Soup', sans-serif;
        color: var(--color-white);
    }
}

.step-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.step-label {
    position: absolute;
    top: 1%;
    left: 5%;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-pink);
}

.step-content {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    padding: 31.25% 6.25% 7.5%;

    p {
        font-size: 14px;
    }
}

.btn {
    background-color: var(--color-pink);
    border-radius: 2rem;
    color: var(--color-white);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 20px;
    padding: 6px 24px;
    transition: all .25s ease;

    &:hover {
        background-color: var(--color-pink);
    }

    &.btn-yellow {
        background-color: #d9de27;

        &:hover {
            color: var(--color-white);
        }
    }
}

.bg-awards {
    background-image: url('./assets/images/bg-awards.jpg'); 
    background-position: center;
    background-size: cover;
    color: var(--color-white);
    overflow: hidden;
}

.curved-text {
    font-family: 'Alphabet Soup', sans-serif;
    margin-bottom: 1rem;
    font-size: clamp(2.625rem, -0.7083rem + 6.9444vw, 4.5rem);
    display: block;
    margin-top: -1rem;
}

.content-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-pink {
    color: var(--color-pink);
}

.text-blue {
    color: #64c8df;
}

.text-yellow {
    color: var(--color-yellow);
}

.mw-400 {
    max-width: 400px;
}

.mw-800 {
    max-width: 800px;
}

.header {
    background-color: var(--color-white);
    padding-top: .5rem;
    padding-bottom: .5rem;
    position: relative;
    margin-top: -30px;

    &::after {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        bottom: -40px;
        width: 103%;
        height: 40px;
        background-image: url(./assets/images/menu.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto 40px;
        z-index: 1;
    }
}

.logo-img {
    max-width: 141px;
    max-height: 80px;
    display: block;
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    transform: translateY(30px);
}

.nav-left {
    grid-column: 1;
    justify-self: end;
    display: flex;
}

.nav-right {
    grid-column: 3;
    justify-self: start;
    display: flex;
}

.logo {
    grid-column: 2;
}

.menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.menu-item {
    transition: all .25s ease;

    a {
        text-decoration: none;
        color: var(--color-pink);
        text-transform: uppercase;
        font-size: 16px;
        font-family: 'Sausage', sans-serif;
        border-radius: 20px;
        white-space: nowrap;
    }

    &:active {
        scale: .95;
    }
}

.menu-item.btn a {
    background: var(--color-pink);
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: var(--color-pink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: background .2s;
    order: 3;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--color-white);
    border-radius: 3px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease;
}
.mobile-nav.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.mobile-nav__list li a {
    font-family: Sausage, sans-serif;
    font-size: clamp(28px, 7vw, 42px);
    color: var(--color-pink);
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 50px;
    display: block;
    transition: background .2s, transform .15s;
}
.mobile-nav__list li a:hover {
    background: var(--color-white);
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .header {
        margin-top: 0;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        transform: translateY(0);
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .logo {
        order: 1;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .header::after {
        display: none;
    }
}

footer {
    font-size: 14px;
}

.form-label {
    font-size: 14px;
}

.form-control {
    border-radius: 5rem;
    padding: 10px 16px;
    border: 0;
}

.form-check-label {
    font-size: 12px;
}

.discoball,
.guitar,
.yellow-lightning,
.pink-lightning,
.vinyl,
.star-note,
.star-notes,
.stars-note,
.snowflakes,
.notes,
.step-left,
.step-right,
.poster-right,
.form-right, 
.discoball-form, 
.guitar-form, 
.notes-form,
.keep {
    display: none;
}

@media (min-width: 992px) {
    .discoball {
        display: block;
        position: absolute;
        left: -16rem;
        top: -5.5rem;
        max-height: 220px;
    }

    .guitar {
        display: block;
        position: absolute;
        left: -16rem;
        bottom: -3rem;
        max-height: 180px;
    }

    .yellow-lightning {
        display: block;
        position: absolute;
        left: -10rem;
        bottom: 5rem;
        max-height: 100px;
    }

    .pink-lightning {
        display: block;
        position: absolute;
        right: -8rem;
        top: -1.5rem;
        max-height: 100px;
    }

    .vinyl {
        display: block;
        position: absolute;
        right: -16rem;
        top: 0rem;
        max-height: 160px;
    }

    .star-note {
        display: block;
        position: absolute;
        right: 5rem;
        top: 0rem;
        max-height: 120px;
    }

    .star-notes {
        display: block;
        position: absolute;
        right: 5rem;
        bottom: 10rem;
        max-height: 100px;
    }

    .stars-note {
        display: block;
        position: absolute;
        left: -14rem;
        top: 4rem;
        max-height: 120px;
    }

    .snowflakes {
        display: block;
        position: absolute;
        left: -14rem;
        bottom: -1.5rem;
        max-height: 90px;
    }

    .notes {
        display: block;
        position: absolute;
        right: -8rem;
        top: 4rem;
        max-height: 120px;
    }

    .step-left {
        display: block;
        position: absolute;
        left: -16rem;
        top: 0;
        max-height: 460px;
    }

    .step-right {
        display: block;
        position: absolute;
        right: -20rem;
        top: 0;
        max-height: 460px;
    }

    .poster-right {
        display: block;
        position: absolute;
        right: -24rem;
        top: 10rem;
        max-height: 480px;
    }

    .form-right {
        display: block;
        position: absolute;
        right: -18rem;
        top: -3rem;
        max-height: 460px;
    }

    .discoball-form {
        display: block;
        position: absolute;
        left: -18rem;
        top: -17rem;
        max-height: 220px;
    }

    .guitar-form {
        display: block;
        position: absolute;
        left: -16rem;
        bottom: -3rem;
        max-height: 150px;
    }

    .notes-form {
        display: block;
        position: absolute;
        left: 1rem;
        top: -1rem;
        max-height: 100px;
    }

    .keep {
        display: block;
        position: absolute;
        right: 5rem;
        bottom: 0rem;
        max-height: 100px;
    }

    .step-content p {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 960px;
    }
}






/* =========================================================
   Generator plakatu — #poster-generator
   ========================================================= */

.poster-generator {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    --pg-panel-height: 420px;
}

/* --- Kategorie (lewa kolumna) --- */

.pg-categories {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    background: #5d3b6c;
    border-radius: 24px;
    padding: 1rem;
}

@media (min-width: 992px) {
    .pg-categories-col {
        display: flex;
    }
 
    .pg-categories {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        overflow-x: visible;
        height: 100%;
        width: 100%;
        gap: 0.5rem;
        border-radius: 24px;
        height: var(--pg-panel-height);
    }
}

.pg-category-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 84px;
    padding: 0.6rem 0.4rem;
    border: none;
    border-radius: 18px;
    background: var(--color-pink);
    color: #fff;
    font-family: 'Alphabet Soup', sans-serif;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;

    &.ramka {
        background: var(--color-blue);
    }
    &.grafika {
        background: var(--color-orange);
    }
    &.laleczka {
        background: #c9cd22;
    }
    &.neon {
        background: #5cc9d0;
    }
    &.tekst {
        background: #b352cf;
    }

}

.pg-category-btn:hover {
    transform: scale(1.05);
}

.pg-category-btn.active {
    box-shadow: 0 0 0 3px var(--color-yellow);
}

.pg-category-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pg-category-label {
    text-transform: uppercase;
    margin-top: -5px;
}

/* --- Panel miniatur (środkowa kolumna) --- */

.pg-assets-panel {
    background: var(--color-white);
    border: 3px solid var(--color-pink);
    border-radius: 24px;
    padding: 1rem;
    height: var(--pg-panel-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pg-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

@media (max-width: 991.98px) {
    .pg-categories,
    .pg-assets-panel {
        height: auto;
    }

    .pg-assets-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        max-height: none;
        flex: none;
        gap: 0.5rem;
    }

    .pg-assets-grid .pg-asset-thumb {
        flex: 0 0 auto;
        width: 26%;
        scroll-snap-align: start;
    }
}

/* Pojedyncza miniatura — dodawana przez JS, klasa do wykorzystania w szablonie JS */
.pg-asset-thumb {
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 16px;
    background: #ffccea;
    padding: 0.4rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pg-asset-thumb:hover {
    transform: scale(.95);
}

.pg-asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pg-add-text-btn {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border: 2px dashed var(--color-pink);
    border-radius: 14px;
    background: transparent;
    color: var(--color-pink);
    font-weight: 700;
    cursor: pointer;
}

.pg-assets-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e0c6d8;
    font-size: 0.8rem;
    color: #7a5a6e;
}

.pg-assets-hint-icon {
    color: var(--color-pink);
}

/* --- Płótno (prawa kolumna) --- */

.pg-canvas-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    position: relative;
}

@media (min-width: 992px) {
    .pg-canvas-wrapper {
        align-items: start;
    }
}

.pg-canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
}

.pg-tool-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #fce9f4;
    cursor: pointer;
    font-size: 0.95rem;
}

.pg-tool-btn--danger {
    background: #ffdada;
}

.pg-tool-text-options {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pg-tool-font {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
}

.pg-tool-color {
    width: 28px;
    height: 28px;
    border: none;
    padding: 0;
    background: none;
}

.pg-canvas-stage {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1240 / 1754;
    background: var(--color-white);
    border: 3px solid var(--color-purple);
    border-radius: 24px;
    overflow: hidden;
}

/* Fabric.js owija <canvas> we własny div.canvas-container, domyślnie bez
   ustawionej wysokości (height: auto). Bez tego width/height:100% na samym
   <canvas> poniżej nie ma się od czego odbić — canvas wychodzi odrobinę
   niższy niż .pg-canvas-stage (liczy swoją wysokość z proporcji 1240:1754
   względem własnej szerokości, a nie względem faktycznie dostępnej
   przestrzeni), co dawało biały pasek u dołu płótna. */
.pg-canvas-stage .canvas-container {
    width: 100% !important;
    height: 100% !important;
}

.pg-canvas-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* =========================================================
   Formularz zgłoszeniowy — #pg-entry-section
   Na stałe pod generatorem, bez modala.
   ========================================================= */

.pg-entry-section {
    /* max-width: 1100px; */
}

.pg-entry-preview {
    background: #f6f0fa;
    border-radius: 16px;
    padding: 0.75rem;
}

.pg-entry-preview img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.pg-info-icon {
    display: inline-flex;
    cursor: help;
    color: var(--color-pink);
}

.pg-upload-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pg-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.pg-upload-filename {
    font-size: 0.8rem;
    color: var(--color-white);
}

.pg-form-status {
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.pg-form-status.is-success {
    background: #e3f9ef;
    color: #1f8a5c;
}

.pg-form-status.is-error {
    background: #ffe3e3;
    color: #c23a3a;
}