/* Base styles */
:root {
    --primary-color: #1b1f3b;
    --secondary-color: #e91e63;
    --accent-blue: #4FC3F7;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    letter-spacing: 0.02em;
    position: relative;
    overflow-x: hidden;
}

.quantum-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

/* Header */
header {
    background: linear-gradient(to bottom, 
        #000000 0%,
        rgba(27, 31, 59, 0.95) 100%);
    color: var(--text-primary);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.logo-image {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0; /* Fine-tune vertical alignment */
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 4px; /* Adjust space between title and tagline */
}

.logo-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    line-height: 1;
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.logo-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.section {
    background: var(--surface-color);
    border-radius: 4px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-list {
    list-style: none;
}

.article-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 1.5rem;
    align-items: start;
    border: 1px solid var(--border-color);
}

.article-image-container {
    position: relative;
    width: 150px;
    flex-shrink: 0;
}

.article-image {
    width: 150px;
    height: 100px;
    border-radius: 2px;
    object-fit: cover;
}

.article-category {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-update {
    background-color: #4FC3F7;
    color: #000;
}

.category-superposition {
    background-color: #e91e63;
    color: #fff;
}

.article-content {
    flex: 1;
}

.article-item h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.article-item a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.pinned {
    border-left: 2px solid var(--secondary-color);
}

/* Border colors for categories */
.border-update {
    border-left: 2px solid #4FC3F7;
}

.border-superposition {
    border-left: 2px solid #e91e63;
}

/* Quantum decoration elements */
.quantum-orbit {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }
}