/* DID Ring guestbook custom element styles */
didring-ring,
didring-guestbook {
    display: block;
    margin-top: 2rem;
}

.ring-header,
.guestbook-header {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #ddd);
    padding-bottom: 0.5rem;
}

.member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    background: var(--bg-1, #f5f5f5);
    border-radius: 6px;
}

.member img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.member .avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2, #ccc);
}

.member .name {
    font-weight: 600;
}

.member .did {
    font-size: 0.8rem;
    color: var(--text-2, #888);
    font-family: monospace;
}

.post {
    background: var(--bg-1, #f5f5f5);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.post h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.post .date {
    font-size: 0.8rem;
    color: var(--text-2, #888);
    margin-bottom: 0.5rem;
}

.post .text {
    line-height: 1.5;
}

.interaction {
    padding: 0.5rem 0.75rem;
    margin: 0.3rem 0;
    background: var(--bg-0, #fff);
    border-radius: 4px;
    font-size: 0.9rem;
}

.interaction .author {
    font-weight: 600;
    color: var(--primary-color, #087e96);
}

/* Like totals — heart + count, social-media style */
.post-meta {
    margin-top: 0.5rem;
}

.like-total {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-2, #888);
    font-size: 0.9rem;
}

.like-heart {
    color: #ec4899;
    vertical-align: -2px;
}

.like-button .like-heart {
    color: #fff;
}

.didring-empty {
    color: var(--text-2, #888);
    font-style: italic;
    padding: 1rem 0;
}

.didring-loading {
    color: var(--primary-color, #087e96);
    font-style: italic;
}

.didring-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Auth panel */
didring-auth {
    display: block;
    margin-top: 1.5rem;
}

.auth-box {
    background: var(--bg-1, #f5f5f5);
    border-radius: 6px;
    padding: 1rem;
}

.auth-box code {
    font-size: 0.85rem;
    word-break: break-all;
}

.auth-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.auth-form label {
    flex-basis: 100%;
}

.auth-form input {
    flex: 1 1 14rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    background: var(--bg-0, #fff);
    color: inherit;
}

.auth-box button,
.entry-actions button {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color, #087e96);
    color: #fff;
    cursor: pointer;
}

.auth-box button:disabled,
.entry-actions button:disabled {
    opacity: 0.5;
    cursor: default;
}

.auth-signout {
    margin-left: 0.75rem;
}

.auth-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-2, #888);
}

/* Guest entry form */
.entry-form {
    margin-top: 0.75rem;
}

.entry-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    background: var(--bg-0, #fff);
    color: inherit;
    resize: vertical;
}

.entry-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.entry-status {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-2, #888);
}

.entry-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Bluesky sign-in button icon (theme icons are black; invert on color bg) */
.bluesky-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bluesky-button img {
    filter: invert(1);
}

/* Credit line */
.didring-credit {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-2, #888);
}

/* Webring */
didring-webring {
    display: block;
    margin-top: 1.5rem;
}

.webring-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-1, #f5f5f5);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.webring-button {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color, #087e96);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.webring-button:hover {
    text-decoration: none;
    opacity: 0.9;
}

.webring-button:disabled {
    opacity: 0.5;
    cursor: default;
}

a.webring-member {
    text-decoration: none;
    color: inherit;
}

.webring-member .handle {
    font-size: 0.85rem;
    color: var(--text-2, #888);
}

.webring-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    color: var(--text-2, #888);
    font-size: 0.9rem;
}
