/* --- Global Styles & Variables (Black & White Theme) --- */
:root {
    --primary-color: #000000; /* Black */
    --secondary-color: #f4f4f4; /* Light Gray */
    --accent-color: #000000; /* Black */
    --text-color: #111111; /* Off-Black for text */
    --background-color: #ffffff; /* White */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

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

a:hover {
    opacity: 0.7;
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--background-color);
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a.nav-link {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a.nav-link:hover::after {
    width: 100%;
}


/* --- Hero Section --- */
.hero {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

/* --- Card Grid for Skills --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
}

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

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-color); /* Changed from accent */
}

.card p {
    margin-bottom: 20px;
    color: #555;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 4px;
    padding: 5px 12px;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Connect Section --- */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
}

.connect-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    transition: background-color 0.3s ease;
}

.connect-card:hover {
    background-color: var(--primary-color);
}

.connect-card h3, .connect-card p {
    color: var(--primary-color);
    margin: 0;
    transition: color 0.3s ease;
}

.connect-card:hover h3, .connect-card:hover p {
    color: #fff;
}

.connect-card h3 {
     font-family: var(--heading-font);
     font-size: 1.8rem;
}

/* --- Login Section --- */
.login-section {
    background: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.button.primary-button {
    padding: 15px 35px;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button.primary-button:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}


/* --- Footer --- */
.main-footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.main-footer h2 {
    color: #fff;
}

.main-footer a {
    color: #fff;
    text-decoration: underline;
}

.main-footer a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.email-link {
    font-size: 1.2rem;
    margin: 20px 0;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header .container, .main-nav {
        flex-direction: column;
        gap: 15px;
    }

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

    .connect-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Add this to assets/css/style.css --- */

/* --- Sticky Footer Layout Solution --- */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make body at least the height of the viewport */
}

main.container {
    flex-grow: 1; /* Allow the main content area to grow and push the footer down */

}

/* --- Specific Rule for the Skills Section Grid --- */
.skills-grid {
    /* This overrides the auto-fit behavior and forces 4 equal columns */
    grid-template-columns: repeat(4, 1fr);
}

/* --- Responsive adjustment for smaller screens --- */
@media (max-width: 992px) {
    .skills-grid {
        /* On medium screens, go to 2 columns */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .skills-grid {
        /* On small screens, stack them in 1 column */
        grid-template-columns: 1fr;
    }
}

/* --- NEW & IMPROVED: Article Archive Styles --- */
#articles-archive-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-year-heading {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-top: 50px;
}

.article-entry-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.article-entry-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.article-entry-card .entry-title a {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.article-entry-card .entry-meta {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.article-entry-card .entry-meta .publication {
    font-weight: 700;
}

.article-entry-card .entry-summary {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 20px;
    color: var(--text-color);
}

/* A more refined, less "loud" button style for articles */
.button-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 18px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    opacity: 1; /* Override the default link hover opacity */
}

/*
=====================================================
  BOOKS SHOWCASE STYLES (WOLFODIA THEME)
=====================================================
*/

/* --- 1. Hero Section --- */
.books-hero {
    padding: 100px 0;
    text-align: center;
    background-color: #000000;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png'); /* Subtle texture */
    color: #ffffff;
    border-bottom: 5px solid #333;
}

.books-hero h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.books-hero p {
    font-size: 1.5rem;
    color: #ccc;
    font-style: italic;
}


/* --- 2. Individual Book Showcase --- */
.book-showcase-entry {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 80px 0;
}

.book-showcase-cover {
    width: 350px;
    flex-shrink: 0;
}

.book-showcase-cover img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.book-showcase-details h2 {
    font-size: 2.8rem;
    margin-top: 0;
}

.book-showcase-tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.book-showcase-summary {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.book-entry-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
}

/* --- Special States --- */
.book-showcase-entry.is-coming-soon {
    opacity: 0.6;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .book-showcase-entry {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .books-hero h1 {
        font-size: 3rem;
    }
    .books-hero p {
        font-size: 1.2rem;
    }
    .book-showcase-details h2 {
        font-size: 2.2rem;
    }
}