:root {
    --feed-ink: #17211c;
    --feed-muted: #66736c;
    --feed-border: #e5ebe7;
    --feed-surface: #ffffff;
    --feed-background: #f5f8f6;
    --feed-brand: #059669;
    --feed-brand-dark: #047857;
    --feed-soft: #eaf8f1;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.public-feed-page {
    margin: 0;
    min-width: 320px;
    color: var(--feed-ink);
    background: var(--feed-background);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.public-feed-main * {
    box-sizing: border-box;
}

.feed-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.feed-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0 38px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 5%, rgba(110, 231, 183, 0.28), transparent 34%),
        linear-gradient(135deg, #064e3b 0%, #047857 54%, #059669 100%);
}

.feed-hero::after {
    position: absolute;
    right: -56px;
    bottom: -102px;
    width: 230px;
    height: 230px;
    border: 34px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.feed-hero__eyebrow {
    margin: 0 0 10px;
    color: #a7f3d0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.feed-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.8rem, 7vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.feed-hero p:last-child {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.7;
}

.feed-policy-notice {
    border-bottom: 1px solid #d1fae5;
    background: #ecfdf5;
}

.feed-policy-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.feed-policy-notice strong {
    display: block;
    color: #065f46;
    font-size: 0.88rem;
}

.feed-policy-notice p {
    margin: 3px 0 0;
    color: #426157;
    font-size: 0.78rem;
    line-height: 1.55;
}

.feed-policy-notice__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.feed-policy-notice__actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #047857;
    background: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.feed-policy-notice__actions a:last-child {
    border-color: #047857;
    color: #fff;
    background: #047857;
}

.feed-content {
    padding-top: 20px;
    padding-bottom: 56px;
}

.feed-filters {
    display: flex;
    gap: 8px;
    margin: 0 -16px 22px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.feed-filters::-webkit-scrollbar {
    display: none;
}

.feed-filter {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--feed-border);
    border-radius: 999px;
    color: #506059;
    background: var(--feed-surface);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.feed-filter:hover,
.feed-filter:focus-visible {
    border-color: #6ee7b7;
    color: var(--feed-brand-dark);
    outline: none;
}

.feed-filter.is-active {
    border-color: var(--feed-brand-dark);
    color: #fff;
    background: var(--feed-brand-dark);
    box-shadow: 0 5px 14px rgba(4, 120, 87, 0.18);
}

.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.feed-stream {
    min-width: 0;
}

.feed-stream__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.feed-stream__kicker,
.feed-guide-card__eyebrow {
    margin: 0 0 3px;
    color: var(--feed-brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.feed-stream__heading h2 {
    margin: 0;
    font-size: 1.32rem;
    letter-spacing: -0.035em;
}

.feed-live-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--feed-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.feed-live-label::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px #dcfce7;
    content: "";
}

.feed-list,
.feed-loading {
    display: grid;
    gap: 12px;
}

.feed-skeleton {
    height: 190px;
    border: 1px solid var(--feed-border);
    border-radius: 18px;
    background:
        linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.8) 50%, transparent 75%),
        linear-gradient(#edf2ef 22px, transparent 0) 22px 25px / 90px 22px no-repeat,
        linear-gradient(#e4ebe7 26px, transparent 0) 22px 66px / 66% 26px no-repeat,
        linear-gradient(#edf2ef 14px, transparent 0) 22px 110px / 84% 14px no-repeat,
        linear-gradient(#edf2ef 14px, transparent 0) 22px 136px / 64% 14px no-repeat,
        #fff;
    background-size: 200% 100%, auto, auto, auto, auto, auto;
    animation: feed-shimmer 1.35s linear infinite;
}

@keyframes feed-shimmer {
    to {
        background-position: -200% 0, 22px 25px, 22px 66px, 22px 110px, 22px 136px, 0 0;
    }
}

.feed-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--feed-border);
    border-radius: 18px;
    background: var(--feed-surface);
    box-shadow: 0 5px 18px rgba(28, 51, 40, 0.045);
}

.feed-card:hover {
    border-color: #cfdcd5;
    box-shadow: 0 9px 26px rgba(28, 51, 40, 0.08);
    transform: translateY(-1px);
}

.feed-card__link {
    display: grid;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.feed-card__content {
    min-width: 0;
    padding: 19px 18px 18px;
}

.feed-card__topline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    padding-right: 48px;
}

.feed-card__type,
.feed-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 800;
}

.feed-card__type {
    color: #065f46;
    background: #d1fae5;
}

.feed-card[data-card-type="RECRUITMENT"] .feed-card__type {
    color: #1d4ed8;
    background: #dbeafe;
}

.feed-card[data-card-type="MARKETPLACE"] .feed-card__type {
    color: #b45309;
    background: #fef3c7;
}

.feed-card[data-card-type="PRODUCT"] .feed-card__type {
    color: #7e22ce;
    background: #f3e8ff;
}

.feed-card__badge {
    color: #9f1239;
    background: #ffe4e6;
}

.feed-card h3 {
    display: -webkit-box;
    margin: 13px 0 8px;
    overflow: hidden;
    color: #18231d;
    font-size: 1.08rem;
    line-height: 1.45;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feed-card__summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--feed-muted);
    font-size: 0.89rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.feed-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin-top: 15px;
    color: #78847e;
    font-size: 0.76rem;
    font-weight: 600;
}

.feed-card__price {
    color: #b45309;
    font-size: 0.84rem;
    font-weight: 800;
}

.feed-card__image-wrap {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    background: #eef3f0;
}

.feed-card__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 168px;
    max-height: 260px;
    object-fit: cover;
}

.feed-card__share {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--feed-border);
    border-radius: 50%;
    color: #65736c;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
}

.feed-card__share:hover,
.feed-card__share:focus-visible {
    border-color: #86d7b7;
    color: var(--feed-brand-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.feed-card__share svg {
    width: 18px;
    height: 18px;
}

.feed-card--promo {
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #1e3a5f, #2f61e8);
}

.feed-card--promo:hover {
    border-color: transparent;
}

.feed-card--promo .feed-card__link {
    display: block;
    padding: 23px 22px;
}

.feed-card--promo .feed-card__type,
.feed-card--promo .feed-card__badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.feed-card--promo h3 {
    margin-top: 15px;
    color: #fff;
    font-size: 1.24rem;
}

.feed-card--promo .feed-card__summary {
    color: rgba(255, 255, 255, 0.78);
}

.feed-card__promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    font-size: 0.83rem;
    font-weight: 800;
}

.feed-state {
    margin-top: 12px;
    padding: 50px 22px;
    border: 1px dashed #cfdad4;
    border-radius: 18px;
    text-align: center;
    background: #fff;
}

.feed-state[hidden] {
    display: none;
}

.feed-state__icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 50%;
    color: var(--feed-brand-dark);
    background: var(--feed-soft);
    font-size: 1.2rem;
    font-weight: 900;
}

.feed-state h3 {
    margin: 0;
    font-size: 1.04rem;
}

.feed-state p {
    margin: 8px 0 0;
    color: var(--feed-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.feed-retry-button,
.feed-more__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.feed-retry-button {
    margin-top: 18px;
    padding: 0 19px;
    border: 0;
    color: #fff;
    background: var(--feed-brand-dark);
}

.feed-more {
    padding-top: 18px;
    text-align: center;
}

.feed-more__button {
    width: 100%;
    padding: 0 20px;
    border: 1px solid #bad7c8;
    color: var(--feed-brand-dark);
    background: #fff;
}

.feed-more__button:hover,
.feed-more__button:focus-visible {
    border-color: var(--feed-brand);
    outline: none;
    background: #f0fdf6;
}

.feed-more__button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.feed-more__spinner {
    width: 15px;
    height: 15px;
    margin-left: 8px;
    border: 2px solid rgba(4, 120, 87, 0.25);
    border-top-color: var(--feed-brand-dark);
    border-radius: 50%;
    animation: feed-spin 0.75s linear infinite;
}

@keyframes feed-spin {
    to {
        transform: rotate(360deg);
    }
}

.feed-sidebar {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.feed-app-card,
.feed-guide-card {
    border-radius: 20px;
}

.feed-app-card {
    position: relative;
    overflow: hidden;
    padding: 24px 21px;
    color: #fff;
    background:
        radial-gradient(circle at 95% 5%, rgba(110, 231, 183, 0.25), transparent 34%),
        #064e3b;
}

.feed-app-card::after {
    position: absolute;
    right: -44px;
    bottom: -70px;
    width: 150px;
    height: 150px;
    border: 24px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.feed-app-card__badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(255, 255, 255, 0.11);
    font-size: 0.7rem;
    font-weight: 800;
}

.feed-app-card h2 {
    position: relative;
    z-index: 1;
    margin: 15px 0 10px;
    font-size: 1.3rem;
    line-height: 1.4;
    letter-spacing: -0.04em;
}

.feed-app-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.6;
}

.feed-store-links {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.feed-store-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.73rem;
    font-weight: 800;
    text-decoration: none;
}

.feed-guide-card {
    padding: 19px;
    border: 1px solid var(--feed-border);
    background: #fff;
}

.feed-guide-card a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #edf1ef;
    color: #344139;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.feed-guide-card a:hover {
    color: var(--feed-brand-dark);
}

.feed-toast {
    position: fixed;
    z-index: 100;
    right: 16px;
    bottom: 18px;
    left: 16px;
    max-width: 360px;
    margin: 0 auto;
    padding: 13px 17px;
    border-radius: 12px;
    color: #fff;
    background: rgba(23, 33, 28, 0.94);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.feed-mobile-appbar {
    display: none;
}

@media (min-width: 680px) {
    .feed-container {
        width: min(1120px, calc(100% - 48px));
    }

    .feed-hero {
        padding: 56px 0 48px;
    }

    .feed-content {
        padding-top: 26px;
    }

    .feed-filters {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .feed-card__link.has-image {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    .feed-card__link.has-image .feed-card__image-wrap {
        grid-column: 2;
        grid-row: 1;
        min-height: 100%;
    }

    .feed-card__link.has-image .feed-card__content {
        grid-column: 1;
        grid-row: 1;
        padding: 22px;
    }

    .feed-card__image {
        min-height: 100%;
        max-height: none;
    }
}

@media (max-width: 939px) {
    .public-feed-page {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .feed-policy-notice__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .feed-policy-notice__actions {
        width: 100%;
    }

    .feed-policy-notice__actions a {
        flex: 1 1 0;
    }

    .feed-mobile-appbar {
        position: fixed;
        z-index: 75;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        min-width: 0;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px max(16px, env(safe-area-inset-right))
            calc(10px + env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
        border-top: 1px solid #d9e4de;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 26px rgba(23, 40, 31, 0.1);
        backdrop-filter: blur(12px);
    }

    .feed-mobile-appbar > div {
        min-width: 0;
    }

    .feed-mobile-appbar strong,
    .feed-mobile-appbar span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .feed-mobile-appbar strong {
        color: #173d2d;
        font-size: 0.84rem;
    }

    .feed-mobile-appbar span {
        margin-top: 2px;
        color: #77827c;
        font-size: 0.69rem;
    }

    .feed-mobile-appbar a {
        display: inline-flex;
        min-width: 82px;
        min-height: 42px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        border-radius: 11px;
        color: #fff;
        background: var(--feed-brand-dark);
        font-size: 0.78rem;
        font-weight: 850;
        text-decoration: none;
    }

    .feed-toast {
        bottom: 88px;
    }
}

@media (min-width: 940px) {
    .feed-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

    .feed-sidebar {
        position: sticky;
        top: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feed-skeleton,
    .feed-more__spinner {
        animation: none;
    }

    .feed-card:hover {
        transform: none;
    }
}
