/* ================================
   Base Typography and Layout
   ================================ */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: #333333;
    color: #F5F5F5;
    margin-bottom: 60px;
}

label, h1, h2, h3, h4, h5, h6, p, td, th, a {
    color: #F5F5F5 !important;
}

input, textarea, select {
    color: #ffffff !important;
    background-color: #444444 !important;
    border: 1px solid #888888 !important;
}

table, th, td {
    border-color: #777777 !important;
}

/* ================================
   Buttons and Forms
   ================================ */
.btn {
    color: #ffffff !important;
}

.btn-primary {
    background-color: #444;
    border-color: #555;
    color: #e0e0e0;
}

    .btn-primary:hover {
        background-color: #555;
        border-color: #666;
        color: #ffffff;
    }

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ================================
   Navigation
   ================================ */
.navbar-nav .nav-link {
    color: #C4A356;
    font-size: 1.05rem;
    font-weight: 500;
}

    .navbar-nav .nav-link:hover {
        color: #E6C98D;
    }

.navbar-nav .nav-item {
    margin-left: 1.6rem;
}

.dropdown-menu {
    background-color: #1C1C1C;
    border: none;
}

.dropdown-item {
    color: #F5F5F5;
    font-size: 1rem;
}

    .dropdown-item:hover {
        background-color: #C4A356;
        color: #1C1C1C;
    }

/* ================================
   Decorative Elements
   ================================ */
.header-divider {
    height: 4px;
    background: linear-gradient(to right, #C4A356, #333333);
    margin-top: 0;
    margin-bottom: 10px;
}

/*=====================================
    Explore Links
======================================*/
.explore-links a {
    text-decoration: none;
    color: #c8c8c8 !important; /* soft light grey */
    margin: 0 8px;
}

    .explore-links a:hover {
        transition: color 0.2s ease;
        color: #ffffff !important; /* optional: brighten slightly on hover */
    }

.explore-heading {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #c8c8c8 !important; /* soft grey for the heading as well */
}

.explore-section {
    margin-bottom: 1rem; /* tighten spacing */
}

/*====================================
    Footer
=======================================*/
footer.footer p {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

footer.footer {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.footer-line {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

/* ================================
   Musings Image Layout (FINAL)
   ================================ */

/* Remove browser/Bootstrap default figure margins */
.musings-content figure {
    margin: 0;
    padding: 0;
}

/* FLOAT LEFT */
.musing-figure-left {
    float: left;
    margin: 0 15px 15px 0;
}

/* FLOAT RIGHT */
.musing-figure-right {
    float: right;
    margin: 0 0 15px 15px;
}

/* CENTERED (no float) */
.musing-figure-center {
    margin: 0 auto 20px auto;
    text-align: center;
}

/* FIGURE: width is set inline via style="width:40%" */
figure[class^="musing-figure"] {
    display: inline-block; /* allows percentage width to work */
    max-width: 100%; /* prevents overflow */
}

    /* IMAGE: fills the figure */
    figure[class^="musing-figure"] img {
        width: 100%; /* image scales to figure width */
        height: auto;
        display: block; /* caption goes below */
    }

    /* CAPTION: centered under image */
    figure[class^="musing-figure"] figcaption {
        display: block;
        text-align: center;
        font-size: 0.9em;
        color: #555;
        margin-top: 5px;
    }

/* ================================
   Preview Styling
   ================================ */

.musing-preview {
    background: #fafafa;
    color: #000;
    padding: 15px;
    border: 1px solid #ddd;
    min-height: 300px;
}

    .musing-preview * {
        color: #000 !important;
    }

/* Ensure preview does NOT create a new formatting context */
#livePreviewContainer,
#livePreviewContent {
    display: block !important;
    float: none !important;
    overflow: visible !important;
    position: static !important;
}

/* Force preview text to behave like article text */
#livePreview,
#livePreview * {
    color: #000 !important;
}

/* ================================
   Preview Styling (FIXED)
   ================================ */

#livePreviewContent {
    all: revert;
    /* Force normal text flow */
    text-align: left !important;
    display: block;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: 1.5;
    font-size: 1rem;
}

    /* Ensure figures behave normally inside preview */
    #livePreviewContent figure {
        margin: 0 15px 15px 0;
    }

    /* Restore float behavior inside preview */
    #livePreviewContent .musing-figure-left {
        float: left !important;
    }

    #livePreviewContent .musing-figure-right {
        float: right !important;
    }
/* ================================
   Miscellaneous Components
   ================================ */
.showcase-guitar {
    max-width: 700px;
    border: 2px solid #C4A356;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    margin-top: 20px;
}

.model-card {
    background-color: #2c2c2c;
    padding-top: 12px;
    border-radius: 6px;
}

.model-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 4px; /* optional, but matches the card nicely */
}

.detail-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 6px;
}

/* Active tab background */
.nav-tabs .nav-link.active {
    background-color: #2b2b2b !important;
    color: #fff !important;
    border-color: #444 #444 #2b2b2b !important;
}

/* Hover state (optional, but keeps things consistent) */
.nav-tabs .nav-link:hover {
    background-color: #3a3a3a;
    color: #fff;
}

/* Make card backgrounds match the site theme */
.card, .card-body {
    background-color: #1e1e1e !important; /* or your page background */
    color: #fff;
    border-color: #333;
}

.philosophy-bench-image {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 4px;
}