/* ============================================================================
   DETAIL COLUMN - Share Details & Chat
   ============================================================================ */

.right-column {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Overlay Controls */
.overlay-controls {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    gap: 0.5rem;
    z-index: 10;
}

.control-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.control-btn:hover:not(:disabled) {
    background: #fff;
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Content Area */
.right-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Share Detail Header */
.share-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.0625rem solid #e5e7eb;
}

.share-detail-title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #111b21;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.share-detail-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #4e31ba;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.share-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #667781;
}

.share-detail-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-detail-avatar {
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

}

.share-detail-avatar img {
    width: 100%;
}

.share-detail-time {
    color: #8696a0;
}

.share-detail-stats {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.share-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #667781;
}

/* Share Detail Body */
.share-detail-body {
    margin-bottom: 2rem;
}

.share-detail-featured-image {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.share-detail-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}

.share-detail-blurb {
    font-size: 1rem;
    line-height: 1.6;
    color: #111b21;
    margin-bottom: 1.5rem;
}

.share-detail-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #3b4a54;
}

.share-detail-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1c1e21;
}

.share-detail-content p {
    color: #1c1e21;
}

.share-detail-content h1,
.share-detail-content h2,
.share-detail-content h3,
.share-detail-content h4,
.share-detail-content h5,
.share-detail-content h6 {
    color: #050505;
}

.share-detail-content a {
    color: #4e31ba;
}

/* Share Tags */
.share-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e4e6eb;
}

.share-detail-tags .hashtag-link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f0f2f5;
    border-radius: 1rem;
    font-size: 0.8125rem;
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: none;
}

.share-detail-tags .hashtag-link:hover {
    background: #6c5ce7;
    color: white;
}

.share-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f0f2f5;
    border-radius: 0.5rem;
    color: #4e31ba;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

.share-detail-link:hover {
    background: #e4e6eb;
}

/* Share Detail Badges */
.share-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.share-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f0f2f5;
    border-radius: 1rem;
    font-size: 0.8125rem;
    color: #667781;
}

/* Chat Section - IRC Style */
.share-detail-chat {
    border-top: 1px solid #d8d8d8;
    background: #ededed;
    margin: 4rem -3rem -3rem -3rem;
    min-height: 36rem;
}

.share-detail-chat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-bottom: 1px solid #ced0d1;
    margin: 0;
    font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
}

.share-detail-chat-messages {
    display: flex;
    flex-direction: column;
    background: #ededed;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* IRC-style chat messages */
.chat-message {
    display: block;
    margin-bottom: 0;
    padding: 0.15rem 0.5rem;
    color: #4e31ba;
    transition: background-color 0.15s;
}

.chat-message:hover {
    background-color: rgba(0,0,0,0.05);
}

.chat-message-header {
    display: inline;
}

.chat-message-time {
    color: #6b7280;
    margin-right: 0.25rem;
}

.chat-message-author {
    font-weight: 700;
    color: #60a5fa;
    margin-right: 0.25rem;
}

.chat-message-text {
    color: #4e31ba;
    display: inline;
    word-wrap: break-word;
}

/* Scrollbar styling for chat */
.share-detail-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.share-detail-chat-messages::-webkit-scrollbar-track {
    background: #1a1f28;
}

.share-detail-chat-messages::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

.share-detail-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Fixed Chat Input (mIRC style) - positioned at bottom */
.share-chat-input {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #2d3748;
    background: #1a1f28;
    margin: 0 -2rem;
    z-index: 5;
}

/* Footer */
.right-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 0.0625rem solid #e5e7eb;
    background: #f0f2f5;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 0.0625rem solid #d1d7db;
    border-radius: 1.5rem;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #4e31ba;
}

.chat-button {
    padding: 0.75rem 1.5rem;
    background: #4e31ba;
    color: white;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-button:hover {
    background: #5839c7;
}

/* Empty State */
.detail-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8696a0;
    text-align: center;
    padding: 2rem;
}

.detail-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.detail-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667781;
    margin-bottom: 0.5rem;
}

.detail-empty-message {
    font-size: 0.9375rem;
    color: #8696a0;
}

/* ============================================================================
   SHARE LINKS
   ============================================================================ */

.share-links {
    margin: 1.5rem 0;
}

.share-link-embed {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.share-link-embed iframe {
    display: block;
    width: 100%;
}

.share-link-generic {
    margin-bottom: 1rem;
}

.share-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f0f2f5;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.share-link-card:hover {
    background: #e4e6eb;
    transform: translateX(0.25rem);
}

.share-link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.share-link-text {
    flex: 1;
    min-width: 0;
}

.share-link-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #050505;
    margin-bottom: 0.25rem;
}

.share-link-url {
    font-size: 0.8125rem;
    color: #65676b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-link-arrow {
    font-size: 1.25rem;
    color: #65676b;
    flex-shrink: 0;
}

/* ============================================================================
   GUEST FOOTER
   ============================================================================ */

.guest-footer {
    padding: 1.5rem;
    background: #f7f8fa;
    border-top: 0.0625rem solid #e5e7eb;
}

.guest-message {
    text-align: center;
}

.guest-message p {
    font-size: 0.95rem;
    color: #667781;
    margin: 0;
}

.guest-message a {
    color: #6C47FF;
    text-decoration: none;
    font-weight: 600;
}

.guest-message a:hover {
    text-decoration: underline;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablet: 640px - 1279px */
@media (min-width: 40rem) and (max-width: 79.9375rem) {
    .right-column {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2600;
    }

    .right-column.active {
        transform: translateX(0);
    }

    .overlay-controls {
        display: flex;
    }
}

/* Mobile: < 640px */
@media (max-width: 39.9375rem) {
    .right-column {
        display: none;
    }

    .right-column.active {
        display: flex;
    }
}