/* Bluesky Comments - Half-Life Theme Integration */

.bluesky-comments {
    margin-top: 3rem;
}

.bluesky-comments hr {
    border: 0;
    border-top: 2px solid #2d3d35;
    margin-bottom: 2rem;
}

.bluesky-comments h2 {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    border-left: 4px solid #ff6600;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

.bluesky-comments-info {
    color: #c5d1cf;
    margin-bottom: 1.5rem;
    font-size: 0.95em;
}

.bluesky-comments-info a {
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.3);
    text-decoration: none;
}

.bluesky-comments-info a:hover {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.bluesky-comments-loading,
.bluesky-comments-empty,
.bluesky-comments-error,
.bluesky-comments-noscript {
    padding: 2rem;
    background-color: #1a2420;
    border: 2px solid #2d3d35;
    border-left: 4px solid #ff6600;
    border-radius: 2px;
    color: #c5d1cf;
    text-align: center;
    font-family: monospace;
}

.bluesky-comments-error {
    border-left-color: #ff3333;
    color: #ff8888;
}

.bluesky-comments-error a,
.bluesky-comments-noscript a {
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.3);
}

.bluesky-comments-list {
    margin-top: 1.5rem;
}

.bluesky-comment {
    background-color: #1a2420;
    border: 2px solid #2d3d35;
    border-left: 3px solid #00ff66;
    border-radius: 2px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.1);
    transition: all 0.2s ease;
}

.bluesky-comment:hover {
    border-left-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.bluesky-comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.bluesky-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2d3d35;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
    margin: 0;
}

.bluesky-comment-author {
    flex: 1;
    min-width: 0;
}

.bluesky-comment-author strong {
    color: #ff9933;
    font-family: monospace;
    display: block;
}

.bluesky-comment-handle {
    color: #00ff66;
    font-size: 0.85em;
    font-family: monospace;
}

.bluesky-comment-time {
    color: #888;
    font-size: 0.85em;
    font-family: monospace;
    margin-left: auto;
}

.bluesky-comment-content {
    color: #c5d1cf;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-family: monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bluesky-comment-content a {
    color: #00ff66;
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(0, 255, 100, 0.3);
}

.bluesky-comment-content a:hover {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.bluesky-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #888;
    border-top: 1px solid #2d3d35;
    padding-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bluesky-comment-link {
    color: #00ff66;
    text-decoration: none;
    font-family: monospace;
}

.bluesky-comment-link:hover {
    color: #ff8c00;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.bluesky-comment-stats {
    color: #888;
    font-family: monospace;
}

.bluesky-comment-replies {
    margin-top: 1rem;
    margin-left: 2rem;
    border-left: 2px solid #2d3d35;
    padding-left: 1rem;
}

/* Nested comment depth indicators */
.bluesky-comment-replies .bluesky-comment {
    border-left-width: 2px;
}

.bluesky-comment-replies .bluesky-comment:hover {
    border-left-width: 2px;
}

/* Limit extreme nesting on mobile */
.bluesky-comment-replies .bluesky-comment-replies .bluesky-comment-replies .bluesky-comment-replies {
    margin-left: 0;
    padding-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .bluesky-comment-replies {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }

    .bluesky-comment-header {
        font-size: 0.9em;
    }

    .bluesky-comment-avatar {
        width: 35px;
        height: 35px;
    }

    .bluesky-comment-footer {
        font-size: 0.8em;
    }
}
