/* Inherit variables from main style, but override for this page's specific look */
:root {
    --page-bg: #0d1117; /* Very dark blue/black background */
    --card-surface: #161b22; /* Slightly lighter for cards */
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-blue: #3b82f6; 
    --border-color: #30363d;
}

body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Reusing Header Styles Fixes for Relative Paths handled in HTML, 
   but we need to make sure the header looks good on this dark bg */
.header {
    background-color: #0d1117;
    border-bottom: 1px solid var(--border-color);
}
.header .logo-text, .nav-item > a {
    color: #ffffff;
}

/* Hero Section */
.activity-hero {
    background: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.9)), url('../../assets/hero_bg.png'); /* Assuming asset exists, fallback to color */
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.activity-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.activity-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
}

/* Main Layout */
.activity-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px; /* Main content + Sidebar */
    gap: 30px;
}

/* Left Column: Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-card {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.activity-thumbnail {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.activity-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.activity-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-left: 10px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--accent-blue);
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: var(--accent-blue);
}

.sidebar-list a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .activity-container {
        grid-template-columns: 1fr; /* Stack sidebar below */
    }
    
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .activity-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .activity-thumbnail {
        width: 100%;
        height: 180px;
        margin-bottom: 10px;
    }
    
    .activity-arrow {
        display: none;
    }
}
