:root {
    --bg: #fafaf8;
    --surface: #ffffff;
    --border: #e8e8e4;
    --border-light: #f0f0ec;
    --text-primary: #0d0d0c;
    --text-secondary: #5c5c58;
    --text-muted: #a0a09a;
    --accent: #1a6b3c;
    --accent-light: #edf7f1;
    --accent-hover: #155730;
    --accent2: #2563eb;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --red: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Geist", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 62px;
    gap: 32px;
}

.nav-logo {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-mark svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-ghost {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: var(--text-primary);
}

.btn-primary {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--text-primary);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #2a2a28;
}

.btn-accent {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-outline {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.15s;
}

.hamburger:hover {
    border-color: var(--text-primary);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: block;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0px;
}

.mobile-menu-actions .btn-ghost,
.mobile-menu-actions .btn-primary {
    justify-content: center;
    padding: 11px 20px;
    font-size: 15px;
}

/* FEED LAYOUT */
.feed-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 92px 32px 80px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
}

/* SEARCH BAR */
.feed-top {
    grid-column: 1/-1;
    margin-bottom: 8px;
}

.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--text-primary);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 15px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: "Geist", sans-serif;
    font-size: 15px;
    background: transparent;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.search-row .search-bar {
    flex: 1;
}

.tab-row {
    display: flex;
    gap: 4px;
    border-bottom: 1.5px solid var(--border);
    padding-bottom: 0;
    margin-bottom: 24px;
}

.tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.tab-count {
    font-size: 11px;
    background: #f0f0ec;
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    display: inline-block;
}

.tab.active .tab-count {
    background: var(--text-primary);
    color: #fff;
}

/* SIDEBAR */
.sidebar {
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.cat-item:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.cat-item.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}

.cat-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-count-pill {
    margin-left: auto;
    font-size: 11px;
    background: #f0f0ec;
    color: var(--text-muted);
    padding: 1px 8px;
    border-radius: 20px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cat-item.active .cat-count-pill {
    background: var(--accent);
    color: #fff;
}

/* FEED CONTENT */
.feed-content {
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.feed-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.sort-select {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: "Geist", sans-serif;
    outline: none;
}

/* PROMO BANNER */
.promo-banner {
    background: var(--text-primary);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.promo-banner-text {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.promo-banner-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-top: 3px;
}

/* POST CARDS */
.post-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 14px;
    transition: all 0.25s;
    animation: fadeUp 0.4s ease both;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d8d8d4;
    transform: translateY(-1px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:nth-child(2) {
    animation-delay: 0.05s;
}

.post-card:nth-child(3) {
    animation-delay: 0.1s;
}

.post-card:nth-child(4) {
    animation-delay: 0.15s;
}

.post-card:nth-child(5) {
    animation-delay: 0.2s;
}

.post-card:nth-child(6) {
    animation-delay: 0.25s;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.1px;
}

.badge-tilbud {
    background: #edf7f1;
    color: #1a6b3c;
}

.badge-tilsalgs {
    background: #eff6ff;
    color: #2563eb;
}

.badge-sokes {
    background: #fef9ec;
    color: #92400e;
}

.badge-special {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-hot {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

.card-price.blue {
    color: var(--accent2);
}

.card-price.budget {
    color: var(--text-muted);
    font-size: 13px;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin-bottom: 7px;
    line-height: 1.3;
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.card-meta-item i {
    font-size: 11px;
}

.card-biz {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biz-avatar {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.biz-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.biz-rating {
    font-size: 12px;
    color: var(--text-muted);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
    gap: 8px;
    flex-wrap: wrap;
}

.card-category {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-card {
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    background: var(--surface);
}

.btn-card:hover {
    border-color: var(--text-primary);
}

.btn-card-accent {
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    background: var(--text-primary);
    color: #fff;
    border: none;
}

.btn-card-accent:hover {
    background: #2a2a28;
}

.btn-card-green {
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    border: none;
}

.btn-card-green:hover {
    background: var(--accent-hover);
}

.card-deadline {
    font-size: 12.5px;
    color: #d97706;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-offers-count {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.load-more {
    text-align: center;
    padding: 32px 0 0;
}

.btn-load {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--surface);
    border: 1.5px solid var(--border);
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow);
}

/* FOOTER */
footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 32px 32px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.footer-link {
    display: block;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .feed-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .search-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .feed-wrapper {
        padding: 80px 16px 60px;
    }
}

@media (max-width: 1100px) {
    .feed-wrapper {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .feed-wrapper {
        grid-template-columns: 1fr;
        padding: 88px 20px 60px;
    }

    .sidebar {
        display: none;
    }

    .search-row {
        flex-wrap: wrap;
    }

    .search-row > div {
        width: 100%;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .search-row > div select {
        flex: 1;
        min-width: 140px;
    }

    .search-row > div a {
        flex: 1;
        justify-content: center;
    }

    .tab-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        flex-wrap: nowrap;
    }

    .tab-row::-webkit-scrollbar {
        display: none;
    }

    .card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-actions {
        width: 100%;
    }

    .card-actions a {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .promo-banner a {
        width: 100%;
        justify-content: center;
    }

    .nav-inner {
        padding: 0 16px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .feed-wrapper {
        padding: 76px 12px 48px;
        gap: 16px;
    }

    .post-card {
        padding: 16px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-meta {
        gap: 8px;
    }

    .feed-top {
        margin-bottom: 4px;
    }

    .search-bar input {
        font-size: 14px;
    }

    .tab {
        font-size: 13px;
        padding: 8px 12px;
    }

    .card-price {
        font-size: 14px;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-actions a {
        width: 100%;
        text-align: center;
    }

    .nav-inner {
        padding: 0 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 400px) {
    .feed-wrapper {
        padding: 72px 8px 40px;
    }

    .post-card {
        padding: 14px 12px;
    }

    .card-badges {
        flex-wrap: wrap;
    }

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