/*
Theme Name: Brew Cartographer
Theme URI: https://brewcartographer.com
Description: A beer exploration blog theme — dark leather and library aesthetic. Child of Twenty Twenty-Five.
Author: Brew Cartographer
Author URI: https://brewcartographer.com
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brew-cartographer
*/

/* ==========================================================================
   Global Resets
   ========================================================================== */

.wp-site-blocks *,
.wp-site-blocks *::before,
.wp-site-blocks *::after {
    border-radius: 0 !important;
}

.wp-site-blocks * {
    box-shadow: none !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
    border-bottom: 1px solid var(--wp--preset--color--accent-3);
}

.site-header .wp-block-navigation a {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--accent-2);
    text-decoration: none;
}

.site-header .wp-block-navigation a:hover {
    color: var(--wp--preset--color--accent-1);
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--wp--preset--color--accent-1);
}

.site-logo-link svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.site-logo-wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--accent-1);
    line-height: 1.2;
}

.site-logo-tagline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--wp--preset--color--accent-4);
    line-height: 1;
    margin-top: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-map-grid {
    position: relative;
    overflow: hidden;
}

.hero-map-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('./assets/images/map-grid-texture.svg');
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.hero-map-grid > * {
    position: relative;
    z-index: 2;
}

/* Hero compass column */
.hero-compass-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-compass-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0.12;
}

@media (max-width: 768px) {
    .hero-compass-col {
        display: none;
    }
}

/* Hero label with gold dash */
.hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--wp--preset--color--accent-1) !important;
    margin-bottom: 20px !important;
}

.hero-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background-color: var(--wp--preset--color--accent-1);
    flex-shrink: 0;
}

/* Gold text highlight */
.gold-text {
    color: var(--wp--preset--color--accent-1);
}

/* Hero CTA buttons */
.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-ctas .wp-block-button .wp-block-button__link {
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 24px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary .wp-block-button__link {
    background-color: var(--wp--preset--color--accent-1) !important;
    color: var(--wp--preset--color--base) !important;
    border: 1px solid var(--wp--preset--color--accent-1) !important;
}

.btn-primary .wp-block-button__link:hover {
    background-color: #d4b35a !important;
    border-color: #d4b35a !important;
}

.btn-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--wp--preset--color--accent-2) !important;
    border: 1px solid var(--wp--preset--color--accent-3) !important;
}

.btn-outline .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--accent-1) !important;
    color: var(--wp--preset--color--accent-1) !important;
}

/* ==========================================================================
   Section Labels — Gold line extending right
   ========================================================================== */

.section-label {
    display: flex !important;
    align-items: center;
    gap: 16px;
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--wp--preset--color--accent-1) !important;
    margin-bottom: 24px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--wp--preset--color--accent-1);
}

/* ==========================================================================
   Category / Region Badges (inline text style)
   ========================================================================== */

.card-badge {
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px !important;
    line-height: 1.4;
}

.card-badge-gold {
    color: var(--wp--preset--color--accent-1) !important;
}

.card-badge-green {
    color: #7CB87C !important;
}

.card-badge-tan {
    color: var(--wp--preset--color--accent-2) !important;
}

/* Dynamic badge styling for wp:post-terms */
.post-category-badge .wp-block-post-terms__link {
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--wp--preset--color--accent-1);
}

/* ==========================================================================
   Featured Posts Grid — 1 large left + 2 small right
   ========================================================================== */

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--wp--preset--color--accent-3);
    border: 1px solid var(--wp--preset--color--accent-3);
}

.featured-grid > * {
    background-color: var(--wp--preset--color--accent-5);
    padding: clamp(24px, 4vw, 40px);
}

.featured-grid > .featured-main {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.featured-grid > .featured-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Featured card images */
.featured-main .wp-block-post-featured-image {
    margin-bottom: 16px;
}

.featured-main .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid > .featured-main {
        grid-row: auto;
    }
}

/* Read the expedition link */
.read-more-link {
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto !important;
}

.read-more-link a {
    color: var(--wp--preset--color--accent-1) !important;
    text-decoration: none !important;
}

.read-more-link a:hover {
    color: var(--wp--preset--color--contrast) !important;
}

/* Card meta tags (bottom of cards) */
.card-meta-tags {
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: var(--wp--preset--color--accent-4) !important;
    margin-top: auto !important;
}

/* ==========================================================================
   Explore by Region Section
   ========================================================================== */

.region-section {
    display: flex;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
    flex-wrap: wrap;
}

.region-section-text {
    flex: 0 0 280px;
}

.region-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.region-tag {
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 20px !important;
    border: 1px solid var(--wp--preset--color--accent-3) !important;
    background: transparent !important;
    color: var(--wp--preset--color--accent-2) !important;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.region-tag:hover {
    border-color: var(--wp--preset--color--accent-1) !important;
    color: var(--wp--preset--color--accent-1) !important;
}

/* ==========================================================================
   Notes Cards (3-column with separator)
   ========================================================================== */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--wp--preset--color--accent-3);
    border: 1px solid var(--wp--preset--color--accent-3);
}

.notes-grid > * {
    background-color: var(--wp--preset--color--accent-5);
}

.notes-card {
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
}

.notes-card-divider {
    width: 32px;
    height: 1px;
    background-color: var(--wp--preset--color--accent-3);
    margin: 16px 0;
}

@media (max-width: 900px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Post Cards (for archive/index)
   ========================================================================== */

.post-card {
    border: 1px solid var(--wp--preset--color--accent-3);
    padding: var(--wp--preset--spacing--40);
    background-color: var(--wp--preset--color--accent-5);
}

.post-card .wp-block-post-featured-image {
    margin-bottom: 12px;
}

.post-card .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card .wp-block-post-title {
    font-size: 15px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.4;
}

.post-card .wp-block-post-title a {
    text-decoration: none;
    color: var(--wp--preset--color--contrast);
}

.post-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--accent-1);
}

.post-card .wp-block-post-excerpt {
    font-size: 13px;
    color: var(--wp--preset--color--accent-2);
    line-height: 1.6;
}

.post-card .wp-block-post-date {
    font-size: 11px;
    color: var(--wp--preset--color--accent-4);
}

/* Post card grid for archives */
.post-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--wp--preset--color--accent-3);
}

.post-card-grid > * {
    background-color: var(--wp--preset--color--accent-5);
}

@media (max-width: 900px) {
    .post-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .post-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

.single-post-meta {
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--wp--preset--color--accent-4);
}

.single-post-meta a {
    color: var(--wp--preset--color--accent-2);
    text-decoration: none;
}

.single-post-meta a:hover {
    color: var(--wp--preset--color--accent-1);
}

.single-post-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--wp--preset--color--contrast);
}

.single-post-content h2 {
    font-size: 22px;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.single-post-content h3 {
    font-size: 18px;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.single-post-content blockquote {
    border-left: 2px solid var(--wp--preset--color--accent-1);
    padding-left: 20px;
    color: var(--wp--preset--color--accent-2);
    font-style: italic;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
}

.related-posts-section {
    border-top: 1px solid var(--wp--preset--color--accent-3);
    margin-top: var(--wp--preset--spacing--60);
    padding-top: var(--wp--preset--spacing--50);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--wp--preset--color--accent-3);
}

.site-footer a {
    color: var(--wp--preset--color--accent-4);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--wp--preset--color--accent-1);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.wp-block-query-pagination {
    margin-top: var(--wp--preset--spacing--50);
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   Tag Cloud Override
   ========================================================================== */

.wp-block-tag-cloud a {
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--accent-4);
    text-decoration: none;
}

.wp-block-tag-cloud a:hover {
    color: var(--wp--preset--color--accent-1);
}
