/* Blargh - Personal Blogs */

.blargh-container {
    padding: 20px;
}

.blargh-header {
    margin-bottom: 30px;
    background: linear-gradient(180deg, #c45a00 0%, #7a2f00 100%);
    border: 4px outset #ffb066;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.blargh-header img {
    height: 75px;
    width: auto;
}

.blargh-header-text {
    flex: 1;
}

/* User-specific blargh header (three-column layout) */
.blargh-user-header {
    margin-bottom: 30px;
    background: linear-gradient(180deg, #c45a00 0%, #7a2f00 100%);
    border: 4px outset #ffb066;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blargh-user-header .blargh-header-left,
.blargh-user-header .blargh-header-right {
    width: 100px;
    flex-shrink: 0;
}

.blargh-user-header .blargh-header-left {
    display: flex;
    justify-content: flex-start;
}

.blargh-user-header .blargh-header-center {
    flex: 1;
    text-align: center;
}

.blargh-user-header .blargh-header-right {
    display: flex;
    justify-content: flex-end;
}

.blargh-header h1,
.blargh-user-header h1 {
    color: #ffcc00;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 3px 3px 0px #000;
    margin: 0 0 5px 0;
}

.blargh-subtitle {
    color: #ffe0b3;
    font-style: italic;
    font-size: 0.9em;
}

/* User header with avatar */
.user-avatar {
    width: 80px;
    height: 80px;
    border: 3px ridge #ffb066;
    background: #000;
    overflow: hidden;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Post list */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post preview card */
.post-preview {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 3px outset #444;
    padding: 20px;
}

.post-preview h2 {
    margin: 0 0 10px 0;
    font-family: 'Arial Black', sans-serif;
}

.post-preview h2 a {
    color: #ffcc00;
    text-decoration: none;
}

.post-preview h2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.post-meta {
    color: #888;
    margin-bottom: 15px;
}

.post-meta a {
    color: #00ffff;
    text-decoration: none;
}

.post-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.post-excerpt {
    color: #cccccc;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 16px;
}

.summary-input {
    min-height: 120px;
    padding: 8px;
    border: 2px inset #555;
    background: #2a2a3e;
    color: #eee;
    resize: vertical;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    display: inline-block;
    background: linear-gradient(180deg, #6633cc 0%, #4411aa 100%);
    color: #fff;
    padding: 2px 8px;
    border: 1px outset #7744dd;
}

/* Draft indicator */
.post-preview.draft {
    border-left: 4px solid #ff6600;
    background: linear-gradient(180deg, #2a1a1e 0%, #1f0f1a 100%);
}

.draft-badge {
    display: inline-block;
    background: #ff6600;
    color: #000;
    padding: 2px 8px;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 11px;
}

.drafts-section {
    margin-bottom: 20px;
    border-bottom: 2px dashed #ff6600;
    padding-bottom: 15px;
}

.drafts-section-header {
    color: #ff6600;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Full post view */
.post-full {
    background: #0a0a0a;
    border: 3px ridge #666;
    padding: 30px;
}

.post-full header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px groove #ffb066;
}

.post-full header h1 {
    color: #ffff00;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 0 #000;
}

.post-full .post-meta {
    color: #999;
}

.post-full .post-body {
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 700px;
}

/* Post body content styling */
.post-body h1 {
    color: #ff6600;
    margin: 1.5em 0 0.5em 0;
    text-shadow: 1px 1px 0 #000;
}

.post-body h2 {
    color: #6633cc;
    margin: 1.5em 0 0.5em 0;
}

.post-body h3 {
    color: #00ccff;
    margin: 1.5em 0 0.5em 0;
}

.post-body p {
    margin: 0 0 1em 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border: 2px solid #666;
    margin: 1em 0;
}

.post-body blockquote {
    border-left: 4px solid #ff6600;
    margin: 1em 0;
    padding: 10px 20px;
    background: #1a1a1a;
    font-style: italic;
    color: #ccc;
}

.post-body pre,
.post-body code {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    color: #00ff00;
}

.post-body pre {
    padding: 15px;
    border: 1px solid #444;
    overflow-x: auto;
    margin: 1em 0;
}

.post-body code {
    padding: 2px 5px;
}

.post-body ul,
.post-body ol {
    margin: 1em 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

.post-body table th,
.post-body table td {
    border: 1px solid #444;
    padding: 8px 12px;
}

.post-body table th {
    background: #1a1a1a;
    color: #ffff00;
    font-weight: bold;
}

.post-body table td {
    background: #0f0f0f;
}

.post-body hr {
    border: none;
    border-top: 2px groove #444;
    margin: 2em 0;
}

.post-body strong,
.post-body b {
    color: #fff;
    font-weight: bold;
}

.post-body em,
.post-body i {
    color: #ddd;
    font-style: italic;
}

.post-body a {
    color: #00ccff;
    text-decoration: underline;
}

.post-body a:hover {
    color: #ffff00;
}

/* Quill editor - match post-body styling */
.ql-editor {
    line-height: 1.7;
    color: #e0e0e0;
}

.ql-editor p {
    margin: 0 0 1em 0;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
    margin: 1.5em 0 0.5em 0;
}

.ql-editor blockquote {
    border-left: 4px solid #ff6600;
    margin: 1em 0;
    padding: 10px 20px;
    background: #1a1a1a;
    font-style: italic;
    color: #ccc;
}

.ql-editor ul,
.ql-editor ol {
    margin: 1em 0;
    padding-left: 30px;
}

.ql-editor li {
    margin-bottom: 0.5em;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

.post-full .post-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* Navigation */
.blargh-nav {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.blargh-nav a {
    color: #00ccff;
    text-decoration: none;
}

.blargh-nav a:hover {
    color: #ffff00;
    text-decoration: underline;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

/* Sidebar danger link */
.sidebar-links .danger {
    color: #cc0000;
}

.sidebar-links .danger:hover {
    color: #ff0000;
}
