/* ================================
   NEWS FEED SYSTEM - Medieval Modern
   Für unbegrenzte Einträge optimiert
   ================================ */

.news-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0f0e0d 0%, #1a1814 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #f4ead5;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.header-stats {
    color: #c9a66b;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.header-stats i {
    margin-right: 0.5rem;
}

.subtitle {
    color: #c9c4b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Filter & Search Bar */
.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(18, 17, 15, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.15);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(26, 20, 16, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #e8e3d9;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #f4d03f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(26, 20, 16, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    color: #f4ead5;
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* NEWS GRID - Für unbegrenzte Einträge optimiert */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

/* News Card */
.news-card {
    background: rgba(18, 17, 15, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: fit-content;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Type Badge (für News/DevLog/Changelog) */
.news-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-type-badge.news {
    background: #2c5282;
    color: #e8f0fe;
}

.news-type-badge.devlog {
    background: #6b46c1;
    color: #f0eaff;
}

.news-type-badge.changelog {
    background: #b8860b;
    color: #fff3d6;
}

.news-type-badge.update {
    background: #2f855a;
    color: #f0fff4;
}

.news-type-badge.announcement {
    background: #c53030;
    color: #fff5f5;
}

/* News Image */
.news-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    height: 50%;
}

/* News Content (Vorschau) */
.news-content {
    padding: 1.2rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    color: #c9a66b;
    font-size: 0.8rem;
}

.news-meta time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta time i {
    font-size: 0.75rem;
}

.news-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.mini-tag {
    background: rgba(201, 166, 107, 0.15);
    color: #c9a66b;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
}

/* News Title */
.news-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #f4ead5;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* News Preview Text */
.news-preview {
    color: rgba(232, 227, 217, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer mit Likes/Comments */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: rgba(232, 227, 217, 0.5);
    font-size: 0.8rem;
}

.news-stats {
    display: flex;
    gap: 1rem;
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-indicator {
    color: #d4af37;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   DETAIL ANSICHT (MODAL/SEITE)
   ================================ */

.news-detail-page {
    padding: 2rem 0;
}

/* Breadcrumb */
.news-breadcrumb {
    margin-bottom: 2rem;
    color: #c9c4b8;
}

.news-breadcrumb a {
    color: #d4af37;
    text-decoration: none;
}

.news-breadcrumb a:hover {
    text-decoration: underline;
}

/* Detail Header */
.news-detail-header {
    background: rgba(18, 17, 15, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.detail-type {
    margin-bottom: 1.5rem;
}

.detail-type-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.detail-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #f4ead5;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    color: #c9a66b;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.detail-meta i {
    margin-right: 0.5rem;
}

/* Detail Content */
.news-detail-content {
    background: rgba(18, 17, 15, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    color: rgba(232, 227, 217, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Spezielles Changelog-Format */
.changelog-entry {
    border-left: 4px solid #d4af37;
    background: rgba(26, 20, 16, 0.4);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.changelog-version {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
}

.changelog-list li {
    padding: 0.5rem 0;
    padding-left: 1.8rem;
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.changelog-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #d4af37;
}

.changelog-list li.added::before {
    content: '+';
    color: #48bb78;
}

.changelog-list li.fixed::before {
    content: '✓';
    color: #4299e1;
}

.changelog-list li.removed::before {
    content: '×';
    color: #f56565;
}

/* DevLog speziell */
.devlog-progress {
    background: rgba(26, 20, 16, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.progress-bar {
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 10px;
    width: 0%;
}

/* Interaktionsbereich */
.news-interactions {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.interaction-btn {
    background: none;
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interaction-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* Navigation */
.news-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
}

.nav-prev,
.nav-next,
.back-to-feed {
    color: #d4af37;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-prev:hover,
.nav-next:hover,
.back-to-feed:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* Kommentarbereich */
.comments-section {
    background: rgba(18, 17, 15, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1410;
    font-weight: bold;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: #c9a66b;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 1rem 3rem;
    border-radius: 40px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* Empty State */
.empty-feed {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #c9c4b8;
}

.empty-feed i {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .news-header h1 {
        font-size: 2.2rem;
    }
    
    .detail-title {
        font-size: 1.6rem;
    }
    
    .news-detail-header,
    .news-detail-content {
        padding: 1.5rem;
    }
}