/**
 * Starlight Network - Blog Stylesheet
 * ====================================
 * Styles für Blog, Posts, Comments
 */

/* Blog Page Layout */
.blog-page {
    min-height: 100vh;
    padding: 2rem;
    padding-top: 5rem;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Blog Header */
.blog-header {
    margin-bottom: 2rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    color: rgba(224, 224, 224, 0.6);
    font-size: 1.1rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(224, 224, 224, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.category-tag:hover,
.category-tag.active {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    color: #00f3ff;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Post Card */
.post-card {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
}

.post-card.pinned {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.post-card.pinned::before {
    content: '📌 Angepinnt';
    display: inline-block;
    font-size: 0.75rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 243, 255, 0.1);
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date {
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.5);
}

.post-title-link {
    text-decoration: none;
    color: inherit;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-title-link:hover .post-title {
    color: #00f3ff;
}

.post-excerpt {
    color: rgba(224, 224, 224, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    color: #00f3ff;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.5);
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Single Post */
.single-post {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.single-post .post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-content {
    color: rgba(224, 224, 224, 0.9);
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #ffffff;
    margin: 1.5rem 0 1rem;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.1rem; }

.post-content p {
    margin-bottom: 1rem;
}

.post-content a {
    color: #00f3ff;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 3px solid #00f3ff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: rgba(224, 224, 224, 0.7);
    font-style: italic;
}

.post-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Comments Section */
.comments-section {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-count {
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.5);
    font-weight: 400;
}

/* Comment Form */
.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(0, 243, 255, 0.5);
}

.comment-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00f3ff 0%, #00c4cc 100%);
    border: none;
    border-radius: 8px;
    color: #050510;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

/* Comment List */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 243, 255, 0.1);
}

.comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: rgba(224, 224, 224, 0.4);
    margin-left: auto;
}

.comment-content {
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-action {
    font-size: 0.8rem;
    color: rgba(224, 224, 224, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.comment-action:hover {
    color: #00f3ff;
}

.comment-action.delete:hover {
    color: #ef4444;
}

/* Nested Comments */
.comment-replies {
    margin-top: 1rem;
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(224, 224, 224, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    color: #00f3ff;
}

/* Admin Badge */
.admin-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-admin {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-edit {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #00f3ff;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(224, 224, 224, 0.5);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Create/Edit Form */
.post-form {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(224, 224, 224, 0.8);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-textarea {
    min-height: 300px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 243, 255, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input {
    accent-color: #00f3ff;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-page {
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .single-post .post-title {
        font-size: 1.5rem;
    }
    
    .comment-replies {
        margin-left: 1rem;
    }
}
