/* Blog-System Styling für CreatorNest */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-input-group i {
    color: #6b7280;
    padding: 15px;
}

.search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 1rem;
}

.search-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
}

/* Blog Layout */
.blog-main {
    padding: 60px 0;
    background: #f8fafc;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-left h3 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.results-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.clear-filters {
    color: #ef4444;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ef4444;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #ef4444;
    color: white;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border-radius: 25px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    background: var(--category-color, #6366f1);
    color: white;
    transform: translateY(-2px);
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.post-count {
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.post-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-stats {
    display: flex;
    gap: 10px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #6366f1;
}

.post-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.post-category-small {
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.no-posts-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-posts h3 {
    color: #1f2937;
    margin-bottom: 10px;
}

.no-posts p {
    color: #6b7280;
    margin-bottom: 30px;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar-widget h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h4 i {
    color: #6366f1;
}

/* Popular Posts */
.popular-posts,
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post,
.recent-post {
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.popular-post:last-child,
.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post h5,
.recent-post h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.popular-post h5 a,
.recent-post h5 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post h5 a:hover,
.recent-post h5 a:hover {
    color: #6366f1;
}

.popular-meta,
.recent-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #6b7280;
}

.recent-category {
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
    font-size: 0.7rem;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-link:hover,
.category-link.active {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #e5e7eb;
}

.category-link .category-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.category-count {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    color: #6b7280;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.newsletter-widget h4 {
    color: white;
}

.newsletter-widget h4 i {
    color: rgba(255,255,255,0.8);
}

.newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    outline: none;
}

.newsletter-form button {
    align-self: flex-start;
}

/* Article Page Styles */
.blog-post-container {
    min-height: 100vh;
}

.breadcrumb {
    padding: 20px 0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #6366f1;
    text-decoration: none;
}

.breadcrumb i {
    color: #d1d5db;
}

.breadcrumb span {
    color: #6b7280;
}

/* Article Header */
.article-header {
    position: relative;
    background: #1f2937;
    color: white;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.article-header-content {
    position: relative;
    z-index: 3;
    padding: 80px 0 60px;
    max-width: 800px;
}

.article-category a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.article-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.article-excerpt {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    font-style: italic;
}

/* Article Main Content */
.article-main {
    padding: 60px 0;
    background: #f8fafc;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.article-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.article-body {
    padding: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #374151;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #1f2937;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-body h2 {
    font-size: 2rem;
    border-bottom: 3px solid #6366f1;
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #6366f1;
}

.article-body h4 {
    font-size: 1.2rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid #6366f1;
    padding: 20px;
    margin: 30px 0;
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

.article-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e11d48;
}

.article-body pre {
    background: #1f2937;
    color: white;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Article Tags */
.article-tags {
    padding: 30px 40px;
    border-top: 1px solid #e5e7eb;
}

.article-tags h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #6366f1;
    color: white;
}

/* Article Sharing */
.article-sharing {
    padding: 30px 40px;
    border-top: 1px solid #e5e7eb;
}

.article-sharing h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sharing-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Article Navigation */
.article-navigation {
    padding: 30px 40px;
    border-top: 1px solid #e5e7eb;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    color: #6b7280;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #6366f1;
    color: white;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Table of Contents */
.toc-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-widget li {
    margin-bottom: 8px;
}

.toc-widget a {
    color: #6b7280;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.toc-widget a:hover {
    color: #6366f1;
    border-left-color: #6366f1;
}

.toc-h3 a {
    padding-left: 20px;
    font-size: 0.9rem;
}

.toc-h4 a {
    padding-left: 30px;
    font-size: 0.85rem;
}

.no-toc {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-post h5 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post h5 a:hover {
    color: #6366f1;
}

.related-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-filters {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-body {
        padding: 25px;
    }
    
    .article-tags,
    .article-sharing,
    .article-navigation {
        padding: 20px 25px;
    }
    
    .sharing-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-btn {
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========== KOMMENTAR-STYLES ========== */

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.comments-header h3 {
    color: #374151;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-count {
    color: #6b7280;
    font-weight: 400;
}

/* Kommentar-Formular */
.comment-form-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.login-prompt {
    padding: 1.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.login-prompt a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Kommentare */
.comments-list {
    margin-top: 1.5rem;
}

.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.comment-author {
    font-weight: 600;
    color: #374151;
}

.comment-time {
    color: #6b7280;
    font-size: 0.875rem;
}

.comment-actions {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
}

.comment-actions button {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comment-actions button:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-edit-comment:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.btn-delete-comment:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.comment-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-footer {
    margin-top: 0.75rem;
}

.btn-reply {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.btn-reply:hover {
    color: #4f46e5;
}

/* Antworten */
.comment-replies {
    margin-top: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

.comment-reply {
    margin-bottom: 1rem;
}

.comment-reply .comment-avatar img {
    width: 40px;
    height: 40px;
}

/* Antwort-Formular */
.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reply-indicator {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #1e40af;
}

/* Mobile Kommentar-Styles */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .comment {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .comment-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .comment-actions {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .comment-replies {
        margin-left: 0;
        padding-left: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
} 