/*
Theme Name: GeneratePress Child
Theme URI: https://fullspecmotors.com
Description: Child theme for GeneratePress
Author: Full Spec Motors
Template: generatepress
Version: 1.0.0
*/

@import url("../generatepress/style.css");

/* ── Google Fonts ─────────────────────────────────── */
body { font-family: 'Inter', sans-serif; }

/* ── Reading progress bar ─────────────────────────── */
#eiw-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: #c0392b;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Post card hover ──────────────────────────────── */
.post {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}
.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ── Category pill badges ─────────────────────────── */
.cat-links a, .entry-categories a {
    display: inline-block;
    background: #c0392b;
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none !important;
    margin: 0 3px 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cat-links a:hover, .entry-categories a:hover {
    background: #96281b;
}

/* ── Read time badge ──────────────────────────────── */
.eiw-read-time {
    font-size: 0.82em;
    color: #888;
    margin: 0.3em 0 1.2em;
    font-weight: 500;
}

/* ── Related posts ────────────────────────────────── */
.eiw-related {
    margin: 3em 0 1em;
    padding-top: 1.5em;
    border-top: 2px solid #eee;
}
.eiw-related h3 {
    font-size: 1em;
    margin-bottom: 1em;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}
.eiw-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1em;
}
.eiw-related-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}
.eiw-related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.eiw-related-item img {
    width: 100%; height: 120px;
    object-fit: cover; display: block;
}
.eiw-related-item a {
    display: block;
    padding: 0.6em 0.8em;
    font-size: 0.83em;
    font-weight: 600;
    color: #222 !important;
    text-decoration: none !important;
    line-height: 1.35;
}

/* ── Read More button ─────────────────────────────── */
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background-color: #c0392b;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 600;
    transition: opacity 0.2s;
}
.read-more-btn:hover {
    opacity: 0.82;
    color: #fff !important;
}

/* ── Admin postbox indent ─────────────────────────── */
.postbox-header { padding-left: 10px; }

/* ── Override GeneratePress accent to FSM red ─────── */
:root { --accent: #c0392b; }

/* ── Hide bot comment timestamps ──────────────────── */
.fsmb-bot-comment .comment-metadata { display: none; }

/* ── Hide site title from nav/header ─────────────── */
.site-branding { display: none; }

/* ── Nav stretches full header width — desktop only ── */
@media (min-width: 769px) {
    .nav-float-right .inside-header .main-navigation#site-navigation {
        float: none !important;
        width: 100% !important;
    }
    .nav-float-right .inside-header .main-navigation .inside-navigation {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 20px !important;
    }
    .main-navigation .main-nav {
        width: 100%;
    }
    .main-navigation .main-nav ul {
        display: flex !important;
        justify-content: space-around !important;
        width: 100% !important;
        letter-spacing: normal !important;
    }
    .main-navigation .main-nav ul > li {
        float: none !important;
        flex: 1;
        text-align: center;
    }
    .main-navigation .main-nav ul > li > a {
        text-align: center;
        padding: 0 10px;
    }
}

/* ── Animated video block ─────────────────────────── */
.wp-block-video {
    margin-bottom: 2em;
}

.wp-block-video video {
    border-radius: 10px;
    width: 100%;
}

/* ── Hide featured image on single posts (video replaces it) ── */
.page-header-image-single {
    display: none;
}
