/* Additional styles for auth and comments */

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-name {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Auth Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Post Modal Styles */
.post-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.post-modal-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.post-full-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

#comments-list {
    margin-bottom: 2rem;
}

.comment-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-header strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-text {
    color: var(--text-main);
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form textarea {
    padding: 1rem;
    border-radius: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.login-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Responsive updates */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
    }

    .user-menu {
        flex-direction: column;
        width: 100%;
    }

    .post-modal-image {
        height: 250px;
    }
}