/* RemySpace — components.css
   Buttons, alerts, badges, lists, tables, pagination, profile cards. */

/* --- Buttons --- */
.rs-button-primary,
.rs-button-primary-link,
.rs-button-secondary,
.rs-button-small,
.rs-button-disabled {
    display: inline-block;
    font-family: inherit;
    font-weight: bold;
    border-radius: var(--rs-radius);
    cursor: pointer;
    text-align: center;
}

.rs-button-primary,
.rs-button-primary-link {
    background: #2A5C99;
    color: #fff !important;
    border: 1px solid #16345C;
    padding: 9px 18px;
    font-size: 13px;
}
.rs-button-primary:hover,
.rs-button-primary-link:hover {
    background: #16345C;
    text-decoration: none;
}

.rs-button-secondary {
    background: #F3F6FB;
    color: var(--rs-link);
    border: 1px solid var(--rs-border-strong);
    padding: 9px 18px;
    font-size: 13px;
}
.rs-button-secondary:hover {
    background: #E7EEF7;
    text-decoration: none;
}

.rs-button-small {
    background: #DCE7F5;
    color: var(--rs-header-bg);
    border: 1px solid var(--rs-border-strong);
    padding: 5px 10px;
    font-size: 12px;
}
.rs-button-small:hover {
    background: #C7D9EE;
    text-decoration: none;
}

.rs-button-muted {
    background: #F3F6FB;
    color: var(--rs-text-muted);
}

.rs-button-disabled,
button[disabled],
.rs-button-small[disabled] {
    background: #EFEFEF;
    color: #999;
    border: 1px solid #D5D5D5;
    padding: 5px 10px;
    font-size: 12px;
    cursor: not-allowed;
}

.rs-link-button {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.rs-inline-form {
    display: inline;
}

/* --- Alerts --- */
.rs-alert {
    border-radius: var(--rs-radius);
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid;
    font-size: 13px;
}
.rs-alert-success {
    background: var(--rs-success-bg);
    color: var(--rs-success-text);
    border-color: var(--rs-success-border);
}
.rs-alert-error {
    background: var(--rs-error-bg);
    color: var(--rs-error-text);
    border-color: var(--rs-error-border);
}
.rs-alert-warning {
    background: var(--rs-warning-bg);
    color: var(--rs-warning-text);
    border-color: var(--rs-warning-border);
}
.rs-alert-warning p {
    margin: 0 0 8px;
}
.rs-alert-warning p:last-child {
    margin-bottom: 0;
}
.rs-error-list {
    margin: 0;
    padding-left: 18px;
}

/* --- Badges --- */
.rs-badge {
    display: inline-block;
    background: #C0392B;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 7px;
    font-weight: bold;
}

.rs-founder-badge {
    display: inline-block;
    background: #16345C;
    color: #fff;
    border-radius: var(--rs-radius);
    font-size: 10px;
    padding: 2px 6px;
    vertical-align: middle;
    font-weight: bold;
}

/* --- Lists --- */
.rs-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rs-simple-list li {
    padding: 7px 0;
    border-bottom: 1px solid var(--rs-muted-bg);
}
.rs-simple-list li:last-child {
    border-bottom: none;
}
.rs-simple-list li.rs-unread {
    background: #F6FAFF;
}
.rs-timestamp {
    color: var(--rs-text-muted);
    font-size: 11px;
    display: block;
}
.rs-inline-actions {
    float: right;
}

.rs-empty-state {
    color: var(--rs-text-muted);
    font-style: italic;
    padding: 8px 0;
}

.rs-feature-list li {
    margin-bottom: 6px;
}

.rs-fine-print {
    font-size: 11px;
    color: var(--rs-text-muted);
}

/* --- Tables --- */
.rs-admin-table {
    font-size: 12px;
    margin-top: 10px;
}
.rs-admin-table th,
.rs-admin-table td {
    text-align: left;
    padding: 7px 8px;
    border-bottom: 1px solid var(--rs-muted-bg);
}
.rs-admin-table th {
    background: var(--rs-muted-bg);
    font-weight: bold;
}
.rs-admin-detail-table th {
    text-align: left;
    padding: 5px 10px 5px 0;
    vertical-align: top;
    color: var(--rs-text-muted);
    white-space: nowrap;
}
.rs-admin-detail-table td {
    padding: 5px 0;
}

/* --- Pagination --- */
.rs-pagination {
    margin-top: 14px;
    text-align: center;
}
.rs-pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: #fff;
}
.rs-pagination a.rs-pagination-current {
    background: var(--rs-header-bg);
    color: #fff;
    border-color: var(--rs-header-bg);
}

/* --- Friend / member grid --- */
.rs-friend-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.rs-friend-card a {
    display: block;
    text-align: center;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 8px;
    background: var(--rs-muted-bg);
}
.rs-friend-card a:hover {
    background: #E7EEF7;
    text-decoration: none;
}
.rs-friend-card-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--rs-border);
    margin-bottom: 6px;
    background: #fff;
}
.rs-friend-card-name {
    display: block;
    font-weight: bold;
    font-size: 12px;
    color: var(--rs-text);
}
.rs-friend-card-username {
    display: block;
    font-size: 11px;
    color: var(--rs-text-muted);
}

/* --- Admin dashboard stat cards --- */
.rs-admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.rs-admin-stat-card {
    background: #fff;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    padding: 12px;
    text-align: center;
}
.rs-admin-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--rs-header-bg);
    margin: 0;
}
.rs-admin-stat-label {
    font-size: 11px;
    color: var(--rs-text-muted);
    margin: 4px 0 0;
}

/* --- Hero (guest homepage) --- */
.rs-hero-box .rs-box-header { display: none; }
.rs-hero-box {
    text-align: left;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.rs-hero-heading {
    font-size: 24px;
    color: var(--rs-header-bg);
    margin: 0 0 4px;
}
.rs-hero-kicker {
    font-size: 16px;
    font-weight: bold;
    color: var(--rs-header-bg);
    margin: 0 0 8px;
}
.rs-hero-tagline {
    font-style: normal;
    color: var(--rs-text);
    margin: 0 0 14px;
    max-width: 52rem;
    line-height: 1.45;
}
.rs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.rs-hero-actions .rs-button-primary,
.rs-hero-actions .rs-button-secondary {
    margin: 0;
}
.rs-hero-age { margin: 0; }

/* --- Guest homepage layout --- */
.rs-guest-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 12px;
    align-items: start;
}
.rs-guest-home-main,
.rs-guest-home-side {
    min-width: 0;
}
.rs-guest-home .rs-box {
    margin-bottom: 12px;
}
.rs-guest-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.rs-guest-feature {
    border: 1px solid var(--rs-border);
    background: #fff;
    padding: 10px 12px;
}
.rs-guest-feature h3 {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--rs-header-bg);
}
.rs-guest-feature p {
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.4;
}
.rs-guest-feature a {
    font-size: 12px;
    font-weight: bold;
}
.rs-guest-people-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.rs-guest-simple-list {
    margin: 0 0 10px;
    padding-left: 18px;
}
.rs-guest-simple-list li {
    margin-bottom: 4px;
}
.rs-guest-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rs-guest-quick-links li {
    border-bottom: 1px solid var(--rs-border);
}
.rs-guest-quick-links a {
    display: block;
    padding: 6px 0;
    font-weight: bold;
}
.rs-guest-jesse-card {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.rs-guest-jesse-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--rs-border);
    background: #eee;
}
.rs-guest-jesse-name {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
}
.rs-guest-login-form .rs-button-primary {
    width: 100%;
}
.rs-box-header-link {
    float: right;
    font-size: 11px;
    font-weight: normal;
    color: #fff;
    text-decoration: underline;
}

.rs-inline-search-form {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.rs-inline-search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}
/* Selects default to width:100% (forms.css); in a flex row that resolves
   its flex-basis against the full container width and starves siblings. */
.rs-inline-search-form select {
    flex: 0 0 auto;
    width: auto;
}

/* Settings / notifications */
.rs-settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--rs-border);
}
.rs-settings-nav a {
    font-size: 13px;
}
.rs-settings-nav a.rs-active {
    font-weight: bold;
    text-decoration: underline;
}
.rs-settings-section-title {
    margin: 14px 0 6px;
    font-size: 13px;
    color: var(--rs-box-header-text);
}
.rs-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rs-notification-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rs-border);
}
.rs-notification-item:last-child {
    border-bottom: none;
}
.rs-notification-unread {
    background: var(--rs-muted-bg);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
}
.rs-notification-main {
    flex: 1 1 220px;
    min-width: 0;
}
.rs-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.rs-notification-link {
    word-break: break-word;
}

/* Phase 13 — breadcrumbs */
.rs-breadcrumbs { margin: 0 0 12px; font-size: 0.9rem; }
.rs-breadcrumbs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.rs-breadcrumbs-list li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--rs-muted, #555); }
.rs-breadcrumbs-list li + li::before { content: "›"; color: #888; margin-right: 0.15rem; }
.rs-breadcrumbs-list a { color: inherit; }
