/*
Theme Name: Glossywise
Theme URI: https://glossywise.online/
Author: Glossywise Team
Author URI: https://glossywise.online/
Description: A clean, modern general lifestyle blog theme built for Glossywise. Fast, responsive, minimal design with no sidebar on the home page.
Version: 1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: glossywise
*/

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2b2b2b;
    background: #faf9f7;
    line-height: 1.7;
}
a { color: #b8895f; text-decoration: none; transition: color .2s ease; }
a:hover { color: #8f6a45; }
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }
h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; line-height: 1.3; color: #232323; margin: 0 0 .5em; }
p { margin: 0 0 1.2em; }
ul { padding-left: 1.2em; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.site-branding a.site-title-link { font-size: 26px; font-weight: 700; letter-spacing: .5px; color: #232323; font-family: 'Georgia', serif; }
.site-branding .site-description { font-size: 13px; color: #888; margin: 2px 0 0; }
.site-branding img.custom-logo { max-height: 50px; }

.main-navigation ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-navigation a { font-size: 15px; font-weight: 600; color: #444; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: #b8895f; }

/* ===== Hero (Home page) ===== */
.hero { background: linear-gradient(135deg, #fff6ef, #fdeee0); padding: 70px 0 60px; text-align: center; }
.hero h1 { font-size: 40px; margin-bottom: 12px; }
.hero p.tagline { font-size: 17px; color: #666; max-width: 620px; margin: 0 auto; }

/* ===== Sections ===== */
.section { padding: 55px 0; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: #777; margin-bottom: 36px; font-size: 15px; }

/* ===== Category Grid (Home) ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.category-card { background: #fff; border-radius: 14px; padding: 28px 22px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.05); border: 1px solid #f0ede8; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.category-card h3 { font-size: 19px; margin-bottom: 8px; }
.category-card p { font-size: 13.5px; color: #777; margin-bottom: 14px; }
.category-card .cat-link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ===== Post Grid ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.post-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #f0ede8; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.post-card .post-thumb { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-card .post-body { padding: 20px; }
.post-card .post-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #b8895f; letter-spacing: .5px; }
.post-card h3 { font-size: 18px; margin: 8px 0 10px; }
.post-card h3 a { color: #232323; }
.post-card .post-excerpt { font-size: 14px; color: #666; }
.post-card .post-meta { font-size: 12px; color: #999; margin-top: 12px; }

/* ===== Pages / Featured Links (Home) ===== */
.page-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.page-link-card { background: #232323; color: #fff; border-radius: 12px; padding: 22px; text-align: center; }
.page-link-card a { color: #fff; font-weight: 700; font-size: 15px; }
.page-link-card p { color: #ccc; font-size: 13px; margin: 6px 0 0; }

.bg-soft { background: #fff3e8; }

/* ===== Single / Page / Archive content ===== */
.content-wrap { display: grid; grid-template-columns: 2.4fr 1fr; gap: 44px; padding: 50px 0; }
.content-wrap.no-sidebar { grid-template-columns: 1fr; }
.entry-header { margin-bottom: 22px; }
.entry-title { font-size: 32px; }
.entry-meta { font-size: 13px; color: #888; margin-bottom: 18px; }
.entry-content { font-size: 16.5px; }
.entry-content h2 { font-size: 24px; margin-top: 1.4em; }
.entry-content h3 { font-size: 19px; margin-top: 1.2em; }
.archive-title { font-size: 30px; margin-bottom: 6px; }
.archive-description { color: #777; margin-bottom: 30px; }

/* ===== Sidebar ===== */
.widget { background: #fff; border: 1px solid #f0ede8; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; border-bottom: 2px solid #f3e4d3; padding-bottom: 8px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid #eee; font-size: 14px; }
.pagination .current { background: #b8895f; color: #fff; }

/* ===== Footer ===== */
.site-footer { background: #232323; color: #ccc; padding: 50px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #ccc; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 13px; color: #888; border-top: 1px solid #3a3a3a; padding-top: 20px; }

/* ===== Responsive ===== */
@media (max-width: 782px) {
    .content-wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .main-navigation ul { gap: 14px; }
}

/* ===== Comments ===== */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list article { background: #fff; border: 1px solid #f0ede8; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
