/* BASE STYLES */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b6cb0;
    --accent-color: #e2e8f0;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --header-height: 70px;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Fix anchor scrolling behind fixed header */
section[id], 
div[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* HEADER & NAVIGATION */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* HERO SECTION */
.hero {
    background-color: var(--bg-light);
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* SECTIONS & CONTAINERS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-author {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-extra {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-extra p {
    margin-bottom: 0.5rem;
}

.card-extra p:last-child {
    margin-bottom: 0;
}

.card-extra strong {
    color: var(--primary-color);
}

.card-button {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.card-button:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
}

/* READING NOTES */
.reading-note {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.reading-note h2 {
    margin-bottom: 0.5rem;
}

.note-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* PAGE CONTENT */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    margin-top: 2rem;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* FOOTER */
.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, 
.cookie-settings-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover,
.cookie-settings-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: left;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media(min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-text {
    flex: 1;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-accept {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-accept:hover {
    background-color: var(--secondary-color);
}

.btn-reject {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-reject:hover {
    background-color: var(--accent-color);
}

.btn-manage {
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: underline;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        border-top: 1px solid var(--accent-color);
    }

    .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }
}