@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --nrd-red: #e10600;
    --nrd-black: #0c0c0e;
    --nrd-dark: #1a1a1e;
    --nrd-carbon: #121214;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Hide browser scrollbars */
    background: transparent;
}

/* Hide scrollbars globally but keep functionality in containers */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.nrd-social-widget {
    width: 220px;
    /* New requested width */
    height: 700px;
    background: var(--nrd-black);
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.5) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.5) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.5) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.5) 75%);
    background-size: 4px 4px;
    /* Carbon fiber subtle pattern */
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    user-select: none;
}

.nrd-social-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--nrd-red), transparent);
    z-index: 10;
}

.widget-header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.widget-header h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--nrd-red);
    font-weight: 900;
}

.widget-header h3 {
    margin: 5px 0 0 0;
    font-size: 18px;
    /* Slightly smaller for narrower view */
    font-weight: 900;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.driver-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.driver-tab {
    background: var(--nrd-dark);
    padding: 10px 2px;
    /* Reduced padding */
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.driver-tab:hover {
    background: var(--nrd-carbon);
}

.driver-tab.active {
    background: var(--nrd-carbon);
    color: var(--nrd-red);
}

.driver-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--nrd-red);
    box-shadow: 0 0 10px var(--nrd-red);
}

.driver-tab .tag {
    font-size: 11px;
    /* Smaller font */
    font-weight: 900;
}

.driver-tab .number {
    font-size: 8px;
    /* Smaller font */
    opacity: 0.5;
    display: block;
    margin-top: 1px;
}

.feed-container {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--nrd-red) transparent;
}

.feed-container::-webkit-scrollbar {
    width: 4px !important;
    display: block !important;
}

.feed-container::-webkit-scrollbar-thumb {
    background: var(--nrd-red) !important;
    border-radius: 10px;
}

.driver-feed {
    display: none;
    padding: 10px;
    animation: slideIn 0.5s ease;
}

.driver-feed.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Cards Styles - Vertical Layout (220px Width) */
.news-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden !important;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
    display: flex !important;
    flex-direction: column !important;
    /* Stack vertical */
    width: 100% !important;
    height: auto !important;
    /* Auto height for vertical model */
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--nrd-red);
}

.news-img {
    width: 100% !important;
    height: 120px !important;
    /* Larger relative to width */
    object-fit: cover !important;
    border-right: none !important;
    border-bottom: 2px solid var(--nrd-red) !important;
    flex-shrink: 0 !important;
}

.news-content {
    padding: 10px !important;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 8px;
    text-transform: uppercase;
    color: var(--nrd-red);
    font-weight: 700;
    margin-bottom: 4px;
}

.news-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
    overflow: hidden;
}

.news-desc {
    display: none;
}

.footer {
    padding: 10px;
    font-size: 10px;
    text-align: center;
    opacity: 0.3;
    letter-spacing: 2px;
}