/* Ontario Exploration - Custom Overrides */
/* Dark/moody editorial theme for abandoned exploration content */

:root {
    --oe-dark: #1a1a1a;
    --oe-slate: #2c3e50;
    --oe-green: #2d5016;
    --oe-green-light: #3a6b1e;
    --oe-rust: #8b4513;
    --oe-rust-light: #a0522d;
    --oe-cream: #f4f1eb;
    --oe-warm-gray: #e8e4dc;
    --oe-text: #3d3d3d;
    --oe-text-light: #6b6b6b;
    --bs-primary: #2d5016;
    --bs-link-color: #2d5016;
    --bs-link-hover-color: #3a6b1e;
}

body {
    background-color: var(--oe-cream);
    color: var(--oe-text);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--oe-slate);
}

a {
    color: var(--oe-green);
    transition: color 0.2s ease;
}
a:hover, a:focus {
    color: var(--oe-green-light);
}

/* Navigation - dark bar */
#mainNav {
    background-color: var(--oe-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#mainNav .navbar-brand {
    color: #fff !important;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
#mainNav .navbar-brand:hover {
    color: rgba(255,255,255,0.8) !important;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link {
    color: rgba(255,255,255,0.85) !important;
}
#mainNav .navbar-nav > li.nav-item > a.nav-link:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link:focus {
    color: #fff !important;
}
#mainNav .navbar-toggler {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}
@media (min-width: 992px) {
    #mainNav {
        background-color: var(--oe-dark) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    #mainNav.is-fixed {
        background-color: rgba(26, 26, 26, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    #mainNav.is-fixed .navbar-brand {
        color: #fff !important;
    }
    #mainNav.is-fixed .navbar-brand:hover {
        color: rgba(255,255,255,0.8) !important;
    }
    #mainNav.is-fixed .navbar-nav > li.nav-item > a {
        color: rgba(255,255,255,0.85) !important;
    }
    #mainNav.is-fixed .navbar-nav > li.nav-item > a:hover {
        color: #fff !important;
    }
}

/* Dropdown menus */
.dropdown-menu {
    background-color: var(--oe-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    padding: 0.5rem 0;
    min-width: 14rem;
}
.dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.5rem 1.25rem;
    text-transform: uppercase;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Masthead - darker overlay */
header.masthead:before {
    background-color: #0a0a0a;
    opacity: 0.6;
}
header.masthead .site-heading h1,
header.masthead .page-heading h1,
header.masthead .post-heading h1 {
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
header.masthead .subheading {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Post previews */
.post-preview > a {
    color: var(--oe-slate);
}
.post-preview > a:hover,
.post-preview > a:focus {
    color: var(--oe-green);
}

/* Article content */
article p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
article .section-heading {
    color: var(--oe-slate);
    border-bottom: 2px solid var(--oe-rust);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Blockquotes */
.blockquote {
    border-left: 4px solid var(--oe-rust);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(139, 69, 19, 0.05);
    font-style: italic;
    color: var(--oe-text-light);
}

/* Cards for featured content */
.card {
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.card-title {
    color: var(--oe-slate);
    font-size: 1.1rem;
}
.card-title a {
    color: var(--oe-slate);
    text-decoration: none;
}
.card-title a:hover {
    color: var(--oe-green);
}
.card-text {
    color: var(--oe-text-light);
    font-size: 0.9rem;
}

/* Region tag badges */
.badge-region {
    background-color: var(--oe-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 2px;
}
.badge-category {
    background-color: var(--oe-rust);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 2px;
}

/* Section headers on homepage */
.section-title {
    font-size: 1.8rem;
    color: var(--oe-slate);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--oe-text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--oe-rust);
    margin: 0 auto 2rem;
}

/* Ethics callout block */
.callout-ethics {
    background: linear-gradient(135deg, var(--oe-slate), #1a2a3a);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 4px;
    margin: 3rem 0;
}
.callout-ethics h3 {
    color: #fff;
    margin-bottom: 1rem;
}
.callout-ethics a {
    color: #c9d4a9;
}
.callout-ethics a:hover {
    color: #fff;
}

/* Related articles section */
.related-articles {
    background: var(--oe-warm-gray);
    padding: 2.5rem;
    border-radius: 4px;
    margin-top: 3rem;
}
.related-articles h3 {
    font-size: 1.3rem;
    color: var(--oe-slate);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.related-articles .related-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.related-articles .related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.related-articles .related-item a {
    font-weight: 600;
    color: var(--oe-slate);
    text-decoration: none;
}
.related-articles .related-item a:hover {
    color: var(--oe-green);
}
.related-articles .related-item p {
    font-size: 0.85rem;
    color: var(--oe-text-light);
    margin: 0.25rem 0 0;
}

/* Footer */
footer {
    background-color: var(--oe-dark);
    color: rgba(255,255,255,0.6);
    padding: 2.5rem 0;
}
footer .small {
    color: rgba(255,255,255,0.4);
}
footer a {
    color: rgba(255,255,255,0.7);
}
footer a:hover {
    color: #fff;
}

/* Image captions */
.caption {
    color: var(--oe-text-light);
    font-family: 'Open Sans', sans-serif;
}

/* Inline article images */
.article-image {
    margin: 2rem 0;
    border-radius: 4px;
    overflow: hidden;
}
.article-image img {
    width: 100%;
    height: auto;
    display: block;
}
.article-image .caption {
    background: var(--oe-warm-gray);
    padding: 0.75rem;
}

/* Breadcrumb-style region tags in articles */
.article-meta {
    font-size: 0.85rem;
    color: var(--oe-text-light);
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
}
.article-meta a {
    color: var(--oe-green);
}

/* Hub page card grids */
.hub-grid .card {
    margin-bottom: 1.5rem;
}

/* Button overrides */
.btn-primary {
    background-color: var(--oe-green);
    border-color: var(--oe-green);
}
.btn-primary:hover {
    background-color: var(--oe-green-light);
    border-color: var(--oe-green-light);
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Exploration notice */
.exploration-notice {
    background: rgba(139, 69, 19, 0.08);
    border-left: 3px solid var(--oe-rust);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--oe-text-light);
    font-style: italic;
}

/* Print styles */
@media print {
    header.masthead { padding: 2rem 0; }
    .related-articles { display: none; }
    footer { display: none; }
}
