/* News Elements (moved from styles.css) */
.news-headlines {
    margin: 24px 0;
}

.news-item {
    background-color: var(--button-bg);
    border-radius: var(--button-radius);
    margin-bottom: 15px;
    padding: 9px 9px 9px 67px;
    max-width: 1200px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, opacity 0.4s ease, filter 0.4s ease;
}


.news-item:last-child {
    margin-bottom: 0;
}

.news-source {
    font-weight: 675;
    margin-right: 10px;
    font-size: 11.5pt;
}

.news-time {
    font-size: 12.5pt;
    margin-left: 5px;
    font-weight: 500;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.news-time.news-new-time {
    color: var(--tesla-blue);
    font-weight: 600;
}

/* Transition class for when an item is being marked as seen */
.news-time.news-seen-transition {
    transition: color 1.5s ease, font-weight 1.5s ease;
}

.news-item.news-read {
    opacity: 0.45;
    filter: grayscale(1);
}

.news-title {
    color: var(--button-text);
    margin-top: 0px;
    padding-bottom: 5px;
    margin-right: 55px;
    font-size: 17pt;
    font-weight: 500;
}

.news-favicon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    opacity: 0.8;
}

.share-icon {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

body.dark-mode .share-icon img {
    filter: brightness(0) invert(0.8) grayscale(1);
}

/* Mobile adjustments for news-related elements */
@media only screen and (max-width: 900px) {
    .news-headlines {
        margin: 14px 0;
    }
    
    .news-item {
        padding: 5px 5px 8px 48px;
        margin-bottom: 7px;
    }

    .news-source {
        font-size: 10pt;
    }

    .news-time {
        font-size: 10pt;
    }

    .news-favicon {
        width: 24px;
        height: 24px;
        left: 11px;
    }

    .news-title {
        font-size: 12pt;
        font-weight: 600;
        margin-right: 40px;
    }

    .share-icon {
        transform: scale(75%) translateY(-65%);
        right: 0px;
    }
}
