/*
Theme Name: Glowlama
Theme URI: https://glowlama.com
Author: Glowlama
Author URI: https://glowlama.com
Description: A pastel-toned, clean beauty magazine theme with ad placements, SEO, social media integration, newsletter, and article priority system.
Version: 5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glowlama
Tags: magazine, beauty, pastel, responsive, seo, ads
*/

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --gl-white: #FFFFFF;
    --gl-bg: #FAFAFA;
    --gl-text: #2D2926;
    --gl-text-light: #6B6462;
    --gl-accent: #E8854A;
    --gl-border: #E8E4E0;
    --gl-border-light: #F0ECE8;

    /* Pastel category colors */
    --cat-face: #F9E4DC;
    --cat-face-text: #C4604A;
    --cat-makeup: #FCE8F0;
    --cat-makeup-text: #C45A8A;
    --cat-body: #E8F0E4;
    --cat-body-text: #5A8A4A;
    --cat-nails: #FCE4E4;
    --cat-nails-text: #C45A5A;
    --cat-hair: #FFF3E0;
    --cat-hair-text: #B8864A;
    --cat-feet: #E4ECF4;
    --cat-feet-text: #4A6A8A;
    --cat-treatments: #E0F4EC;
    --cat-treatments-text: #3A8A6A;
    --cat-perfume: #F0E4F8;
    --cat-perfume-text: #7A4A9A;
    --cat-men: #E4E8F0;
    --cat-men-text: #4A5A7A;
    --cat-innovation: #FFF0E0;
    --cat-innovation-text: #C87A30;
    --cat-celebrities: #FCE4F0;
    --cat-celebrities-text: #B84A7A;
    --cat-sustainability: #E4F4E8;
    --cat-sustainability-text: #3A7A4A;
    --cat-wellness: #F4F0E4;
    --cat-wellness-text: #8A7A3A;
    --cat-tech: #E4F0F8;
    --cat-tech-text: #3A7A9A;

    /* Hero pastel backgrounds */
    --hero-bg-1: #F9E4DC;
    --hero-bg-2: #FFF3E0;
    --hero-bg-3: #F0F4E8;
    --hero-bg-4: #FCE8F0;
    --hero-bg-5: #E4ECF4;

    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--gl-text);
    background: var(--gl-white);
    line-height: 1.6;
}
a { color: var(--gl-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gl-accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gl-text);
}
ul, ol { list-style: none; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--gl-white);
    border-bottom: 1px solid var(--gl-border);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left a {
    color: var(--gl-text-light);
    font-size: 13px;
}
.top-bar-left a:hover { color: var(--gl-accent); }
.top-bar-right { display: flex; gap: 14px; align-items: center; }
.social-icon { display: inline-flex; align-items: center; }
.social-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--gl-text-light);
    transition: fill 0.2s;
}
.social-icon:hover svg { fill: var(--gl-accent); }

/* ===== Site Header ===== */
.site-header {
    background: var(--gl-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--gl-border);
}
.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}
.custom-logo-link img { max-height: 48px; width: auto; }
.site-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--gl-text);
    margin: 0;
}
.site-title a { color: inherit; }
.slogan-divider {
    width: 1px;
    height: 36px;
    background: var(--gl-border);
    margin: 0 4px;
}
.site-slogans {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.slogan-line {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--gl-text-light);
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* ===== Main Navigation ===== */
.main-navigation {
    background: var(--gl-white);
    border-bottom: 2px solid var(--gl-text);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-navigation .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.main-navigation ul {
    display: flex;
    gap: 0;
    justify-content: center;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gl-text);
    transition: color 0.2s, background 0.2s;
}
.main-navigation a:hover {
    color: var(--gl-accent);
    background: var(--gl-bg);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gl-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== Hero Grid ===== */
.hero-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}
.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: transform 0.2s;
}
.hero-card:hover { transform: translateY(-2px); }
.hero-card.large {
    grid-row: 1 / 3;
    min-height: 420px;
    padding: 30px;
}
.hero-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-card-content {
    position: relative;
    z-index: 2;
}
.hero-card .category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.hero-card .entry-title {
    font-size: 16px;
    line-height: 1.3;
    color: var(--gl-text);
}
.hero-card.large .entry-title { font-size: 24px; }

/* No-image hero cards with pastel backgrounds */
.hero-card.no-image { background: var(--hero-bg-1); }
.hero-card.no-image:nth-child(2) { background: var(--hero-bg-2); }
.hero-card.no-image:nth-child(3) { background: var(--hero-bg-3); }
.hero-card.no-image:nth-child(4) { background: var(--hero-bg-4); }
.hero-card.no-image:nth-child(5) { background: var(--hero-bg-5); }

/* ===== Advertisement Zones ===== */
.ad-zone {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}
.ad-zone-inner {
    background: var(--gl-bg);
    border: 1px dashed var(--gl-border);
    padding: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gl-text-light);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-zone-sidebar .ad-zone-inner {
    margin-top: 24px;
}
.ad-zone-inline {
    margin: 24px 0;
}

/* ===== Content Layout ===== */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}
.main-content { min-width: 0; }

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gl-text);
}
.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Article Cards ===== */
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gl-border-light);
}
.article-card:last-child { border-bottom: none; }
.article-thumb {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gl-bg);
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-info { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gl-text-light);
}
.article-info .entry-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}
.article-info .entry-title a:hover { color: var(--gl-accent); }
.article-excerpt {
    font-size: 14px;
    color: var(--gl-text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Priority badges */
.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.priority-badge.top { background: var(--gl-accent); color: white; }
.priority-badge.featured { background: var(--cat-innovation); color: var(--cat-innovation-text); }

/* ===== Category Badges ===== */
.category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cat-face { background: var(--cat-face); color: var(--cat-face-text); }
.cat-makeup { background: var(--cat-makeup); color: var(--cat-makeup-text); }
.cat-body { background: var(--cat-body); color: var(--cat-body-text); }
.cat-nails-hands { background: var(--cat-nails); color: var(--cat-nails-text); }
.cat-hair { background: var(--cat-hair); color: var(--cat-hair-text); }
.cat-feet { background: var(--cat-feet); color: var(--cat-feet-text); }
.cat-treatments { background: var(--cat-treatments); color: var(--cat-treatments-text); }
.cat-perfume { background: var(--cat-perfume); color: var(--cat-perfume-text); }
.cat-men { background: var(--cat-men); color: var(--cat-men-text); }
.cat-innovation { background: var(--cat-innovation); color: var(--cat-innovation-text); }
.cat-celebrities { background: var(--cat-celebrities); color: var(--cat-celebrities-text); }
.cat-sustainability { background: var(--cat-sustainability); color: var(--cat-sustainability-text); }
.cat-wellness { background: var(--cat-wellness); color: var(--cat-wellness-text); }
.cat-beauty-tech { background: var(--cat-tech); color: var(--cat-tech-text); }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
    background: var(--gl-white);
    border: 1px solid var(--gl-border-light);
    border-radius: 8px;
    padding: 20px;
}
.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gl-text);
}

/* Most Read */
.most-read-list { counter-reset: most-read; }
.most-read-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gl-border-light);
    counter-increment: most-read;
}
.most-read-item:last-child { border-bottom: none; }
.most-read-item::before {
    content: counter(most-read, decimal-leading-zero);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--gl-border);
    min-width: 36px;
    line-height: 1;
}
.most-read-item a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.most-read-item a:hover { color: var(--gl-accent); }

/* Newsletter Widget */
.newsletter-widget {
    background: var(--hero-bg-1) !important;
    border: none !important;
    text-align: center;
    padding: 28px 20px !important;
}
.newsletter-widget h3 {
    border-bottom: none !important;
    font-size: 20px;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}
.newsletter-subtitle {
    font-size: 13px;
    color: var(--gl-text-light);
    margin-bottom: 16px;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type="email"] {
    padding: 12px 14px;
    border: 1px solid var(--gl-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--gl-white);
    width: 100%;
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--gl-accent);
}
.newsletter-form button {
    padding: 12px;
    background: var(--gl-text);
    color: var(--gl-white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gl-accent); }

/* ===== Single Post ===== */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.single-post-content .entry-title {
    font-size: 32px;
    margin-bottom: 12px;
}
.single-post-meta {
    font-size: 13px;
    color: var(--gl-text-light);
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.single-post-content .entry-content {
    font-size: 16px;
    line-height: 1.75;
}
.single-post-content .entry-content p { margin-bottom: 1.2em; }
.single-post-content .entry-content h2 { margin: 1.5em 0 0.5em; font-size: 24px; }
.single-post-content .entry-content h3 { margin: 1.3em 0 0.4em; font-size: 20px; }
.single-post-content .entry-content img { border-radius: 8px; margin: 1.5em 0; }
.single-post-content .entry-content blockquote {
    border-left: 3px solid var(--gl-accent);
    padding: 12px 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--gl-text-light);
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--gl-border-light);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; color: white; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.pinterest { background: #E60023; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 20px;
    font-size: 12px;
    color: var(--gl-text-light);
}
.breadcrumbs a { color: var(--gl-text-light); }
.breadcrumbs a:hover { color: var(--gl-accent); }
.breadcrumbs span { margin: 0 6px; }

/* ===== Footer ===== */
.site-footer {
    background: var(--gl-text);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
    margin-top: 60px;
}
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-logo {
    margin-bottom: 8px;
}
.footer-logo img { max-height: 36px; margin: 0 auto; }
.footer-logo .site-title-footer {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: white;
}
.footer-slogan {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
    font-style: italic;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.footer-nav a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gl-accent); }
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}
.footer-social .social-icon svg { fill: rgba(255,255,255,0.5); }
.footer-social .social-icon:hover svg { fill: var(--gl-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
}
.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}
.footer-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

/* ===== Page Template ===== */
.page-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.page-content .entry-title {
    font-size: 32px;
    margin-bottom: 24px;
}
.page-content .entry-content {
    font-size: 16px;
    line-height: 1.75;
}
.page-content .entry-content p { margin-bottom: 1.2em; }

/* ===== Archive ===== */
.archive-header {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}
.archive-header h1 {
    font-size: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gl-text);
}

/* ===== Search ===== */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gl-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
}
.search-form button {
    padding: 10px 20px;
    background: var(--gl-text);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.error-404 h1 { font-size: 72px; color: var(--gl-border); margin-bottom: 16px; }
.error-404 p { font-size: 18px; color: var(--gl-text-light); margin-bottom: 24px; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--gl-border);
    border-radius: 6px;
    font-size: 14px;
}
.pagination .current {
    background: var(--gl-text);
    color: white;
    border-color: var(--gl-text);
}

/* ===== WordPress defaults ===== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gl-text-light); padding: 6px 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
