/* Google Discover Newsline Styles */
.discover-newsline {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #1a1a1a;
    border-right: 1px solid #333;
    z-index: 1100;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.discover-newsline.active {
    left: 0;
}

.discover-header {
    position: sticky;
    top: 0;
    background: #202124;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    z-index: 10;
}

.discover-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discover-logo i {
    color: #4285f4;
    font-size: 24px;
}

.discover-logo h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.discover-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.discover-close:hover {
    background: rgba(255,255,255,0.1);
}

.discover-content {
    padding: 15px;
}

/* News Toggle Button */
.news-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: #4285f4;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
}

.news-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.news-handle {
    position: relative;
    color: white;
    font-size: 24px;
}

.news-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ea4335;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a1a;
}

/* News Feed Styles */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    background: #333;
}

.news-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 15px;
}

.news-card-category {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 12px;
}

.news-card-source {
    color: #4285f4;
    font-weight: 500;
}

/* News Fullscreen Overlay */
.news-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-overlay.active {
    display: block;
    opacity: 1;
}

.news-detail {
    height: 100%;
    overflow-y: auto;
    background: #1a1a1a;
}

.news-detail-close {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-detail-close:hover {
    background: rgba(255,255,255,0.2);
}

.news-detail-image {
    width: 100%;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.news-detail .news-category {
    background: #4285f4;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.news-detail h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.news-detail-text {
    color: #ddd;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.news-tag {
    background: #333;
    color: #aaa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.news-tag:hover {
    background: #4285f4;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .discover-newsline {
        max-width: 100%;
    }
    
    .news-toggle {
        left: 10px;
        width: 50px;
        height: 50px;
    }
    
    .news-handle {
        font-size: 20px;
    }
    
    .news-detail-content {
        padding: 20px;
    }
    
    .news-detail h1 {
        font-size: 24px;
    }
    
    .news-detail-text {
        font-size: 15px;
    }
}

/* Animation für neue News */
@keyframes newNewsPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.news-card.new {
    animation: newNewsPulse 1s ease;
}