/*
Theme Name: Les Pépites Gourmandes
Template: generatepress
Version: 1.0.0
Description: Recettes et découvertes culinaires
Text Domain: pepites-gourmandes
*/

/* ====================================================================
   ONLY rules for elements GP does not control via option keys.
   Each rule documents the specific GP gap it addresses.
   ==================================================================== */

/* --- Fix 1: Mobile column container negative margin ---
   GP blog uses .generate-columns-container{margin-left:-35px} for gutters.
   The reset rule requires body class .generate-columns-activated, which
   the scrub mu-plugin removes (strips all generate-* classes).
   This replicates GP blog/style.min.css @media(max-width:767px) reset. */
@media (max-width: 767px) {
    .generate-columns-container {
        margin-left: 0;
        margin-right: 0;
    }
    .generate-columns-container .generate-columns,
    .generate-columns-container > * {
        padding-left: 0;
    }
    .generate-columns-container .page-header,
    .generate-columns-container > .paging-navigation {
        margin-left: 0;
    }
}

/* --- Fix 2: Mobile header colors ---
   GP Menu Plus has no option keys for #mobile-header element colors. */
#mobile-header {
    background-color: #FFFFFF;
}
#mobile-header .menu-toggle {
    color: #4A3728;
}
#mobile-header .menu-toggle .gp-icon svg {
    fill: #4A3728;
}
#mobile-header .menu-toggle:hover .gp-icon svg,
#mobile-header .menu-toggle:focus .gp-icon svg {
    fill: #B45309;
}

/* --- Fix 3: Mobile menu items styling ---
   GP Menu Plus has no option keys for mobile expanded menu item
   font-weight, padding, or separators. */
#mobile-header .main-nav ul li a {
    color: #4A3728;
    background-color: #FFFFFF;
    padding: 14px 25px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #F0E6D6;
}
#mobile-header .main-nav ul li a:hover {
    color: #B45309;
    background-color: #FFF8F0;
}

/* --- Fix 4: Search button SVG ---
   GP SVG icons in buttons lack fill:currentColor. */
.search-submit svg,
.search-form .search-submit svg,
#mobile-header .search-submit svg {
    fill: currentColor;
}

/* --- Fix 5: WPForms button ---
   WPForms Lite injects hardcoded --wpforms-button-background-color:#066aab.
   No Lite color option exists. */
.wpforms-submit {
    background-color: #B45309 !important;
    color: #FFFFFF !important;
    border: none !important;
}
.wpforms-submit:hover,
.wpforms-submit:focus {
    background-color: #92400E !important;
    color: #FFFFFF !important;
}

/* --- Fix 6: Mobile logo sizing ---
   GP sets height:60px via inline CSS. Override to make logo more prominent. */
#mobile-header .mobile-header-logo img {
    height: 50px;
    max-width: 250px;
    width: auto;
}

/* --- Fix 7: Hide top bar on mobile ---
   Saves vertical space. H1 bar (from functions.php) replaces it on homepage.
   GP has no per-breakpoint top bar visibility option. */
@media (max-width: 1024px) {
    .top-bar {
        display: none;
    }
    .homepage-h1-bar {
        display: none;
    }
}

/* --- Fix 8: Read-more link styling ---
   GP has no option keys for read-more link appearance. */
.read-more,
a.read-more {
    display: inline-block;
    color: #B45309;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid #B45309;
    padding-bottom: 2px;
}
.read-more:hover,
a.read-more:hover {
    color: #92400E;
    border-color: #92400E;
}

/* --- Fix 9: Pagination link styling ---
   GP has no option keys for pagination link weight/color. */
.nav-links a,
.paging-navigation a {
    font-weight: 600;
    color: #B45309;
}
.nav-links a:hover,
.paging-navigation a:hover {
    color: #92400E;
}

/* --- Fix 10: Search elements sizing ---
   GP has no option keys for search input width or button tap target size.
   Mobile search needs explicit appearance reset to prevent default browser styling. */
.search-field {
    min-width: 200px;
    padding: 8px 12px;
    font-size: 15px;
}
.search-submit {
    padding: 8px 15px;
    min-width: 44px;
    min-height: 44px;
}
@media (max-width: 1024px) {
    .search-field {
        min-width: 0;
        width: 100%;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 3px;
        font-size: 16px;
        padding: 10px 12px;
        border: 1px solid #D6C8B8;
        background-color: #FFFFFF;
        color: #1C1917;
    }
    .search-submit {
        -webkit-appearance: none;
        appearance: none;
        background-color: #B45309;
        color: #FFFFFF;
        border: none;
        border-radius: 3px;
        padding: 10px 15px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* --- Fix 11: Post content vertical rhythm ---
   GP has separator spacing for between posts, but no option keys for
   internal post element spacing (header→image, meta→content, etc). */
.entry-header {
    margin-bottom: 15px;
}
.entry-summary,
.entry-content {
    margin-bottom: 15px;
}
.entry-meta {
    margin-bottom: 10px;
}
.post-image {
    margin-bottom: 15px;
}

/* --- Fix 12: Mobile font sizes ---
   GP has no mobile body/widget/footer font size option keys. */
@media (max-width: 1024px) {
    body,
    .sidebar .widget,
    .footer-widgets,
    .site-info {
        font-size: 16px;
    }
}
