/* Kazanan kuponlar: ana sayfa şeridi, herkese açık sayfa, büyütme penceresi ve yönetim ekranı */
.hw-section {
    margin-top: 22px;
    padding: 26px;
}

.hw-track {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.hw-item {
    flex: 0 0 auto;
    height: 340px;
    min-width: 190px;
    aspect-ratio: var(--ratio);
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe5ec;
    border-radius: 14px;
    background: #f1f5f9;
    scroll-snap-align: start;
    cursor: zoom-in;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hw-item:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
    transform: translateY(-2px);
}

.hw-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hw-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.hw-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid #dbe5ec;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
}

.hw-all:hover {
    border-color: #14cba0;
    color: #079b7a;
}

.hw-arrows {
    display: flex;
    gap: 8px;
}

.hw-arrows button {
    width: 42px;
    height: 42px;
    border: 1px solid #dbe5ec;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.hw-arrows button:disabled {
    color: #cbd5e1;
    cursor: default;
}

/* Herkese açık sayfa */
.winners-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 70px;
}

.winners-head h1 {
    margin: 6px 0 6px;
    color: #111c2d;
    font-size: 32px;
    letter-spacing: -.03em;
}

.winners-head p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
}

.winners-grid {
    column-width: 250px;
    column-gap: 16px;
}

.winners-item {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe5ec;
    border-radius: 14px;
    background: #f1f5f9;
    text-align: left;
    break-inside: avoid;
    cursor: zoom-in;
}

.winners-item img {
    display: block;
    width: 100%;
    height: auto;
}

.winners-item span {
    display: block;
    padding: 10px 12px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.winners-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 26px;
    color: #64748b;
    font-size: 13.5px;
}

.winners-pager a {
    color: #079b7a;
    font-weight: 800;
    text-decoration: none;
}

/* Büyütme penceresi */
html.hw-lock {
    overflow: hidden;
}

.hw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .82);
    backdrop-filter: blur(4px);
}

.hw-lightbox figure {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 0;
}

.hw-lightbox img {
    max-width: min(92vw, 720px);
    max-height: 84vh;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.hw-lightbox figcaption {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.hw-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.hw-nav {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.hw-lightbox.is-single .hw-nav {
    visibility: hidden;
}

/* Yönetim ekranı */
.wa-upload {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
    padding: 22px;
}

.wa-upload form {
    display: grid;
    gap: 14px;
}

.wa-drop {
    display: grid;
    gap: 8px;
    place-items: center;
    padding: 26px 16px;
    border: 2px dashed #99e6cc;
    border-radius: 12px;
    background: #f0fdf9;
    color: #047857;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.wa-drop small {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
}

.wa-note {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.wa-note a {
    color: #079b7a;
    font-weight: 800;
}

.wa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.wa-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
    border: 1px solid #dbe5ec;
    border-radius: 12px;
    background: #ffffff;
}

.wa-card.is-hidden {
    opacity: .6;
}

.wa-thumb {
    display: block;
    max-height: 320px;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.wa-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.wa-card form {
    display: grid;
    gap: 8px;
    margin: 0;
}

.wa-card input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 13px;
}

.wa-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 13px;
}

.wa-card button {
    height: 34px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
}

.wa-card button.wa-delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.wa-card small {
    color: #94a3b8;
    font-size: 11.5px;
}

@media (max-width: 720px) {
    .hw-section {
        padding: 18px 14px;
    }

    .hw-item {
        height: 280px;
    }

    .hw-lightbox {
        grid-template-columns: 1fr;
    }

    .hw-nav {
        position: absolute;
        top: 50%;
    }

    .hw-nav.is-prev {
        left: 8px;
    }

    .hw-nav.is-next {
        right: 8px;
    }
}
