/*
Theme Name: GeneratePress Child
Theme URI: https://readloveshare.com
Description: Child theme for GeneratePress
Author: Read Love Share
Template: generatepress
Version: 1.0.0
*/

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

/* -- Google Fonts ---------------------------------------- */
body { font-family: 'Lora', serif; }

/* -- Reading progress bar -------------------------------- */
#eiw-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: #8e44ad;
    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: #8e44ad;
    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: #6c3483;
}

/* -- 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: #8e44ad;
    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 RLS purple --------- */
:root { --accent: #8e44ad; }

/* -- Hide site branding (title) from nav bar ------------ */
.site-branding { display: none; }

/* -- Prevent nav bar from overflowing viewport ---------- */
body { overflow-x: hidden; }

.main-navigation {
    width: 100%;
    float: none;
}

/* -- Navigation link styling ---------------------------- */
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: #6c3483;
}
@media (min-width: 769px) {
    .main-navigation .main-nav ul > li > a {
        display: block;
        text-align: center;
        font-size: 13px;
        font-weight: bold;
        color: #8e44ad;
        padding-left: 0;
        padding-right: 0;
        line-height: 60px;
    }
}
@media (min-width: 1000px) {
    .main-navigation .main-nav ul > li > a {
        font-size: 16px;
        padding-left: 20px;
        padding-right: 20px;
    }
}
