/* SocialGram Discussion Styles */

.socialgram-container {
    background: #ffffff;
    padding: 20px;
    border: 2px solid #000080;
    margin: 20px 0;
}

.sg-header {
    border-bottom: 2px solid #c0c0c0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sg-header h3 {
    margin: 0 0 5px 0;
    color: #000080;
}

.sg-search {
    margin: 15px 0;
}

.sg-search input {
    width: 100%;
    padding: 8px;
    border: 2px inset #c0c0c0;
    font-family: inherit;
}

.sg-post-form {
    background: #f0f0f0;
    padding: 15px;
    border: 2px outset #c0c0c0;
    margin-bottom: 20px;
}

.sg-post-form textarea {
    width: 100%;
    padding: 8px;
    border: 2px inset #c0c0c0;
    font-family: inherit;
    min-height: 80px;
}

.sg-post-form input[type="text"] {
    width: 200px;
    padding: 6px;
    border: 2px inset #c0c0c0;
    font-family: inherit;
}

.sg-post-form button {
    padding: 8px 20px;
    background: #000080;
    color: #ffffff;
    border: 2px outset #c0c0c0;
    cursor: pointer;
    font-family: inherit;
}

.sg-posts {
    margin-top: 20px;
}

.sg-post {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0 #c0c0c0;
}

.sg-post.level-1 { margin-left: 30px; }
.sg-post.level-2 { margin-left: 60px; }
.sg-post.level-3 { margin-left: 90px; }
.sg-post.level-4 { margin-left: 120px; }

.sg-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #c0c0c0;
    margin-bottom: 10px;
}

.sg-post-meta {
    font-size: 0.9em;
    color: #666;
}

.sg-post-author {
    font-weight: bold;
    color: #000080;
}

.sg-post-content {
    margin: 10px 0;
    line-height: 1.6;
}

.sg-post-content p {
    margin: 5px 0;
}

.sg-post-content a {
    color: #0000ff;
    text-decoration: underline;
}

.sg-post-image {
    margin: 10px 0;
    max-width: 100%;
}

.sg-post-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #808080;
}

.sg-post-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
}

.sg-post-actions button,
.sg-post-actions a {
    background: #c0c0c0;
    border: 1px outset #808080;
    padding: 4px 12px;
    margin-right: 5px;
    cursor: pointer;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    font-size: 0.9em;
}

.sg-post-actions button:hover,
.sg-post-actions a:hover {
    background: #d0d0d0;
}

.sg-reply-form {
    background: #fffacd;
    padding: 10px;
    border: 1px solid #ffcc00;
    margin-top: 10px;
    display: none;
}

.sg-reply-form.active {
    display: block;
}

.sg-reply-form textarea {
    width: 100%;
    padding: 6px;
    border: 2px inset #c0c0c0;
    font-family: inherit;
    min-height: 60px;
}

.sg-media-embed {
    margin: 10px 0;
}

.sg-media-embed iframe {
    max-width: 100%;
    border: 1px solid #808080;
}

.sg-admin-badge {
    background: #cc0000;
    color: #ffffff;
    padding: 2px 6px;
    font-size: 0.8em;
    border-radius: 3px;
    margin-left: 5px;
}

.sg-edited {
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

.sg-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}
