/**
 * News and Trends System CSS - Portal Big Data
 * Matrix theme compatible styles for news feed and trending technologies
 */

/* Hero Section Stats */
.hero-stats .stat-card {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stats .stat-card:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.hero-stats .stat-card h3 {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-card p {
    color: #ffffff;
    margin: 0;
    font-size: 0.9rem;
}

/* News Feed Styles */
.news-feed {
    max-height: 600px;
    overflow-y: auto;
}

.news-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.news-item.breaking {
    border-left: 4px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.news-item.trending {
    border-left: 4px solid #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.news-item-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.news-item-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.news-item-title {
    color: #00ff00;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-item-title a {
    color: inherit;
    text-decoration: none;
}

.news-item-title a:hover {
    text-decoration: underline;
}

.news-item-excerpt {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-source img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Trending Technologies Grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.trending-tech-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trending-tech-card:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
    transform: translateY(-2px);
}

.trending-tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500, #00ff00);
}

.trending-tech-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trending-tech-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.trending-tech-name {
    color: #00ff00;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.trending-score {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.trending-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.trending-metric {
    text-align: center;
}

.trending-metric-value {
    color: #00ff00;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.trending-metric-label {
    color: #888;
    font-size: 0.8rem;
}

.trending-tech-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.trending-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trending-tag {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Events Container */
.events-container {
    max-height: 600px;
    overflow-y: auto;
}

.event-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.event-card.upcoming {
    border-left: 4px solid #4dabf7;
}

.event-card.live {
    border-left: 4px solid #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-title {
    color: #00ff00;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-type {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.event-detail i {
    color: #00ff00;
    width: 16px;
}

.event-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

/* Technology Releases */
.releases-container {
    max-height: 600px;
    overflow-y: auto;
}

.release-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.release-card:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.release-card.major {
    border-left: 4px solid #ff6b6b;
}

.release-card.minor {
    border-left: 4px solid #ffa500;
}

.release-card.patch {
    border-left: 4px solid #4dabf7;
}

.release-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.release-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
}

.release-title {
    color: #00ff00;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.release-version {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.release-highlights {
    margin-bottom: 1rem;
}

.release-highlights h6 {
    color: #00ff00;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.release-highlights ul {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
    padding-left: 1.5rem;
}

.release-highlights li {
    margin-bottom: 0.25rem;
}

.release-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

/* Newsletter Card */
.newsletter-card {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.newsletter-card .card-header {
    background: rgba(0, 255, 0, 0.2) !important;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

/* Trending Topics */
.trending-topic {
    display: inline-block;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.trending-topic:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    transform: translateY(-1px);
}

.trending-topic .topic-count {
    background: rgba(0, 255, 0, 0.3);
    color: #ffffff;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* Quick Stats */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.stat-value {
    color: #00ff00;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.stat-change {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.stat-change.positive {
    color: #51cf66;
}

.stat-change.negative {
    color: #ff6b6b;
}

/* Recent Activity */
.activity-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #888;
    font-size: 0.8rem;
    float: right;
}

.activity-text {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.activity-text .activity-highlight {
    color: #00ff00;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .stat-card {
        margin-bottom: 1rem;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .news-item-header,
    .event-header,
    .release-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-item-footer,
    .release-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-image {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}