/* ==========================================================================
   MAUBON ID — Main Stylesheet
   ========================================================================== */

/* CSS Variables ----------------------------------------------------------- */
:root {
    --primary: #6b1abb;
    --primary-dark: #4c1d95;
    --primary-light: #9333ea;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-alt: #f8f7fb;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(107,26,187,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
    --gap: 24px;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-heading: 'Catamaran', 'Open Sans', Helvetica, Arial, sans-serif;
}

/* Reset & Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--text);
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 16px; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 20px; }

blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    background: var(--bg-alt);
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

code, pre {
    font-family: 'Courier New', monospace;
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
}
pre { padding: 16px; overflow-x: auto; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button, input[type="submit"], input[type="button"], .button {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background .2s, transform .2s;
    display: inline-block;
    text-decoration: none;
}
button:hover, input[type="submit"]:hover, .button:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Layout Container -------------------------------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

/* Header ------------------------------------------------------------------ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo img { max-height: 60px; width: auto; }
.site-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}
.site-title a { color: var(--text); }
.site-description {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0 0;
    letter-spacing: .5px;
}

/* Main Navigation --------------------------------------------------------- */
.main-navigation { display: flex; align-items: center; gap: 8px; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation li a {
    color: var(--text);
    padding: 10px 14px;
    display: block;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.main-navigation li a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Submenu */
.main-navigation li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    flex-direction: column;
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s;
}
.main-navigation li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation li ul li a { padding: 8px 12px; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    color: var(--text);
    padding: 8px;
    border: 1px solid var(--border);
}
.menu-toggle:hover { background: var(--bg-alt); color: var(--text); }
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: transform .2s;
}

/* Search toggle */
.search-toggle {
    background: transparent;
    color: var(--text);
    padding: 8px 12px;
    border: 1px solid var(--border);
    font-size: 14px;
}
.search-toggle:hover { background: var(--bg-alt); color: var(--primary); }

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-overlay.is-open { display: flex; }
.search-overlay__inner { width: 100%; max-width: 600px; }
.search-overlay input[type="search"] {
    background: transparent;
    border: 0;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    color: #fff;
    font-size: 28px;
    padding: 12px 0;
}
.search-overlay input[type="search"]::placeholder { color: rgba(255,255,255,.5); }
.search-overlay .close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #fff;
    font-size: 32px;
    border: 0;
    padding: 8px;
}

/* Hero Section ------------------------------------------------------------ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 30px 30px;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 16px;
}
.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: .95;
}
.hero .button {
    background: #fff;
    color: var(--primary);
    padding: 14px 32px;
    font-size: 16px;
}
.hero .button:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* Featured Slider --------------------------------------------------------- */
.featured-slider {
    background: var(--bg-alt);
    padding: 50px 0;
}
.featured-slider__title {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}
.featured-slider__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.slider-track {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--gap);
    height: 500px;
}
.slider-track > .slide:nth-child(1) { grid-row: span 2; }

.slide {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--text);
    transition: transform .3s;
}
.slide:hover { transform: translateY(-4px); }
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.slide:hover img { transform: scale(1.05); }
.slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}
.slide__content { color: #fff; }
.slide__cat {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.slide__title {
    color: #fff;
    font-size: 22px;
    margin: 0;
}
.slider-track > .slide:not(:first-child) .slide__title { font-size: 16px; }
.slide__title a { color: #fff; }
.slide__title a:hover { color: rgba(255,255,255,.8); }

/* Main Content ------------------------------------------------------------ */
.site-main { padding: 50px 0; }
.with-sidebar .container > .row { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }

/* Masonry Grid (3 columns) ------------------------------------------------ */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
.masonry-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.masonry-grid.cols-1 { grid-template-columns: 1fr; }

.post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card__thumb { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.post-card__thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.post-card__cat a { color: var(--primary); }
.post-card__title {
    font-size: 18px;
    margin: 0 0 12px;
    line-height: 1.4;
}
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 16px;
    flex: 1;
}
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}
.post-card__meta a { color: var(--text-muted); }
.post-card__meta a:hover { color: var(--primary); }

/* Single Article ---------------------------------------------------------- */
.single-article { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.single-article .entry-header { margin-bottom: 24px; text-align: center; }
.single-article .entry-title { font-size: 36px; margin-bottom: 12px; }
.single-article .entry-meta { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.single-article .entry-meta a { color: var(--text-light); }
.single-article .entry-meta a:hover { color: var(--primary); }
.single-article .entry-meta > span { margin-right: 12px; }
.single-article .entry-meta > span::after { content: "•"; margin-left: 12px; color: var(--border); }
.single-article .entry-meta > span:last-child::after { display: none; }

.single-article .entry-thumbnail { margin: -40px -40px 32px; }
.single-article .entry-thumbnail img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.single-article .entry-content { font-size: 17px; line-height: 1.8; }
.single-article .entry-content h2 { margin-top: 32px; }
.single-article .entry-content img { border-radius: var(--radius); margin: 16px 0; }

.entry-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.entry-footer .tags-links a {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 12px;
}
.entry-footer .tags-links a:hover { background: var(--primary); color: #fff; }

/* Page Header (archive/search) ------------------------------------------- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border-light);
}
.page-title { font-size: 36px; margin: 0 0 8px; }
.page-title span { color: var(--primary); }
.archive-description { color: var(--text-light); }

/* Sidebar ----------------------------------------------------------------- */
.widget-area .widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--primary); }

.tagcloud a {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    margin: 2px;
    font-size: 12px !important;
}
.tagcloud a:hover { background: var(--primary); color: #fff; }

/* Pagination -------------------------------------------------------------- */
.pagination, .navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}
.pagination .page-numbers, .navigation.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 600;
    transition: all .2s;
}
.pagination .page-numbers:hover, .navigation.pagination .page-numbers:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.pagination .page-numbers.current, .navigation.pagination .page-numbers.current {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

.post-navigation {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.post-navigation .nav-links { display: contents; }
.post-navigation a {
    display: block;
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: var(--radius);
    color: var(--text);
    transition: background .2s;
}
.post-navigation a:hover { background: var(--primary); color: #fff; }
.post-navigation .nav-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
}
.post-navigation a:hover .nav-subtitle { color: #fff; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-title { font-weight: 700; }

/* Comments ---------------------------------------------------------------- */
.comments-area {
    margin-top: 40px;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.comments-title, .comment-reply-title { font-size: 22px; margin: 0 0 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.comment-list .comment:last-child { border-bottom: 0; }
.comment-meta { margin-bottom: 8px; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-form input, .comment-form textarea { margin-bottom: 12px; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
    margin-top: 60px;
}
.site-footer__widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}
.site-footer .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.site-footer .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.2);
}
.site-footer .widget ul li {
    border-bottom-color: rgba(255,255,255,.1);
}
.site-footer .widget ul li a { color: rgba(255,255,255,.7); }
.site-footer .widget ul li a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.7); margin: 0 0 8px; }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}
.site-footer__bottom a { color: rgba(255,255,255,.9); }

/* Back to top ------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    border: 0;
}
.back-to-top.is-visible { display: flex; }
.back-to-top:hover { background: var(--primary-dark); color: #fff; }

/* No Results -------------------------------------------------------------- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* WordPress core classes -------------------------------------------------- */
.alignleft  { float: left; margin: 4px 20px 16px 0; }
.alignright { float: right; margin: 4px 0 16px 20px; }
.aligncenter { display: block; margin: 16px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-light); text-align: center; padding-top: 8px; }
.sticky { /* placeholder for WP theme review */ }
.gallery-caption { /* placeholder */ }
.bypostauthor { /* placeholder */ }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 991px) {
    h1 { font-size: 30px; } h2 { font-size: 26px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 36px; }
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-track { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
    .slider-track > .slide:nth-child(1) { grid-row: span 1; grid-column: span 2; aspect-ratio: 16/9; }
    .slider-track > .slide:not(:first-child) { aspect-ratio: 4/3; }
    .with-sidebar .container > .row { grid-template-columns: 1fr; }
    .site-footer__widgets { grid-template-columns: repeat(2, 1fr); }
    .single-article { padding: 24px; }
    .single-article .entry-thumbnail { margin: -24px -24px 24px; }
}

@media (max-width: 767px) {
    .site-header__inner { flex-wrap: wrap; }
    .main-navigation { display: none; order: 3; width: 100%; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; padding: 12px 0; gap: 0; }
    .main-navigation li ul { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding-left: 16px; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .masonry-grid { grid-template-columns: 1fr; }
    .slider-track { grid-template-columns: 1fr; }
    .slider-track > .slide:nth-child(1) { grid-column: span 1; }
    .site-footer__widgets { grid-template-columns: 1fr; gap: 32px; }
    .post-navigation { grid-template-columns: 1fr; }
    .single-article .entry-title { font-size: 26px; }
    .page-title { font-size: 26px; }
    .single-article { padding: 20px; }
    .single-article .entry-thumbnail { margin: -20px -20px 20px; }
}
