
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #eff8ff;
    --bg-soft: #e4f3ff;
    --surface: #ffffff;
    --surface-blue: #f5faff;
    --blue: #56a9f7;
    --blue-dark: #2585e8;
    --blue-deep: #1768bc;
    --baby-blue: #c5e6ff;
    --text: #183550;
    --muted: #71869c;
    --border: #d8eafa;
    --success: #159b76;
    --shadow: 0 12px 35px rgba(61, 133, 194, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 10% 0%, #d8efff 0, transparent 34%),
        radial-gradient(ellipse at 100% 25%, #e2f2ff 0, transparent 32%),
        var(--bg);
    line-height: 1.6;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color .2s, transform .2s, background .2s;
}

a:hover {
    color: var(--blue-deep);
}

button,
input,
textarea {
    font: inherit;
}

/* Felső navigáció */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px max(5%, calc((100% - 1180px) / 2));
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(199, 226, 248, .8);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2585e8;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
}

.topbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.topbar nav > a:not(.button) {
    color: #54718c;
    font-size: 14px;
    font-weight: 700;
}

.topbar nav > a:not(.button):hover {
    color: var(--blue-dark);
}

/* Fő tartalom */

main {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 34px 0 30px;
    padding: 75px 7%;
    border: 1px solid #c9e6ff;
    border-radius: 32px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.85), transparent 25%),
        linear-gradient(135deg, #dff2ff 0%, #c3e5ff 48%, #eaf7ff 100%);
    box-shadow: 0 18px 55px rgba(79, 155, 218, .14);
}

.hero::after {
    content: "✦";
    position: absolute;
    right: 7%;
    bottom: -85px;
    color: rgba(255,255,255,.65);
    font-size: 290px;
    line-height: 1;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin-bottom: 13px;
    color: #368bd7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    color: #173d60;
    font-size: clamp(38px, 6vw, 67px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.08;
}

.hero h1 em {
    color: #2788e6;
    font-style: normal;
}

.hero > p {
    max-width: 570px;
    margin: 22px 0 27px;
    color: #52718d;
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.signed-in {
    padding: 10px 15px;
    color: #176c56;
    background: #e0f8ef;
    border: 1px solid #bcebdc;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 42px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(83, 148, 203, .22);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stats strong {
    color: #236eae;
    font-size: 19px;
    font-weight: 900;
}

.hero-stats span {
    color: #6987a1;
    font-size: 12px;
}

/* Gombok */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, #5db5ff, #2788e6);
    box-shadow: 0 7px 18px rgba(39, 136, 230, .24);
}

.button.primary:hover {
    color: white;
    background: linear-gradient(135deg, #409ff3, #1673d1);
    box-shadow: 0 10px 22px rgba(39, 136, 230, .32);
}

.button.secondary {
    color: #327bb9;
    background: rgba(255,255,255,.82);
    border-color: #c7e3fa;
}

.button.secondary:hover {
    color: #1768bc;
    background: #ffffff;
    border-color: #8fc9fa;
}

.button.small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
}

/* Üzenetek */

.notice {
    margin: 22px 0;
    padding: 15px 19px;
    color: #167457;
    background: #e2f9ef;
    border: 1px solid #bcebd8;
    border-radius: 15px;
    font-weight: 700;
}

/* Fehér panelek */

.panel {
    margin: 28px 0;
    padding: 30px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 25px;
}

.section-heading .eyebrow {
    margin-bottom: 4px;
}

.section-heading h2 {
    margin: 0;
    color: #204664;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: -1px;
}

.section-heading > a {
    font-size: 13px;
    font-weight: 700;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.panel > .muted {
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Hirdetés űrlap */

.listing-form {
    display: grid;
    gap: 19px;
}

.listing-form label {
    display: grid;
    gap: 8px;
    color: #375b78;
    font-size: 13px;
    font-weight: 800;
}

.listing-form input,
.listing-form textarea {
    width: 100%;
    padding: 14px 15px;
    color: var(--text);
    background: #f7fbff;
    border: 1px solid #d4e7f7;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.listing-form input::placeholder,
.listing-form textarea::placeholder {
    color: #9aafc1;
}

.listing-form input:focus,
.listing-form textarea:focus {
    background: white;
    border-color: #62b4fa;
    box-shadow: 0 0 0 4px rgba(98,180,250,.15);
}

.listing-form textarea {
    min-height: 110px;
    resize: vertical;
}

.listing-form button {
    justify-self: start;
    min-width: 220px;
}

/* Inventory tárgykártyák */

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
}

.item-card {
    overflow: hidden;
    padding: 16px;
    background: linear-gradient(180deg, #f5faff, #e9f5ff);
    border: 1px solid #d5eafb;
    border-radius: 17px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: #91cbfa;
    box-shadow: 0 12px 25px rgba(71, 148, 210, .13);
}

.item-card img {
    display: block;
    width: 100%;
    height: 112px;
    margin-bottom: 12px;
    object-fit: contain;
}

.item-name {
    color: #244b6b;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tag {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 9px;
    color: #2479bd;
    background: #d9eeff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.item-card .tag:empty {
    display: none;
}

/* Hirdetéslista */

.listing-list {
    display: grid;
    gap: 13px;
}

.listing-row {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 17px;
    background: #f7fbff;
    border: 1px solid #e0eef9;
    border-radius: 17px;
    transition: background .2s, border-color .2s, transform .2s;
}

.listing-row:hover {
    background: #edf7ff;
    border-color: #b9ddfa;
    transform: translateY(-2px);
}

.skin-placeholder {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 67px;
    height: 67px;
    color: #348dd6;
    background: linear-gradient(135deg, #dff1ff, #b8e0ff);
    border: 1px solid #c5e5fc;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
}

.listing-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.listing-main strong {
    color: #204663;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.listing-main > span {
    color: #71869a;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.listing-main small {
    color: #92a5b7;
    font-size: 10px;
    overflow-wrap: anywhere;
}

/* Üres piactér */

.empty {
    padding: 48px 15px;
    text-align: center;
    background: linear-gradient(180deg, #f8fcff, #eef7ff);
    border: 1px dashed #c6e1f6;
    border-radius: 18px;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #338fe0;
    background: #dcefff;
    border-radius: 18px;
    font-size: 31px;
}

.empty h3 {
    margin: 17px 0 6px;
    color: #264d6d;
    font-size: 19px;
}

.empty p {
    margin: 0;
    color: #8297aa;
    font-size: 13px;
}

/* Figyelmeztetés és lábléc */

.warning {
    margin: 28px 0;
    padding: 19px 22px;
    color: #58758d;
    background: #e4f3ff;
    border: 1px solid #c8e5fa;
    border-left: 4px solid #69b7f5;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.8;
}

.warning strong {
    color: #2a6eaa;
}

footer {
    margin-top: 55px;
    padding: 28px 20px;
    color: #7994aa;
    background: rgba(255,255,255,.7);
    border-top: 1px solid #dcecf9;
    font-size: 11px;
    text-align: center;
    letter-spacing: .4px;
}

/* Mobilnézet */

@media (max-width: 700px) {
    .topbar {
        position: relative;
        flex-wrap: wrap;
        padding: 15px 5%;
    }

    .brand {
        font-size: 18px;
    }

    .topbar nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 13px;
        width: 100%;
    }

    .topbar nav > a:not(.button) {
        font-size: 12px;
    }

    main {
        width: 92%;
    }

    .hero {
        margin-top: 20px;
        padding: 42px 23px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(35px, 9vw, 49px);
        letter-spacing: -2px;
    }

    .hero > p {
        font-size: 14px;
    }

    .hero::after {
        right: -30px;
        bottom: -35px;
        font-size: 160px;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 34px;
    }

    .hero-stats strong {
        font-size: 16px;
    }

    .hero-stats span {
        font-size: 10px;
    }

    .panel {
        padding: 21px 17px;
        border-radius: 19px;
    }

    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .listing-row {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 13px;
    }

    .skin-placeholder {
        width: 52px;
        height: 52px;
    }

    .listing-main {
        flex-basis: calc(100% - 68px);
    }

    .listing-row > .button {
        margin-left: 64px;
    }

    .item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .item-card {
        padding: 11px;
    }

    .item-card img {
        height: 85px;
    }

    .listing-form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}