/* Zlotaopcja.pl — feature styles (toolbar, hero variants) */
/* ============================================================
   Offers toolbar
   ============================================================ */

.offers-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: 8px 0 16px;
    box-shadow: 0 1px 2px rgba(16, 42, 28, 0.04);
}

@media (max-width: 768px) {
    .offers-toolbar {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 10px;
    }
    .offers-toolbar__group {
        margin-left: auto;
    }
}

.offers-toolbar__count {
    font-size: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.offers-toolbar__count strong {
    color: var(--color-text);
    font-weight: 800;
    font-size: 16px;
    margin-right: 4px;
}

.offers-toolbar__group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.offers-toolbar__label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.offers-toolbar__select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.offers-toolbar__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 32px 8px 12px;
    background: #FFFFFF;
    border: 1px solid var(--color-border-strong);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    line-height: 1.4;
}

.offers-toolbar__select:hover { border-color: var(--color-primary); }
.offers-toolbar__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 138, 79, 0.15);
}

.offers-toolbar__chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.offers-toolbar__view {
    display: inline-flex;
    background: var(--color-surface-alt);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.offers-toolbar__view-btn {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
    line-height: 1.4;
}

.offers-toolbar__view-btn:hover { color: var(--color-text); }

.offers-toolbar__view-btn.is-active {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(14, 138, 79, 0.25);
}

/* ============================================================
   Tabela view — compressed offer cards
   ============================================================ */

.offers--table .offer-card { padding: 0; }
.offers--table .offer-card__body { padding: 12px 16px; }
.offers--table .offer-card__head { margin-bottom: 8px; }
.offers--table .offer-card__params { gap: 8px; }
.offers--table .param-icon__sub { display: none; }
.offers--table .param-icon__head { margin-bottom: 2px; }
.offers--table .param-icon__icon { width: 16px; height: 16px; }
.offers--table .param-icon__label { font-size: 11px; }
.offers--table .param-icon__value { font-size: 13px; }
.offers--table .offer-card__details { display: none; }
.offers--table .offer-card__logo { width: 100px; height: 40px; }
.offers--table .offer-card__logo img { width: 100px; height: 40px; object-fit: contain; }
.offers--table .badge { font-size: 10px; padding: 2px 6px; }

/* ============================================================
   Homepage hero — split layout
   ============================================================ */

.hero--split {
    background:
        radial-gradient(900px 400px at 95% -10%, rgba(201, 162, 39, 0.10), transparent 70%),
        radial-gradient(900px 400px at -10% 110%, rgba(14, 138, 79, 0.08), transparent 70%),
        var(--color-bg);
    padding: 56px 0 64px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero--split { padding: 32px 0 40px; }
}

.hero__inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}

@media (max-width: 960px) {
    .hero__inner--split { grid-template-columns: 1fr; gap: 0; }
    .hero__inner--split .hero__content { position: relative; z-index: 2; }
    .hero__inner--split .hero__illustration { margin-top: -20px; position: relative; z-index: 1; }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 162, 39, 0.35);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(22, 168, 92, 0.20);
    animation: heroDotPulse 2s ease-in-out infinite;
}

@keyframes heroDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero__title--big {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 20px;
    max-width: 660px;
}

.hero__title-accent { color: var(--color-primary); }
.hero__title-num {
    color: var(--color-accent-dark);
    font-weight: 800;
    background: linear-gradient(180deg, transparent 65%, rgba(201, 162, 39, 0.30) 65%);
    padding: 0 4px;
}

.hero__lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 28px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero__lead { font-size: 15px; margin-bottom: 20px; }
}

.hero__cta-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero__cta-primary {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #FFFFFF;
    padding: 14px 26px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(14, 138, 79, 0.20);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero__cta-primary:hover {
    background: var(--color-primary-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 138, 79, 0.30);
}

.hero__cta-row .btn--outline {
    padding: 14px 22px;
    font-size: 15px;
}

/* Stats frame — horizontal 4-in-a-row */
.hero__stats.hero__stats--frame {
    flex: 0 0 auto !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: center;
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 42, 28, 0.04);
    margin: 0;
    min-width: 0;
    gap: 0;
}

.hero__stats--frame .hero-stat {
    padding: 0 16px;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4px;
    min-width: 0;
}

.hero__stats--frame .hero-stat:first-child { border-left: 0; }

.hero__stats--frame .hero-stat__value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 0;
}

.hero__stats--frame .hero-stat__label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1.25;
    font-weight: 600;
}

@media (max-width: 600px) {
    .hero__cta-row { gap: 12px; }
    .hero__cta-row .hero__cta-primary { width: 100%; }
    .hero__stats.hero__stats--frame {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: none !important;
        padding: 10px 6px;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .hero__stats.hero__stats--frame .hero-stat {
        padding: 0 !important;
        border-left: 1px solid var(--color-border);
    }
    .hero__stats.hero__stats--frame .hero-stat:first-child { border-left: 0; }
    .hero__stats--frame .hero-stat__value { font-size: 16px; }
    .hero__stats--frame .hero-stat__label { font-size: 9px; letter-spacing: 0.04em; }
}

@media (max-width: 380px) {
    .hero__stats--frame { padding: 8px 2px; }
    .hero__stats--frame .hero-stat { padding: 0 5px; }
    .hero__stats--frame .hero-stat__value { font-size: 14px; }
    .hero__stats--frame .hero-stat__label { font-size: 8px; }
}

.hero__illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.hero__illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 768px) {
    .hero__illustration {
        max-width: 480px;
        margin-left: auto;
        margin-right: 0;
    }
    .hero__illustration svg {
        max-width: 480px;
    }
}

.offers-toolbar__count-prefix,
.offers-toolbar__count-suffix {
    color: var(--color-text-muted);
}
.offers-toolbar__count-prefix { margin-right: 4px; }
.offers-toolbar__count-suffix { margin-left: 4px; }

/* Footer legal links row */
.site-footer__legal {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.site-footer__legal li { margin: 0; }

.site-footer__legal a {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 120ms ease;
}

.site-footer__legal a:hover { color: var(--color-primary); }

@media (max-width: 600px) {
    .site-footer__legal { gap: 8px 18px; }
    .site-footer__legal a { font-size: 13px; }
}
