/* Kwiat Lawendy — style.css
   WordPress theme Eowyn recreation
   Fonts: Playfair Display (headings), Lato (body)
   Accent: lavender purple #8e7cc3 */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    background: #fff;
}

a { color: #8e7cc3; text-decoration: none; transition: color .2s; }
a:hover { color: #6d5ba3; }

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

h1, h2, h3, h4, h5, h6,
.fn, .fn a, span.category {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #333;
}

h1 { font-size: 28px; line-height: 1.3; margin-bottom: 15px; }
h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }

p { margin-bottom: 1.2em; }
ul, ol { margin-bottom: 1.2em; padding-left: 1.8em; }
li { margin-bottom: 0.4em; }

blockquote {
    border-left: 3px solid #8e7cc3;
    padding: 10px 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: #666;
}

/* === TOP BAR (NAVBAR) === */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 50px;
    display: flex;
    align-items: center;
}

#top-bar .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.top-menu { text-align: center; }

.top-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.top-menu ul li a {
    display: block;
    padding: 14px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #333;
    transition: color .2s;
}

.top-menu ul li a:hover {
    color: #8e7cc3;
}

/* Backlink menu item */
.menu-item-backlink a {
    color: #8e7cc3 !important;
}

/* === HEADER (LOGO) === */
header {
    margin-top: 50px;
    padding: 40px 0 30px;
    text-align: center;
}

header .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#logo img {
    max-width: 500px;
    margin: 0 auto;
}

#logo h1 a {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #333;
    text-decoration: none;
}

/* === CONTENT === */
#content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* === BLOG GRID (HOMEPAGE) === */
#blogposts {
    display: block;
}

#bricks-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#bricks-sidebar article:first-child {
    grid-column: 1 / -1;
}

#bricks-sidebar article {
    background: #fff;
}

#bricks-sidebar article .picture img {
    width: 100%;
    height: auto;
    display: block;
}

.post-header {
    padding: 15px 0 5px;
}

.post-header .category {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8e7cc3;
}

.post-header .category a {
    color: #8e7cc3;
}

.post-header .title {
    font-size: 20px;
    margin: 8px 0 5px;
}

.post-header .title a {
    color: #333;
}

.post-header .title a:hover {
    color: #8e7cc3;
}

#bricks-sidebar article:first-child .post-header .title {
    font-size: 28px;
}

.meta {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.thecontent {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.thecontent p {
    margin-bottom: 1em;
}

.read-more a {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8e7cc3;
    border: 1px solid #8e7cc3;
    padding: 8px 20px;
    margin-top: 10px;
    transition: all .2s;
}

.read-more a:hover {
    background: #8e7cc3;
    color: #fff;
}

/* === SINGLE POST === */
.single article,
.page article {
    max-width: 750px;
    margin: 0 auto;
}

.single .post-header .title,
.page .post-header .title {
    font-size: 28px;
}

.single .thecontent img,
.page .thecontent img {
    margin: 1.5em auto;
}

.single .thecontent h3 {
    margin-top: 1.5em;
}

/* Post bottom (after content) */
.post-bottom {
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* Navigation between posts */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

/* === SIDEBAR === */
#sidebar {
    padding-left: 30px;
}

#sidebar .widget {
    margin-bottom: 30px;
}

#sidebar .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#sidebar a { color: #666; }
#sidebar a:hover { color: #8e7cc3; }

#sidebar ul { list-style: none; padding: 0; }
#sidebar ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* About widget with photo */
.widget .textwidget img {
    max-width: 100%;
    margin-bottom: 15px;
}

/* === CATEGORY / ARCHIVE PAGES === */
.archive .post-header .title { font-size: 18px; }

.archive #bricks-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

/* Pagination */
.pagination-num {
    text-align: center;
    padding: 30px 0;
}

.pagination-num .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #eee;
    color: #666;
    font-size: 13px;
}

.pagination-num .current {
    background: #8e7cc3;
    color: #fff;
    border-color: #8e7cc3;
}

/* === FOOTER === */
footer {
    background: #333;
    color: #aaa;
    padding: 30px 0;
    margin-top: 40px;
}

#footer-bottom {
    text-align: center;
}

#footer-bottom .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 13px;
    color: #888;
}

.copyright a { color: #ccc; }
.copyright a:hover { color: #fff; }

#footer-bottom a { color: #ccc; }
#footer-bottom a:hover { color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #top-bar { position: relative; height: auto; padding: 10px 0; }
    header { margin-top: 0; padding: 20px 0; }

    .top-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .top-menu ul li a {
        padding: 8px 10px;
        font-size: 11px;
    }

    #bricks-sidebar {
        grid-template-columns: 1fr;
    }

    #logo img { max-width: 300px; }

    .single article, .page article { max-width: 100%; }

    #sidebar { padding-left: 0; margin-top: 30px; }

    h1 { font-size: 22px; }
    .post-header .title { font-size: 18px; }
    #bricks-sidebar article:first-child .post-header .title { font-size: 22px; }
}

@media (max-width: 480px) {
    .top-menu ul li a {
        padding: 6px 8px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    #logo img { max-width: 220px; }
}

/* === IMAGE PLACEHOLDERS === */
img[src$=".svg"] {
    background: #f5f0ff;
    border: 1px dashed #d4c8ef;
}

/* === MISC === */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }

.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption-text { font-size: 12px; color: #999; font-style: italic; text-align: center; padding: 5px 0; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* Separator after featured post */
#bricks-sidebar article:first-child::after,
.single article::after,
.page-template-default article::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8e7cc3;
    margin: 20px auto 0;
}

/* Remove border-menu styling (hamburger removed) */
.border-menu { display: none; }

/* Owl carousel dots (if visible) */
.owl-theme .owl-dots .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #8e7cc3;
    border-radius: 50%;
    margin: 0 4px;
    border: 2px solid #8e7cc3;
}

.owl-theme .owl-dots .owl-dot.active {
    background: #6d5ba3;
}

/* Input & button */
input[type="submit"], button {
    background: #8e7cc3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}

input[type="submit"]:hover, button:hover {
    background: #6d5ba3;
}

/* Font Awesome placeholder (icons won't load without FA) */
.fa { display: none; }
