/*
Theme Name: ShovelBums
Theme URI: https://shovelbums.org
Description: Custom child theme for ShovelBums.org - archaeology job board, field school directory, and historical archive. Built on GeneratePress.
Author: R. Joe
Author URI: https://shovelbums.org
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shovelbums
*/

/* ==============================================
   ShovelBums — Master Stylesheet
   Brand Blue:  #2471a3
   Dark Blue:   #1a5276
   Light Blue:  #eaf2f8
   White:       #ffffff
   Text:        #333333
   Light Gray:  #f8f9fa
   Border:      #dee2e6
   ============================================== */

/* --- Reset & Base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    background: #ffffff;
}

a {
    color: #2471a3;
    text-decoration: none;
}

a:hover {
    color: #1a5276;
    text-decoration: underline;
}

/* --- Site Header --- */
.sb-header {
    background: #2471a3;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sb-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    min-height: 56px;
}

.sb-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sb-logo a {
    color: #ffffff;
    text-decoration: none;
}

.sb-logo a:hover {
    color: #eaf2f8;
    text-decoration: none;
}

/* --- Primary Navigation --- */
.sb-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.sb-nav a {
    color: #ffffff;
    padding: 16px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.sb-nav a:hover,
.sb-nav a.current {
    background: #1a5276;
    text-decoration: none;
    color: #ffffff;
}

/* Mobile hamburger */
.sb-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* --- Page Layout --- */
.sb-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* No sidebar -- full width content */
.sb-content-area.narrow {
    max-width: 800px;
}

/* --- Homepage Hero --- */
.sb-hero {
    background: #eaf2f8;
    border-bottom: 3px solid #2471a3;
    padding: 40px 20px;
    text-align: center;
}

.sb-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a5276;
    margin: 0 0 10px;
}

.sb-hero p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sb-hero-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.sb-hero-search input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #2471a3;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.sb-hero-search input[type="text"]:focus {
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(36, 113, 163, 0.2);
}

.sb-hero-search button {
    background: #2471a3;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sb-hero-search button:hover {
    background: #1a5276;
}

/* --- Section Headers --- */
.sb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #2471a3;
    padding-bottom: 8px;
    margin: 40px 0 20px;
}

.sb-section-header:first-child {
    margin-top: 0;
}

.sb-section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a5276;
    margin: 0;
}

.sb-section-header a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2471a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Job Cards --- */
.sb-job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-job-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.sb-job-card:hover {
    border-color: #2471a3;
    box-shadow: 0 2px 8px rgba(36, 113, 163, 0.1);
}

.sb-job-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.sb-job-card h3 a {
    color: #1a5276;
}

.sb-job-card h3 a:hover {
    color: #2471a3;
    text-decoration: none;
}

.sb-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.sb-job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sb-job-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* --- Field School Cards --- */
.sb-fs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-fs-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sb-fs-card:hover {
    border-color: #2471a3;
    box-shadow: 0 2px 8px rgba(36, 113, 163, 0.1);
}

.sb-fs-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.sb-fs-card h3 a {
    color: #1a5276;
}

.sb-fs-meta {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
}

.sb-fs-meta strong {
    color: #333;
}

/* --- Archive Browser --- */
.sb-archive-filters {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.sb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-filter-group select,
.sb-filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 160px;
}

.sb-filter-group select:focus,
.sb-filter-group input[type="text"]:focus {
    border-color: #2471a3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 113, 163, 0.15);
}

.sb-filter-btn {
    background: #2471a3;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.sb-filter-btn:hover {
    background: #1a5276;
}

/* --- Pagination --- */
.sb-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.sb-pagination a,
.sb-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2471a3;
    text-decoration: none;
    transition: all 0.2s;
}

.sb-pagination a:hover {
    background: #eaf2f8;
    border-color: #2471a3;
    text-decoration: none;
}

.sb-pagination .current {
    background: #2471a3;
    color: #ffffff;
    border-color: #2471a3;
}

/* --- Footer --- */
.sb-footer {
    background: #1a5276;
    color: #eaf2f8;
    padding: 30px 20px;
    margin-top: 40px;
}

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

.sb-footer h4 {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.sb-footer a {
    color: #b3d4e8;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    padding: 3px 0;
}

.sb-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.sb-footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #8db4cc;
    text-align: center;
}

/* --- Single Post --- */
.sb-single-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}

.sb-single-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a5276;
    margin: 0 0 10px;
    line-height: 1.2;
}

.sb-single-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sb-single-content {
    line-height: 1.7;
    font-size: 1rem;
}

.sb-single-content h2 {
    font-size: 1.3rem;
    color: #1a5276;
    margin: 30px 0 12px;
}

.sb-single-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 24px 0 10px;
}

.sb-single-content p {
    margin: 0 0 16px;
}

/* --- Job Detail Fields --- */
.sb-job-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.sb-job-detail-item {
    display: flex;
    flex-direction: column;
}

.sb-job-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 2px;
}

.sb-job-detail-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* --- Stat Counters (homepage) --- */
.sb-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sb-stat {
    text-align: center;
}

.sb-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2471a3;
    display: block;
}

.sb-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

/* --- Breadcrumbs --- */
.sb-breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.sb-breadcrumbs a {
    color: #2471a3;
}

.sb-breadcrumbs span.separator {
    margin: 0 6px;
    color: #ccc;
}

/* --- Utility --- */
.sb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sb-badge-new {
    background: #2471a3;
    color: #ffffff;
}

.sb-badge-closing {
    background: #e74c3c;
    color: #ffffff;
}

.sb-badge-fieldschool {
    background: #27ae60;
    color: #ffffff;
}

.sb-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sb-header-inner {
        flex-wrap: wrap;
    }

    .sb-menu-toggle {
        display: block;
    }

    .sb-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }

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

    .sb-nav a {
        padding: 12px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sb-hero h1 {
        font-size: 1.5rem;
    }

    .sb-hero-search {
        flex-direction: column;
    }

    .sb-archive-filters {
        flex-direction: column;
    }

    .sb-filter-group select,
    .sb-filter-group input[type="text"] {
        min-width: 100%;
    }

    .sb-job-meta {
        flex-direction: column;
        gap: 4px;
    }

    .sb-stats {
        gap: 20px;
    }

    .sb-footer-inner {
        grid-template-columns: 1fr;
    }

    .sb-single-header h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .sb-content-area {
        padding: 20px 12px;
    }

    .sb-fs-grid {
        grid-template-columns: 1fr;
    }

    .sb-job-details {
        grid-template-columns: 1fr;
    }
}

/* --- Hide GeneratePress default header (we use our own) --- */
.site-header {
    display: none !important;
}

/* --- Hide Pagelayer admin icon --- */
.pg-show-widget-btn {
    display: none !important;
}
