:root {
    --bg: #151917;
    --panel: #202824;
    --panel-light: #29332e;
    --green: #82c99b;
    --text: #edf3ef;
    --muted: #9baaa1;
    --border: #35423b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.header {
    height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1b211e;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #294b38;
    color: var(--green);
    border-radius: 11px;
    font-size: 24px;
}

.logo small {
    display: block;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 4px;
}

.admin-link {
    color: var(--muted);
    text-decoration: none;
}

.admin-link:hover {
    color: var(--green);
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 35px 5%;
}

.welcome {
    min-height: 220px;
    padding: 35px;
    display: flex;
    align-items: center;
    background: linear-gradient(110deg, #263b30, #202a25 70%);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.eyebrow {
    color: var(--green);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
}

.welcome h1 {
    margin: 15px 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
}

.welcome p {
    color: var(--muted);
}

.statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 25px 0 45px;
}

.stat {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 22px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
}

.stat strong {
    display: block;
    color: var(--green);
    font-size: 30px;
    margin-top: 8px;
}

h2 {
    font-size: 21px;
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
}

input, select, button {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
}

button {
    background: #315b40;
    border-color: #426c50;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #3d704e;
}

.collection-section {
    margin-top: 45px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-heading span {
    color: var(--muted);
    font-size: 13px;
}

.can-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.can-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: transform .2s, border-color .2s;
}

.can-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
}

.can-image {
    height: 220px;
    background: #252e29;
    display: grid;
    place-items: center;
}

.can-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.no-image, .empty-state {
    color: var(--muted);
    text-align: center;
}

.no-image span, .empty-state span {
    display: block;
    font-size: 35px;
}

.can-info {
    padding: 15px;
}

.brand {
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.can-info h3 {
    font-size: 15px;
    margin: 8px 0;
}

.can-info p {
    color: var(--muted);
    font-size: 12px;
}

.can-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    margin-top: 15px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 55px 15px;
    background: var(--panel);
    border: 1px dashed var(--border);
    border-radius: 13px;
}

.empty-state h3 {
    color: var(--text);
}

footer {
    padding: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
    .header {
        padding: 0 18px;
    }

    .container {
        padding: 22px 15px;
    }

    .welcome {
        padding: 25px 20px;
    }

    .statistics {
        gap: 8px;
    }

    .stat {
        padding: 13px 10px;
    }

    .stat span {
        font-size: 9px;
    }

    .stat strong {
        font-size: 24px;
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }

    .filters input {
        grid-column: 1 / -1;
    }

    .filters button {
        grid-column: 1 / -1;
    }

    .can-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .can-image {
        height: 170px;
    }

    .can-info {
        padding: 11px;
    }
}
/* Dobozképek: a keskeny, átlátszó vagy körbevágott képek nem lóghatnak a kártya szövegére. */
.can-image { overflow: hidden; min-width: 0; position: relative; }
.can-image img { display:block; box-sizing:border-box; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; object-position:center; }
.can-info { position:relative; min-width:0; overflow-wrap:anywhere; }
.can-card { min-width:0; }


/* Musz Collection - dobozfotók nagy, torzításmentes kártya-előnézete. */
/* A változás csak a gyűjteménykártyákat érinti, az eredeti fotókat nem. */
.can-grid .can-card .can-image {
    height: 320px;
    min-height: 320px;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.can-grid .can-card .can-image > img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px;
    margin: 0;
    object-fit: contain;
    object-position: center center;
}
@media (max-width: 650px) {
    .can-grid .can-card .can-image {
        height: 270px;
        min-height: 270px;
    }
    .can-grid .can-card .can-image > img { padding: 3px; }
}
@media (max-width: 370px) {
    .can-grid .can-card .can-image {
        height: 230px;
        min-height: 230px;
    }
}
