/*
Theme Name:   Hey Chicago
Theme URI:    https://example.com/hey-chicago-child/
Description:  A high-end, magazine-style blog child theme for GeneratePress.
Author:       Your Name
Author URI:   https://example.com
Template:     generatepress
Version:      1.0.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         generatepress, child-theme, blog, magazine, responsive
Text Domain:  hey-chicago-child
*/

/* --- 1. Design System & Variables --- */
:root {
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --color-text: #2C2C2C;
    --color-accent: #C8102E;
    --color-accent-dark: #a00d25;
    --color-light-gray: #F1F1F1;
    --color-border: #EAEAEA;
    --color-facebook: #1877F2;
    --color-x: #000000;
    --color-whatsapp: #25D366;
}

/* --- 2. Base Body & Typography Styles --- */
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

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

/* --- 3. Core Layout --- */
.grid-container {
    max-width: 1200px;
}

.single .site-main,
.page .site-main {
    max-width: 720px;
}

.no-sidebar .site-main {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

/* --- 4. Header Styling --- */
.site-header {
    background-color: #FFFFFF;
    border-bottom: none;
    transition: transform 0.3s ease-in-out;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-subscribe-btn {
    background-color: var(--color-accent);
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}
.header-subscribe-btn:hover {
    background-color: var(--color-accent-dark);
    text-decoration: none;
}

@media (max-width: 899px) {
    .menu-toggle svg {
        width: 28px;
        height: 28px;
    }
    .mobile-header-navigation .header-widget {
        display: block;
    }
}

@media (min-width: 900px) {
    .inside-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .main-navigation {
        order: 1;
        margin-right: auto;
    }
    .site-logo {
        order: 2;
        margin-left: 20px;
        margin-right: 20px;
    }
    .header-widget {
        order: 3;
        margin-left: auto;
    }
}

/* --- 5. Sub-Navigation Bar --- */
.secondary-navigation {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
}
.secondary-navigation .inside-navigation {
    justify-content: center;
}
.secondary-navigation .main-nav > ul > li > a {
    padding: 15px 20px;
    position: relative;
    color: var(--color-text);
}
.secondary-navigation .main-nav > ul > li.current-menu-item > a {
    color: var(--color-accent);
}
.secondary-navigation .main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.secondary-navigation .main-nav > ul > li.current-menu-item > a::after,
.secondary-navigation .main-nav > ul > li:hover > a::after {
    width: 100%;
}

/* --- 6. Homepage Hero --- */
.homepage-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    color: #FFFFFF;
    padding: 40px 20px;
}
.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}
.homepage-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}
.hero-category a {
    background-color: var(--color-accent);
    color: #FFFFFF !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
.hero-category a:hover {
    text-decoration: none;
    background-color: var(--color-accent-dark);
}
.hero-title {
    font-size: 2.5rem;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.2;
}
.hero-title a {
    color: #FFFFFF !important;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* --- 7. Post Grids (Archives & Homepage) --- */
.posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 600px) {
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .posts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
.posts-container article {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.post-image-container {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.posts-container article:hover .post-image-container img {
    transform: scale(1.05);
}
.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-content .entry-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.post-content .entry-title a {
    color: var(--color-text);
}
.post-content .entry-title a:hover {
    color: var(--color-accent);
}
.post-content .grid-category-tag {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}
.post-content .entry-summary {
    font-size: 16px;
    line-height: 1.6;
    margin-top: auto;
}

/* --- 8. Single Post Readability --- */
.single .entry-header {
    text-align: left;
    margin-bottom: 30px;
}
.single .entry-title {
    font-size: 2.2rem;
}
@media (min-width: 768px) {
    .single .entry-title {
        font-size: 2.8rem;
    }
}
.single .entry-meta {
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-size: 16px;
}
.single .entry-meta .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
}
.single .entry-meta .byline,
.single .entry-meta .posted-on {
    margin: 0 5px 0 0;
}

/* --- 9. Numbered List Styling --- */
.entry-content ol {
    list-style: none;
    counter-reset: ordered-list-counter;
    padding-left: 0;
}
.entry-content ol li {
    counter-increment: ordered-list-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    line-height: 1.6;
}
.entry-content ol li::before {
    content: counter(ordered-list-counter);
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: var(--color-accent);
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    margin-top: 2px;
}

/* --- 10. Forms & Buttons --- */
.footer-newsletter-section {
    background-color: var(--color-light-gray);
    padding: 60px 20px;
    text-align: center;
}
.footer-newsletter-section .newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}
.footer-newsletter-section h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.footer-newsletter-section p {
    font-size: 1rem;
    margin-bottom: 20px;
}
.footer-newsletter-section .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-newsletter-section .newsletter-form input[type="email"] {
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}
.footer-newsletter-section .newsletter-form button {
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
@media (min-width: 768px) {
    .footer-newsletter-section .newsletter-form {
        flex-direction: row;
    }
    .footer-newsletter-section .newsletter-form input[type="email"] {
        flex-grow: 1;
    }
    .footer-newsletter-section .newsletter-form button {
        min-width: 150px;
    }
}

.in-content-newsletter {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border: 1px solid var(--color-border);
    text-align: center;
}
.in-content-newsletter h3 {
    font-size: 1.5rem;
    margin-top: 0;
}
.in-content-newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.in-content-newsletter .newsletter-form input[type="email"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.in-content-newsletter .newsletter-form button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
@media (min-width: 500px) {
    .in-content-newsletter .newsletter-form {
        flex-direction: row;
    }
}

body.spotlight-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
}
body.spotlight-active .in-content-newsletter.is-visible {
    position: relative;
    z-index: 1001;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}
.social-share-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    color: #FFFFFF !important;
    font-weight: bold;
    font-size: 14px;
}
.social-share-button:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #FFFFFF !important;
}
.social-share-button.facebook { background-color: var(--color-facebook); }
.social-share-button.x { background-color: var(--color-x); }
.social-share-button.whatsapp { background-color: var(--color-whatsapp); }

/* --- 11. Single Post Full-Width Mobile Image --- */
@media (max-width: 899px) {
    .moved-featured-image-container .post-image {
        margin-bottom: 30px;
    }
    .moved-featured-image-container .post-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .single .site-main {
        margin-top: 0;
    }
}

@media (min-width: 900px) {
    .moved-featured-image-container {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
        margin-bottom: 0;
    }
    .moved-featured-image-container .post-image {
        border-radius: 8px;
        overflow: hidden;
    }
}

/* --- 14. Styled Archive Headers --- */
.archive-header {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.archive-header .page-title {
    font-size: 3rem; /* Make title larger */
    margin-bottom: 15px;
}

.archive-header .taxonomy-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555; /* Slightly lighter text color */
    max-width: 650px; /* Even narrower for the paragraph */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* The horizontal line separator */
.archive-header::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 30px auto 0;
}

@media (max-width: 768px) {
    .archive-header {
        padding: 30px 20px;
    }
    .archive-header .page-title {
        font-size: 2.5rem;
    }
}