/*
Theme Name: GeneratePress Child - PUBG Lite Guide
Theme URI: https://pubgmliteguide.com/
Description: Custom child theme for pubgmliteguide.com — dark gaming-style homepage with a clean post grid. Built on GeneratePress (free).
Author: pubgmliteguide.com
Template: generatepress
Version: 1.0.5
Text Domain: gp-child-pubglite
*/

/* =========================================================
   COLOR VARIABLES
   ========================================================= */
:root{
    --pl-dark: #0f1b2d;
    --pl-dark-2: #16294a;
    --pl-orange: #2f6fd1;
    --pl-orange-light: #5b93e6;
    --pl-text: #1c1c1c;
    --pl-muted: #6b7280;
    --pl-bg: #f5f7fa;
    --pl-white: #ffffff;
    --pl-radius: 12px;
    --pl-shadow: 0 4px 18px rgba(15,27,45,0.08);
}

/* =========================================================
   GLOBAL / BASE
   ========================================================= */
*,
*::before,
*::after{
    box-sizing: border-box;
}
body{
    color: var(--pl-text);
    background: var(--pl-bg);
}
a{ color: var(--pl-dark); }
a:hover{ color: var(--pl-orange); }

/* =========================================================
   HEADER / NAVIGATION MENU
   ========================================================= */
.site-header,
#masthead{
    background: var(--pl-white);
    border-bottom: 1px solid #ece9e3;
}
.main-navigation,
.main-navigation .inside-navigation{
    background: transparent;
}
.main-navigation a{
    color: var(--pl-dark) !important;
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px 18px !important;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a{
    background: var(--pl-orange);
    color: var(--pl-white) !important;
}
.main-navigation .sub-menu{
    background: var(--pl-white);
    box-shadow: var(--pl-shadow);
    border-radius: 8px;
    overflow: hidden;
}
.main-navigation .sub-menu a{
    color: var(--pl-dark) !important;
}
.main-navigation .sub-menu a:hover{
    background: var(--pl-orange);
    color: var(--pl-white) !important;
}
.site-title a{
    color: var(--pl-dark) !important;
    font-weight: 800;
    letter-spacing: .3px;
}
.site-description{
    color: var(--pl-muted);
}

/* =========================================================
   HOMEPAGE LAYOUT (front-page.php)
   ========================================================= */
.pl-home-wrap{
    display: flex;
    align-items: flex-start;
    gap: 34px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 50px;
}
.pl-home-main{
    flex: 1 1 0;
    min-width: 0;
}
.pl-home-sidebar{
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
}
/* Reset any width/float GeneratePress's own grid CSS applies to
   the sidebar so widgets keep their full, readable width. */
.pl-home-sidebar,
.pl-home-sidebar #secondary,
.pl-home-sidebar .widget-area,
.pl-home-sidebar .sidebar,
.pl-home-sidebar .inside-right-sidebar{
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
@media (max-width: 900px){
    .pl-home-wrap{
        flex-direction: column;
        padding: 20px 16px 40px;
    }
    .pl-home-sidebar{ flex-basis: auto; width: 100%; max-width: 100%; }
}

/* =========================================================
   LATEST POSTS GRID (compact, dark-accent gaming cards)
   ========================================================= */
.pl-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.pl-post-card{
    display: flex;
    flex-direction: column;
    background: var(--pl-white);
    border: 1px solid #eceae4;
    border-radius: var(--pl-radius);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pl-post-card:hover{
    border-color: var(--pl-orange);
    transform: translateY(-2px);
    box-shadow: var(--pl-shadow);
}
.pl-post-card .pl-thumb{
    width: 100%;
    aspect-ratio: 12 / 7;
    background: var(--pl-dark-2);
}
.pl-post-card .pl-thumb img{
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}
.pl-post-card .pl-body{
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pl-post-card .pl-cat{
    display: inline-block;
    background: var(--pl-orange);
    color: var(--pl-dark);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}
.pl-post-card .pl-title{
    color: var(--pl-text);
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pl-post-card .pl-excerpt{
    color: var(--pl-muted);
    font-size: 12.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
    flex: 1;
}
.pl-post-card .pl-meta{
    font-size: 11px;
    color: var(--pl-muted);
    margin-top: auto;
}
@media (max-width: 900px){
    .pl-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
    .pl-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   ARCHIVE / CATEGORY / SEARCH LOOP
   ========================================================= */
.archive .site-main article.type-post,
.search .site-main article.type-post{
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    padding: 18px;
    margin-bottom: 18px;
    border: none;
}
.archive .entry-title a,
.search .entry-title a{
    color: var(--pl-text);
    font-weight: 700;
}
.archive .entry-title a:hover,
.search .entry-title a:hover{
    color: var(--pl-orange);
}
.archive .entry-meta,
.search .entry-meta{
    color: var(--pl-muted);
    font-size: 12.5px;
}
.page-header .page-title{
    color: var(--pl-dark);
    border-bottom: 3px solid var(--pl-orange);
    display: inline-block;
    padding-bottom: 6px;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.single .entry-title{
    font-size: 30px;
    line-height: 1.3;
    color: var(--pl-dark);
    font-weight: 800;
}
.single .entry-meta{
    color: var(--pl-muted);
    font-size: 13px;
}
.single .featured-image img,
.single .post-image img{
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
}
.single .entry-content{
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--pl-text);
}
.single .entry-content h2{
    font-size: 24px;
    color: var(--pl-dark);
    margin-top: 34px;
    border-left: 4px solid var(--pl-orange);
    padding-left: 12px;
}
.single .entry-content h3{
    font-size: 20px;
    color: var(--pl-dark);
    margin-top: 26px;
}
.single .entry-content table{
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.single .entry-content table th,
.single .entry-content table td{
    border: 1px solid #e6e4de;
    padding: 8px 12px;
    text-align: left;
    font-size: 14.5px;
}
.single .entry-content table th{
    background: var(--pl-dark);
    color: var(--pl-white);
}
.single .entry-content blockquote{
    border-left: 4px solid var(--pl-orange);
    background: #fff6e8;
    padding: 14px 18px;
    font-style: italic;
    color: #4a4a4a;
}
.single .entry-content img{
    border-radius: 10px;
}
.single .entry-content a{
    color: var(--pl-dark);
    text-decoration: underline;
    text-decoration-color: var(--pl-orange);
}

/* Tags */
.single .entry-tags a,
.tags-links a{
    display: inline-block;
    background: var(--pl-bg);
    border: 1px solid #e2e0da;
    color: var(--pl-text);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px 4px 3px 0;
}
.single .entry-tags a:hover,
.tags-links a:hover{
    background: var(--pl-dark);
    color: var(--pl-white) !important;
    border-color: var(--pl-dark);
}

/* Author box */
.pl-author-box{
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    padding: 16px 18px;
    margin: 30px 0;
}
.pl-author-box img{
    border-radius: 50%;
    width: 56px;
    height: 56px;
}
.pl-author-box .pl-author-name{
    font-weight: 700;
    color: var(--pl-dark);
    margin: 0 0 4px;
}
.pl-author-box .pl-author-bio{
    font-size: 13.5px;
    color: var(--pl-muted);
    margin: 0;
}

/* =========================================================
   SIDEBAR / WIDGETS
   ========================================================= */
.widget{
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    padding: 18px;
    margin-bottom: 20px;
}
.widget-title{
    font-size: 15px;
    font-weight: 700;
    color: var(--pl-dark);
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid var(--pl-orange);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.widget ul{ margin: 0; padding: 0; list-style: none; }
.widget ul li{
    padding: 7px 0;
    border-bottom: 1px dashed #ece9e3;
    font-size: 14px;
}
.widget ul li:last-child{ border-bottom: none; }
.widget a{ color: var(--pl-text); }
.widget a:hover{ color: var(--pl-orange); }

/* =========================================================
   COMMENTS
   ========================================================= */
.comment-respond,
.comments-area{
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    padding: 20px;
    margin-top: 30px;
}
.comment-reply-title,
.comments-title{
    color: var(--pl-dark);
    font-weight: 700;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
    border: 1px solid #ddd8ce;
    border-radius: 8px;
    padding: 10px 12px;
}
.comment-form input[type="submit"],
.wp-block-search__button,
.searchform input[type="submit"]{
    background: var(--pl-dark) !important;
    color: var(--pl-white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600;
}
.comment-form input[type="submit"]:hover{
    background: var(--pl-orange) !important;
    color: var(--pl-dark) !important;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pl-pagination,
.navigation.pagination,
.page-numbers{
    text-align: center;
    margin-top: 24px;
}
.pl-pagination .page-numbers,
.navigation.pagination .page-numbers{
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 7px 10px;
    margin: 0 3px;
    border-radius: 8px;
    background: var(--pl-white);
    box-shadow: var(--pl-shadow);
    color: var(--pl-text) !important;
    font-size: 13px;
    text-decoration: none !important;
}
.pl-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current{
    background: var(--pl-dark);
    color: var(--pl-orange-light) !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
#footer,
.site-footer,
.footer-widgets{
    background: var(--pl-dark);
    color: #cfd2d8;
}
.footer-widgets .widget{
    background: transparent;
    box-shadow: none;
}
.footer-widgets .widget-title{
    color: var(--pl-orange-light);
    border-bottom-color: rgba(255,157,0,.4);
}
.footer-widgets a{
    color: #cfd2d8 !important;
}
.footer-widgets a:hover{
    color: var(--pl-orange-light) !important;
}
/* The bottom copyright bar (.site-info) is often a separate
   element from the footer widgets area above — give it its
   own dark background too, otherwise the light text sits on
   a white background and becomes almost unreadable. */
.site-info{
    background: var(--pl-dark-2) !important;
    color: #cfd2d8 !important;
    padding: 16px 20px !important;
    text-align: center;
    font-size: 13px;
}
.site-info a{
    color: var(--pl-orange-light) !important;
}
.site-info a:hover{
    color: var(--pl-white) !important;
}

/* The footer "Home / About / Contact…" menu is a classic Nav
   Menu widget living inside .site-info → .footer-bar. Our
   generic .widget rule (white card) was leaking onto it — this
   strips that back out and styles the actual menu links. */
.site-info .widget{
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.site-info .footer-bar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-info .footer-bar ul{
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-info .footer-bar li{
    list-style: none;
    margin: 0;
}
.site-info .footer-bar li{
    list-style: none;
    margin: 0;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}
.site-info .footer-bar li::before,
.site-info .footer-bar li::after,
.site-info .footer-bar a::before,
.site-info .footer-bar a::after{
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}
.site-info .footer-bar a,
.site-info .footer-bar a:link,
.site-info .footer-bar a:visited{
    color: #cfd2d8 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: solid !important;
    text-decoration-color: transparent !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-weight: 600;
    font-size: 13.5px;
}
.site-info .footer-bar a:hover{
    color: var(--pl-orange-light) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   404 / NO RESULTS
   ========================================================= */
.error-404,
.no-results{
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow);
    padding: 40px 24px;
    text-align: center;
}
.error-404 .page-title{
    font-size: 60px;
    color: var(--pl-orange);
    border: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px){
    .single .entry-title{ font-size: 24px; }
    .pl-author-box{ flex-direction: column; text-align: center; }
}
