/* 
 * PokeSci Neo-Brutalist Styles
 * 
 * DESIGN PRINCIPLES:
 * - Stark contrast (Black/White/Electric Red)
 * - Hard borders (2px solid black)
 * - Sharp corners (0px border-radius)
 * - Typography-driven hierarchy
 */

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #ff0000; /* Electric Red */
    --border-color: #000000;
    --border-width: 2px;
    
    /* Typography */
    --font-heading: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Georgia', serif; /* For that academic journal feel */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-weight: 900;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header - Brutalist style */
header {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

header .container {
    border-bottom: var(--border-width) solid var(--border-color);
}

header h1 {
    font-size: clamp(4rem, 15vw, 10rem);
    line-height: 0.8;
    text-align: left;
}

header p {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* The Grid - Neo-Brutalism */
.bubble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    border: var(--border-width) solid var(--border-color);
    gap: var(--border-width);
    background: var(--border-color);
    margin-bottom: 2rem;
}

.bubble-card {
    background: var(--bg-color);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s ease;
    display: flex;
    flex-direction: column;
}

.bubble-card:hover {
    background-color: var(--accent-color);
    color: white;
}

.bubble-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(100%);
    margin-bottom: 1.5rem;
    border: var(--border-width) solid var(--border-color);
    transition: filter 0.3s ease;
}

.bubble-card:hover img {
    filter: grayscale(0%);
}

.bubble-card h3 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.bubble-card .date {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Article Page */
.article-content {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: var(--border-width) solid var(--border-color);
    display: inline-block;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.article-content p, .article-content li {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.full-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.full-content img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
}


.back-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    border: var(--border-width) solid var(--border-color);
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Footer */
footer {
    padding: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

footer .container {
    border-top: var(--border-width) solid var(--border-color);
}

/* Info Modal - Brutalist */
.info-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: white;
    border: var(--border-width) solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal {
    background: white;
    border: var(--border-width) solid var(--border-color);
    padding: 3rem;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 { font-size: 4rem; }
    .bubble-grid { grid-template-columns: 1fr; }
    .article-content h1 { font-size: 2.5rem; }
}
