/* ===== My saved / history ===== */

.saved-page {
    max-width: 760px;
    margin: 20px auto 48px;
    padding: 0 14px;
    color: #e4e4e7;
    font-family: 'Inter', system-ui, sans-serif;
}

.saved-back {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    text-decoration: none;
}

.saved-back:hover {
    color: #c084fc;
}

.saved-hero h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

.saved-hero p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #9ca3af;
}

.saved-lock {
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    background: #1a1a1f;
    border: 1px solid rgba(188, 19, 254, 0.2);
}

.saved-lock__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.saved-lock h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #fff;
}

.saved-lock p {
    margin: 0 auto 18px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.55;
    color: #9ca3af;
}

.saved-lock__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.saved-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.saved-btn--primary {
    background: linear-gradient(135deg, #8e24aa, #bc13fe);
    color: #fff;
}

.saved-btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

.saved-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.saved-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.saved-tab.is-active {
    border-color: rgba(188, 19, 254, 0.35);
    background: rgba(188, 19, 254, 0.1);
    color: #fff;
}

.saved-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 800;
}

.saved-tab.is-active .saved-tab__count {
    background: rgba(188, 19, 254, 0.25);
    color: #f3e8ff;
}

.saved-meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b7280;
}

.saved-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saved-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    border-radius: 14px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.saved-card__link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
}

.saved-card__link:hover {
    background: rgba(255, 255, 255, 0.02);
}

.saved-card__photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #25252b;
}

.saved-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.saved-card__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: #9ca3af;
}

.saved-card__remove {
    display: flex;
    align-items: center;
    padding: 0 10px 0 0;
    margin: 0;
}

.saved-remove-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fca5a5;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.saved-remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.saved-empty {
    padding: 36px 18px;
    border-radius: 16px;
    text-align: center;
    background: #1a1a1f;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.saved-empty__icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.saved-empty h2 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #fff;
}

.saved-empty p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

.saved-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.saved-pagination a,
.saved-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.saved-pagination .is-active {
    background: linear-gradient(135deg, #8e24aa, #bc13fe);
    border-color: transparent;
}

.saved-note {
    margin: 16px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 560px) {
    .saved-tabs {
        grid-template-columns: 1fr;
    }

    .saved-card__link {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .saved-card__photo {
        width: 60px;
        height: 60px;
    }
}

/* Post page favorite button */
.post-fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.post-fav-btn:hover {
    border-color: rgba(255, 215, 64, 0.35);
    color: #fff;
}

.post-fav-btn.is-active {
    border-color: rgba(255, 215, 64, 0.45);
    background: rgba(255, 215, 64, 0.12);
    color: #fde68a;
}

.post-fav-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.hero-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
