/* Starter Packs explore page - extends feeds.css / lifesearch.css patterns */
body {
    font-family: "Roboto", sans-serif;
    background-color: var(--uw-white-1);
    margin: 0;
    padding: 0;
    color: var(--uw-text-1);
}

.starter-packs-container .feeds-container {
    width: 100%;
    max-width: 600px;
    background: var(--uw-white-1);
    color: var(--uw-text-1);
    margin: auto;
    margin-top: 60px;
    margin-bottom: 40px;
    overflow: hidden;
    transition: 0.1s;
    box-sizing: border-box;
}

.starter-packs-header-actions {
    margin-left: auto;
    text-decoration: none;
    color: inherit;
}

.starter-packs-description {
    color: var(--uw-text-2);
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.starter-packs-container .feeds-section-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--uw-text-1);
    margin: 0 0 12px 0;
}

.starter-packs-container .feeds-section-header:not(:first-of-type) {
    margin-top: 28px;
}

.starter-packs-my-list {
    margin-bottom: 24px;
}

.starter-packs-search-wrap {
    margin-bottom: 16px;
}

.starter-packs-search-wrap .search-bar {
    display: flex;
    align-items: center;
    background: var(--uw-background-11);
    border-radius: 20px;
    padding: 10px 16px;
    width: 100%;
    transition: 0.1s;
    box-sizing: border-box;
}


.starter-packs-search-wrap .search-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    opacity: 0.8;
}

.starter-packs-search-wrap .search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--uw-text-1);
    outline: none;
}

.starter-packs-search-wrap .search-bar input::placeholder {
    color: var(--uw-text-2);
}

.starter-packs-load-more-wrap {
    text-align: center;
    margin-top: 16px;
}

.starter-packs-load-more-wrap .create-feed-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--uw-white-2);
    color: var(--uw-text-1);
    border: 1px solid var(--uw-white-3);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.1s;
    text-decoration: none;
}

.starter-packs-load-more-wrap .create-feed-button:hover {
    background-color: var(--uw-white-3);
    border: 1px solid var(--uw-white-4);
}

/* Pack card - improved layout with creator block */
.starter-packs-container .discover-feeds-list {
    gap: 14px;
}

.sp-pack-card {
    background: var(--uw-background-11);
    border-radius: 20px;
    margin-bottom: 0;
    overflow: hidden;
    transition: border-color 0.1s;
    position: relative;
    transition:0.1s;
}

.sp-pack-card:hover {
    background: var(--uw-white-2);
}

.sp-pack-card-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.sp-pack-card-header {
    margin-bottom: 10px;
}

.sp-pack-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--uw-text-1);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-card-inline-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Optional action button inside card (used on Feeds page) */
.sp-card-action {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.sp-pack-card-meta {
    font-size: 13px;
    color: var(--uw-text-2);
}

.sp-pack-card-meta .save-count {
    font-weight: 500;
}

.sp-pack-card-desc {
    font-size: 14px;
    color: var(--uw-text-2);
    line-height: 1.45;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-pack-card-creator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.sp-pack-card-creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sp-pack-card-creator-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-pack-card-created-by {
    font-size: 11px;
    font-weight: 500;
    color: var(--uw-text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sp-pack-card-creator-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-pack-card-creator-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--uw-text-1);
}

.sp-pack-card-creator-badges {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.sp-pack-card-creator-badges .profile-badge {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.sp-pack-card-creator-handle {
    font-size: 13px;
    color: var(--uw-text-2);
}

.no-feeds-message {
    font-size: 14px;
    color: var(--uw-text-2);
    text-align: center;
    padding: 16px 0;
}

/* Profile tab: pack and feed cards - same layout as starter_packs.html (left-aligned) */
#profile-tab-starter_packs,
#profile-tab-feeds {
    text-align: left;
}

#profile-tab-starter_packs .profile-pack-cards-list,
#profile-tab-feeds .profile-feed-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: left;
    width: 100%;
}

#profile-tab-starter_packs .profile-pack-cards-list .sp-pack-card,
#profile-tab-feeds .profile-feed-cards-list .sp-pack-card {
    width: 100%;
    max-width: 100%;
}

.sp-feed-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Community invite (/join/community/…) — same shell as Starter Packs page ── */
.community-invite-page .ci-invite-single.discover-feeds-list {
    margin-top: 4px;
}

.community-invite-page .ci-invite-card-body {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.community-invite-page .ci-invite-card .sp-pack-card-name {
    font-size: 18px;
}

/* Full-width copy on invite cards (pack cards clamp to 2 lines in the discover list) */
.community-invite-page .ci-invite-card .sp-pack-card-desc {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    -webkit-box-orient: unset;
}

.community-invite-page .ci-invite-creator-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-radius: 12px;
    margin: 0 -6px;
    padding-left: 6px;
    padding-right: 6px;
    transition: background 0.1s;
}

.community-invite-page .ci-invite-creator-link:hover {
    background: var(--uw-white-2);
}

.community-invite-page .ci-invite-creator-link:hover .sp-pack-card-creator-name {
    color: var(--uw-blurple-1);
}

.community-invite-page .ci-invite-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.community-invite-page .ci-invite-footer-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.community-invite-page .ci-join-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    border: none;
    background: var(--uw-blurple-1);
    color: #fff;
    text-decoration: none;
    transition: background 0.1s, transform 0.1s;
    box-sizing: border-box;
}

.community-invite-page .ci-join-primary:hover {
    background: var(--uw-blurple-2);
    color: #fff;
}

.community-invite-page .ci-join-primary:active {
    transform: scale(0.98);
}

.community-invite-page .ci-join-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.community-invite-page .ci-invite-error {
    margin: 0;
    padding: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--uw-red-1);
    font-family: "Roboto", sans-serif;
}

.community-invite-page .ci-invite-card--invalid {
    border: 1px solid var(--uw-white-3);
}

.community-invite-page .ci-invite-card--blocked {
    border: 1px solid rgba(255, 47, 47, 0.22);
    background: rgba(255, 47, 47, 0.04);
}

[data-theme="dark"] .community-invite-page .ci-invite-card--blocked {
    background: rgba(255, 47, 47, 0.08);
    border-color: rgba(255, 47, 47, 0.35);
}
