/**
 * Top Views Block Styles
 */

.crypto-news-top-views-block {
    margin: var(--space-xl) 0;
}

.crypto-news-top-views-block.alignwide {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.crypto-news-top-views-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.crypto-news-top-views-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    background: var(--color-surface);
    position: relative;
}

.crypto-news-top-views-item.has-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: var(--space-md);
    bottom: var(--space-md);
    width: 1px;
    background: var(--color-border);
}

.crypto-news-top-views-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    text-decoration: none;
    height: 100%;
}

.crypto-news-top-views-link:hover .crypto-news-top-views-headline,
.crypto-news-top-views-link:focus-visible .crypto-news-top-views-headline {
    color: var(--color-accent);
}

.crypto-news-top-views-subheading {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 400;
    line-height: 1.4;
}

.crypto-news-top-views-headline {
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile: Stack articles vertically */
@media (max-width: 768px) {
    .crypto-news-top-views-grid {
        grid-template-columns: 1fr;
    }
    
    .crypto-news-top-views-item.has-divider::after {
        display: none;
    }
    
    .crypto-news-top-views-item.has-divider {
        border-bottom: 1px solid var(--color-border);
    }
    
    .crypto-news-top-views-item:last-child {
        border-bottom: none;
    }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .crypto-news-top-views-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crypto-news-top-views-item:nth-child(2)::after {
        display: none;
    }
    
    .crypto-news-top-views-item:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }
    
    .crypto-news-top-views-item:last-child::after {
        display: none;
    }
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) .crypto-news-top-views-grid {
        background: var(--color-surface, #111827);
        border-color: var(--color-border, #1f2937);
    }

    :root:not(.light-mode) .crypto-news-top-views-item {
        background: var(--color-surface, #111827);
    }

    :root:not(.light-mode) .crypto-news-top-views-subheading {
        color: var(--color-muted, #9ca3af);
    }

    :root:not(.light-mode) .crypto-news-top-views-headline {
        color: var(--color-text, #f8fafc);
    }
}

body.is-dark .crypto-news-top-views-grid {
    background: var(--color-surface, #111827);
    border-color: var(--color-border, #1f2937);
}

body.is-dark .crypto-news-top-views-item {
    background: var(--color-surface, #111827);
}

body.is-dark .crypto-news-top-views-subheading {
    color: var(--color-muted, #9ca3af);
}

body.is-dark .crypto-news-top-views-headline {
    color: var(--color-text, #f8fafc);
}

