/* ============================================================
   Boulder Gear Lab - Custom CSS
   Design refinements for improved aesthetics, typography, and layout
   ============================================================ */

/* ============================================================
   Google Fonts Import
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* ============================================================
   TOP RIBBON
   ============================================================ */

#top {
    padding: 3px 0 !important;
}

#top p {
    margin: 0;
    font-size: 13px;
}

/* ============================================================
   ROOT & GENERAL TYPOGRAPHY
   ============================================================ */

:root {
    --bgl-primary: #1a1a1a;
    --bgl-accent: #1a1a1a;
    --bgl-light: #f5f5f5;
    --bgl-text: #333333;
    --bgl-border: #e0e0e0;
    --bgl-spacing-unit: 1.5rem;
}

body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--bgl-text);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

/* Improve heading hierarchy and sizes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--bgl-primary);
    letter-spacing: -0.015em;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.4rem;
    font-weight: 700;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.25rem;
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }
}

/* Improve link styling */
a {
    color: var(--bgl-accent);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--bgl-primary);
    text-decoration: underline;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.bgl-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
}

.bgl-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bgl-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bgl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.bgl-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 2rem;
}

.bgl-hero-text h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bgl-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.bgl-hero-cta {
    display: inline-block;
    padding: 24px 64px;
    background-color: white;
    color: #1a1a1a;
    border-radius: 2px;
    font-weight: 600;
    font-size: 1.8rem !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid white;
}

.bgl-hero-cta:hover {
    background-color: transparent;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive hero and buttons */
@media (max-width: 768px) {
    .bgl-hero {
        height: 350px;
        margin-bottom: 3rem;
    }

    .bgl-hero-cta {
        padding: 16px 40px;
        font-size: 1.2rem !important;
    }

    .bgl-hero-text h1 {
        font-size: 2.25rem;
    }

    .bgl-hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================================
   INTRO SECTION
   ============================================================ */

.bgl-intro-section {
    padding: 5rem 0;
    margin-bottom: 0;
}

.bgl-intro-section h2 {
    margin-bottom: 2rem;
    font-size: 2.8rem;
}

.bgl-intro-text {
    font-size: 1.3rem;
    line-height: 2;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Responsive intro section */
@media (max-width: 768px) {
    .bgl-intro-section {
        padding: 3rem 0;
    }
    
    .bgl-intro-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .bgl-intro-text {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1.5rem;
    }
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.bgl-stats-section {
    padding: 5rem 0;
    background-color: #fafafa;
    margin-bottom: 4rem;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.bgl-stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.bgl-stat-label {
    color: #999;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* Responsive stats section */
@media (max-width: 768px) {
    .bgl-stat-number {
        font-size: 2.5rem;
        margin-bottom: 0.4rem;
    }
    
    .bgl-stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .bgl-stats-section {
        padding: 3rem 0;
    }
}

/* ============================================================
   CONTAINER & SPACING
   ============================================================ */

.container {
    max-width: 1000px;
}

/* Add generous whitespace to main content */
.content {
    padding: 3rem 0;
}

/* Improve spacing around sections */
section {
    margin-bottom: 4rem;
}

section + section {
    border-top: none;
    padding-top: 4rem;
}

/* Better spacing in main content area */
.row {
    margin-bottom: 2.5rem;
}

/* Mobile row fixes */
@media (max-width: 768px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================================
   POST/ARTICLE STYLING
   ============================================================ */

.box.post {
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: none;
    border-radius: 2px;
    background-color: white;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.box.post:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.post-meta {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.4rem;
}

.post-title a {
    color: var(--bgl-primary);
}

.post-title a:hover {
    color: var(--bgl-accent);
}

.post-summary {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--bgl-text);
}

/* ============================================================
   MAIN CONTENT AREA WIDTH
   ============================================================ */

/* Narrow the main content column for better readability */
.col-md-8 {
    max-width: 750px;
}

/* Add padding between content and sidebar */
.col-md-4 {
    padding-left: 2rem;
}

/* ============================================================
   SIDEBAR IMPROVEMENTS
   ============================================================ */

.sidebar {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 3rem;
    padding-bottom: 0;
    border-bottom: none;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 1.25rem;
    color: var(--bgl-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    padding: 12px 28px;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-default {
    background-color: white;
    color: var(--bgl-primary);
    border: 2px solid var(--bgl-primary);
}

.btn-default:hover {
    background-color: var(--bgl-primary);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--bgl-primary);
    color: white;
    border: 2px solid var(--bgl-primary);
}

.btn-primary:hover {
    background-color: white;
    color: var(--bgl-primary);
}

/* ============================================================
   NAVIGATION IMPROVEMENTS
   ============================================================ */

.navbar {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
}

.navbar-affixed-top {
    margin-bottom: 2rem;
}

.navbar-brand {
    display: none !important;
}

.navbar-brand home {
    color: var(--bgl-primary) !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav > li > a {
    padding: 15px 18px !important;
    font-weight: 600;
    color: var(--bgl-primary) !important;
    font-size: 1.35rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    letter-spacing: 0.3px;
}

.navbar-nav > li > a:hover {
    color: #1a1a1a !important;
    background-color: transparent !important;
    border-bottom: 3px solid var(--bgl-primary);
}

.navbar-nav > li.active > a {
    background-color: transparent !important;
    color: var(--bgl-primary) !important;
    border-bottom: 3px solid var(--bgl-primary);
}

/* ============================================================
   IMAGES & MEDIA
   ============================================================ */

img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* Add breathing room around images */
p > img,
.content img {
    margin: 2.5rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */

code {
    background-color: #fafafa;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--bgl-primary);
}

pre {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 2px;
    overflow-x: auto;
    margin: 2rem 0;
    border-left: 4px solid #1a1a1a;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: var(--bgl-text);
}

/* ============================================================
   TABLES
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: #fff;
}

table thead {
    background-color: #1a1a1a;
    color: white;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}

table th {
    font-weight: 700;
    letter-spacing: 0.5px;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f0f0f0;
}

table tbody td {
    color: #333;
    line-height: 1.6;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 8px 10px;
    }
}

/* ============================================================
   BLOCKQUOTES
   ============================================================ */

blockquote {
    border-left: 4px solid #1a1a1a;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
    font-style: italic;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive blockquote for mobile */
@media (max-width: 768px) {
    blockquote {
        padding-left: 1rem;
        margin: 1.5rem 0;
    }
    
    blockquote p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: none;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

footer a {
    color: var(--bgl-primary);
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .col-md-9,
    .col-md-8,
    .col-md-4 {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-md-4 {
        margin-top: 3rem;
    }

    .box.post {
        padding: 1.5rem;
    }
    
    /* General container padding */
    .container {
        padding: 0 1rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Content area padding */
    #content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Section padding adjustments */
    section,
    .section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Button sizing on mobile */
    .btn,
    a.btn,
    button {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: auto;
        min-width: 120px;
    }
    
    /* Ensure proper text sizing for mobile readability */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Reduced margins on mobile */
    .box.post {
        margin-bottom: 2rem;
    }
    
    /* Table responsiveness */
    table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    /* Lists responsive */
    ul, ol {
        padding-left: 1.5rem;
    }
}    .container {
        padding: 0 1rem;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Add subtle separator */
.section-divider {
    height: 1px;
    background-color: var(--bgl-light);
    margin: 3rem 0;
}

/* Make text smaller for captions */
.caption, figcaption {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Improve list styling */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   LINK STYLING
   ============================================================ */

a {
    color: #d946a6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #ec4899;
}

/* ============================================================
   REVIEW IMAGE STYLING
   ============================================================ */

/* Standard image sizing for review content */
article img,
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Smaller images for about page */
.about-image-small img {
    display: block;
    max-width: 65%;
    height: auto;
    margin: 2rem auto;
    border-radius: 6px;
}

/* Constrain images on wider screens */
@media (min-width: 768px) {
    article img,
    .post-content img {
        max-width: 85%;
    }
}

/* Mobile image adjustments */
@media (max-width: 768px) {
    article img,
    .post-content img {
        margin: 1.5rem auto;
    }
    
    .about-image-small img {
        max-width: 90%;
    }
}

/* Banner/hero images */
.box.post img:first-child,
article > img:first-of-type {
    margin-top: 0;
    max-width: 100%;
}
