/* Radinosti listing - modern design */

:root {
    --crf-accent: #c07a2c;
    --crf-accent-2: #8b5a2b;
    --crf-rose: #ff545a;
    --crf-mint: #22c55e;
    --crf-ink: #0b1220;
    --crf-muted: rgba(11, 18, 32, 0.72);
    --crf-line: rgba(15, 23, 42, 0.10);
    --crf-surface: rgba(255, 255, 255, 0.92);
    --crf-radius: 22px;
    --crf-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
}

.crf-list {
    color: var(--crf-ink);
}

.crf-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 58px;
    background:
        radial-gradient(900px 520px at 20% 20%, rgba(192, 122, 44, 0.28), transparent 55%),
        radial-gradient(720px 520px at 80% 10%, rgba(255, 84, 90, 0.14), transparent 60%),
        linear-gradient(135deg, #0b1020 0%, #121b34 50%, #0e1326 100%);
}

.crf-hero::before {
    content: "";
    position: absolute;
    inset: -60px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.12;
    transform: rotate(-2deg);
    pointer-events: none;
}

.crf-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.crf-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.crf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.crf-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crf-accent), var(--crf-mint));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.crf-hero h1 {
    margin: 16px 0 12px;
    font-size: 52px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.96);
}

.crf-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.crf-search {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: calc(var(--crf-radius) + 8px);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.crf-field {
    min-width: 0;
}

.crf-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.crf-input-wrap {
    position: relative;
}

.crf-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.72);
}

.crf-input,
.crf-select {
    width: 100%;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    padding: 0 12px 0 40px;
    font-weight: 800;
    outline: none;
}

.crf-select {
    appearance: none;
}

.crf-select option {
    color: #0b1220;
}

.crf-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.crf-input:focus,
.crf-select:focus {
    border-color: rgba(192, 122, 44, 0.55);
    box-shadow: 0 0 0 4px rgba(192, 122, 44, 0.14);
}

.crf-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.crf-btn {
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: rgba(11, 18, 32, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    text-decoration: none;
}

.crf-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-2px);
    text-decoration: none;
    color: rgba(11, 18, 32, 0.92);
}

.crf-btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}

.crf-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.crf-body {
    padding: 44px 0 90px;
    background:
        radial-gradient(900px 520px at 18% 8%, rgba(192, 122, 44, 0.08), transparent 60%),
        radial-gradient(720px 560px at 84% 18%, rgba(34, 197, 94, 0.06), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.crf-body .container {
    max-width: 1180px;
}

.crf-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.crf-topbar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(11, 18, 32, 0.92);
}

.crf-count {
    margin: 8px 0 0;
    color: rgba(11, 18, 32, 0.64);
    font-weight: 800;
    font-size: 13px;
}

.crf-sort-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(11, 18, 32, 0.58);
}

.crf-sort {
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    padding: 0 12px;
    font-weight: 900;
    color: rgba(11, 18, 32, 0.86);
}

.crf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.crf-card {
    border-radius: calc(var(--crf-radius) + 6px);
    background: var(--crf-surface);
    border: 1px solid var(--crf-line);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.crf-card:hover {
    border-color: rgba(192, 122, 44, 0.22);
    box-shadow: var(--crf-shadow);
    transform: translateY(-3px);
}

.crf-media {
    position: relative;
    display: block;
    background: #eef2f6;
}

.crf-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transform: scale(1.01);
}

.crf-card:hover .crf-media img {
    transform: scale(1.05);
}

.crf-media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62) 100%);
    pointer-events: none;
}

.crf-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crf-badge {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.crf-badge.ok {
    background: rgba(34, 197, 94, 0.26);
    border-color: rgba(34, 197, 94, 0.30);
}

.crf-badge.no {
    background: rgba(255, 84, 90, 0.26);
    border-color: rgba(255, 84, 90, 0.30);
}

.crf-badge.price {
    background: rgba(192, 122, 44, 0.28);
    border-color: rgba(192, 122, 44, 0.30);
}

.crf-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crf-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.crf-title a {
    color: rgba(11, 18, 32, 0.92);
    text-decoration: none;
}

.crf-title a:hover {
    color: var(--crf-accent-2);
    text-decoration: none;
}

.crf-meta {
    display: grid;
    gap: 8px;
    color: rgba(11, 18, 32, 0.66);
    font-weight: 800;
    font-size: 13px;
}

.crf-meta .m {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.crf-desc {
    margin: 0;
    color: rgba(11, 18, 32, 0.72);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crf-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(11, 18, 32, 0.66);
    font-weight: 900;
    font-size: 13px;
}

.crf-cta {
    margin-top: auto;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    color: rgba(11, 18, 32, 0.86);
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crf-cta:hover {
    text-decoration: none;
    border-color: rgba(192, 122, 44, 0.22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    color: rgba(11, 18, 32, 0.92);
}

.crf-empty {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 26px;
    border-radius: calc(var(--crf-radius) + 6px);
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
}

.crf-empty-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--crf-accent), var(--crf-mint));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    font-size: 28px;
}

.crf-empty h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--crf-ink);
}

.crf-empty p {
    margin: 0;
    font-size: 16px;
    color: var(--crf-muted);
}

.crf-empty-cta {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
    color: rgba(11, 18, 32, 0.86);
}

.crf-empty-cta:hover {
    text-decoration: none;
    border-color: rgba(192, 122, 44, 0.22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.crf-pagination {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.crf-page {
    min-width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    color: rgba(11, 18, 32, 0.86);
}

.crf-page:hover {
    text-decoration: none;
    color: rgba(11, 18, 32, 0.92);
    border-color: rgba(192, 122, 44, 0.22);
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.crf-page.active {
    border-color: rgba(192, 122, 44, 0.22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.crf-page.disabled {
    opacity: 0.50;
    pointer-events: none;
}

@media (max-width: 992px) {
    .crf-search {
        grid-template-columns: 1fr 1fr;
    }

    .crf-hero h1 {
        font-size: 40px;
    }

    .crf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .crf-search {
        grid-template-columns: 1fr;
    }

    .crf-hero {
        padding: 58px 0 46px;
    }

    .crf-hero h1 {
        font-size: 32px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .crf-btn:hover,
    .crf-card:hover,
    .crf-cta:hover,
    .crf-page:hover,
    .crf-empty-cta:hover {
        transform: none;
    }
}
