/* ============================================================
   NKEY X Timeline - Frontend Styles
   ============================================================ */

.nkey-xt-timeline {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.nkey-xt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nkey-xt-logo {
    color: #fff;
    flex-shrink: 0;
}

.nkey-xt-handle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.nkey-xt-follow {
    margin-left: auto;
    background: #fff;
    color: #000;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nkey-xt-follow:hover {
    opacity: 0.85;
    color: #000;
}

/* Posts */
.nkey-xt-posts {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nkey-xt-posts::-webkit-scrollbar {
    width: 4px;
}

.nkey-xt-posts::-webkit-scrollbar-track {
    background: transparent;
}

.nkey-xt-posts::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* oEmbed tweet styling override */
.nkey-xt-posts .twitter-tweet,
.nkey-xt-posts blockquote {
    margin: 0 !important;
    padding: 16px 20px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

.nkey-xt-posts blockquote a {
    color: #c5a059 !important;
    text-decoration: none !important;
}

.nkey-xt-posts blockquote a:hover {
    color: #d4af6a !important;
}

/* Fallback link */
.nkey-xt-fallback {
    padding: 16px 20px !important;
}

.nkey-xt-fallback a {
    color: #c5a059 !important;
}

/* More link */
.nkey-xt-more {
    display: block;
    text-align: center;
    padding: 14px 20px;
    color: #c5a059;
    font-size: 0.875rem;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.nkey-xt-more:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #d4af6a;
}
