/*
 Theme Name: PureBlog One
 Theme URI: https://webuilders.dev
 Author: Webuilders Team
 Author URI: https://webuilders.dev
 Description: A clean and lightweight WordPress blog theme built for speed and simplicity. PureBlog is perfect for personal blogs, lifestyle journals, and content-focused websites. It comes with a built-in newsletter subscribe form (Mailchimp ready) and a simple contact form that delivers messages directly to the admin email using wp_mail(). No plugins required — just fast, modern, and easy to use.
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, personal blog, lifestyle, minimal, clean, responsive, fast, lightweight, seo friendly, newsletter, contact form, no plugins
 Text Domain: pureblog-one
*/

/* Base Styles */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

#main{
    padding: 50px 20px;
}

/* Hamburger icon animation for single-path SVG */
#mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

#mobile-menu-toggle svg.hamburger-active {
    transform: rotate(90deg);
}

#mobile-menu-toggle svg.hamburger-active path {
    stroke: currentColor;
    transform: scale(1);
    transition: all 0.3s ease;
}

#mobile-menu-toggle svg.hamburger-active path {
    d: path("M6 6L18 18M6 18L18 6");
}

main {
    min-height: calc(100vh - 200px);
}

.flex{
    display: flex;
}

.flex-row{
    flex-flow: row wrap;
}

.flex-column{
    flex-flow: column;
}

.align-center{
    align-items: center;
}

.justify-center{
    justify-content: center;
}

img{
    max-width: 100%;
}

a{
    text-decoration: none;
}

.col-66{
    width: 66.66%;
    padding: 15px;
}

.col-60{
    width: 60%;
    padding: 15px;
}

.col-50{
    width: 50%;
    padding: 15px;
}

.col-40{
    width: 40%;
    padding: 15px;
}

.col-30{
    width: 33.33%;
    padding: 15px;
}

.col-wrapper{
    display: flex;
    flex-flow: row wrap;
    margin: 0 -15px;
    width: -webkit-fill-available;
    width: -moz-available;
    width: stretch;
}

.button{
    display: flex;
}

.button svg{
    opacity: 0;
    visibility: hidden;
    width: 0;
    transition: all 0.5s ease;
}

.button:hover svg{
    width: 23px;
    opacity: 1;
    visibility: visible;
    margin-right: 5px;
}

.desktop-hidden{
    display: none;
}

section{
    margin-bottom: 40px;
}

.section-title{
    margin-bottom: 10px;
}

.section-description{
    max-width: 600px;
    width: 100%;
    margin-bottom: 10px;
}

#posts-pagination{
    margin: 30px 0px;
}

/* Header */
header.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
}

header.site-header .topbar{
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}

header.site-header .topbar .topbar-right{
    margin-left: auto;
}

header.site-header .topbar .header-icon{
    background: transparent;
    border: none;
    color: inherit;
    margin-left: 10px;
    cursor: pointer;
}

header.site-header .search-panel{
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 0;
}

/* Navbar */
header.site-header .navbar{
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

body.dark-mode header.site-header .navbar{
    background: rgba(18,18,18,0.85);
    border-color: rgba(255,255,255,0.08);
}

header.site-header .navbar .logo{
    font-size: 26px;
    text-decoration: none;
}

header.site-header .navbar .main-nav .nav-list{
    list-style: none;
}

header.site-header .navbar .main-nav .nav-list li{
    padding: 15px 18px;
    position: relative;
}

header.site-header .navbar .main-nav .nav-list li a{
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Pure CSS per-link underline */
header.site-header .navbar .main-nav .nav-list li a:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

header.site-header .navbar .main-nav .nav-list li a:hover:after,
header.site-header .navbar .main-nav .nav-list li.current-menu-item > a:after,
header.site-header .navbar .main-nav .nav-list li.current_page_item > a:after{
    transform: scaleX(1);
}

/* Global dark mode base */
body.dark-mode{
    background: #0f0f10;
    color: #e9e9ea;
}

body.dark-mode a{ color: #d0d6ff; }

/* Accent gradient bar for creativity */
header.site-header .navbar:before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, #ff6a00, #ee0979, #7f53ac, #2ebf91);
    background-size: 300% 100%;
    animation: header-accent 8s ease infinite;
}

@keyframes header-accent{
    0%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
    100%{ background-position: 0% 50%; }
}

/* Shrink on scroll */
.header-shrink .navbar{
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Post */
.post-item h2{
    padding: 10px 0px;
}

.post-item h2 a{
    text-decoration: none;
}

.post-item .post-content{
    padding: 10px 0px;
}

.post-item .category-date{
    font-size: 14px;
}

.post-item .avatar img{
    border-radius: 50%;
    margin-right: 10px;
}

.post-item .avatar span{
    font-size: 14px;
}

.post-item a img{
    width: 100%;
    object-fit: cover;
}

.posts-grid .post-item h3 a{
    text-decoration: none;
}

.posts-grid .post-item h3{
    padding: 10px 0px;
}

.posts-grid .post-item .post-content{
    font-size: 14px;
}

.posts-grid .post-item .button{
    font-size: 14px;
    margin-top: auto;
}

.post-content-wrapper{
    border: 1px solid #d7d7d7;
    padding: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    height: 100%;
    display: flex;
    flex-flow: column;
}

.posts-grid .thumb{
    display: flex;
}

.posts-grid .thumb img{
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.posts-grid article{
    height: 100%;
}

/* Form Styles */
select,
form input,
form textarea {
    height: 43px;
    border: 1px solid #d7d7d7;
    padding: 0px 15px;
    border-radius: 5px;
    width: 100%;
    background: transparent;
}

form input[type="submit"],
form button {
    border-radius: 5px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* newsletter */

.newsletter{
    text-align: center;
}

#newsletter-form{
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    position: relative;
}

#newsletter-form button{
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Filters */
.custom-filters{
    margin: 10px 0px;
}

.custom-filters .filter{
    position: relative;
    max-width: 250px;
    width: 100%;
}

.custom-filters .filter .search-posts{
    position: absolute;
    top: 50%;
    right: 4px;
    background: #fff;
    transform: translateY(-50%);
    padding: 5px;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: none;
}

.custom-filters .filter .search-posts:hover{
    opacity: 1;
}

.custom-filters .filter input{
    padding-right: 30px;
}

.custom-filters .filter:first-child{
    margin-right: 15px;
}

/* Footer */
.site-footer{
    padding: 20px 0px;
    margin-top: 100px;
    font-size: 14px;
}

.site-footer nav{
    margin-left: auto;
}

.site-footer nav ul{
    list-style: none;
    margin: 0 -10px;
}

.site-footer nav ul li{
    padding: 0 10px;
}

/* Single Page */
.single-post .feature_image img{
    max-height: 500px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.single-post .feature_image{
    margin: 20px 0px;
}

.single-post h1{
    line-height: normal;
    margin-bottom: 5px;
}

.single-post .content h4,
.single-post .content h3,
.single-post .content h2{
    margin-bottom: 10px;
    margin-top: 20px;
}

.single-post .content ul,
.single-post .content ol,
.single-post .content p{
    margin: 10px 0px;
}

.single-post .content ul,
.single-post .content ol{
    padding: revert;
}

.single-post .content ul li,
.single-post .content ol li{
    margin-bottom: 10px;
}

.single-post .related_post{
    border-bottom: 1px solid #d7d7d7;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.single-post .related_post:last-child{
    margin-bottom: 0;
}

.single-post .related_post a{
    font-weight: bold;
}

.single-post .related_post .date{
    font-size: 12px;
}

.single-post .sticky h3{
    margin-bottom: 10px;
}

.single-post .post-category-title{
    margin-top: 10px;
}

.single-post .share-title{
    margin-top: 10px;
}

.single-post .share-wrapper a{
    padding: 5px 20px;
    color: #fff;
    font-size: 14px;
}

.single-post .share-wrapper a:first-child{
    background: #1877F2;
}

.single-post .share-wrapper a:nth-child(2){
    background: #000000;
    margin: 0 10px;
}

.single-post .share-wrapper a:nth-child(3){
    background: #0077B5;
}

.post-navigation{
    margin-bottom: 50px;
}

.post-navigation div:nth-child(2){
    margin-left: auto;
}

/* Default Page */
.default_page h1{
    text-align: center;
    margin-bottom: 20px;
}

.default_page .content h2{
    margin-top: 20px;
    margin-bottom: 10px;
}

.default_page .content p{
    margin-bottom: 10px;
}

.default_page .content ol,
.default_page .content ul{
    padding: revert;
}

.default_page .content ol li,
.default_page .content ul li{
    margin-bottom: 10px;
}

/* Contact Page */
.contact-form #contact_message{
    min-height: 200px;
    padding: 15px;
}

.contact-form label{
    margin-bottom: 5px;
    display: block;
}

.contact-form form button{
    height: 43px;
    margin-top: 20px;
}

/* Mobile Menu */
#mobile-menu-toggle{
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: inherit;
}

#mobile-menu ul{
    list-style: none;
    display: flex;
    flex-flow: column;
    margin-top: 30px;
}

#mobile-menu ul li{
    margin-bottom: 10px;
}

/* Pagination */
.nav-links{
    text-align: center;
}

.nav-links .page-numbers{
    background: #000;
    display: inline-block;
    padding: 1px 10px;
    border-radius: 5px;
    color: #fff;
    border: 1px solid #000;
}

.nav-links .page-numbers.current{
    background: transparent;
    color: #000;
}

/* Alert */
.alert{
    display: inline-block;
    margin: 10px 0px;
    border-radius: 5px;
    color: #fff;
    padding: 10px 20px;
}

.alert.bg-green{
    background-color: rgb(3, 173, 3);
}

.alert.bg-red{
    background-color: red;
}

@media only screen and (max-width: 1180px){
    .small-desktop-col-100{
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .desktop-hidden{
        display: block;
    }
    .mobile-hidden{
        display: none;
    }
    #mobile-menu{
        display: none;
    }
    .tablet-col-50{
        width: 50%;
    }
    .tablet-col-100{
        width: 100%;
    }
    #main{
        padding: 25px 20px;
    }
    .site-footer nav{
        margin: 10px auto;
    }
    .site-footer .flex-row{
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }
}

@media only screen and (max-width: 480px){
    .mobile-col-100{
        width: 100%;
    }
    header.site-header{
        padding: 15px 0px;
    }
    h1{
        font-size: 26px;
    }
    h2{
        font-size: 22px;
    }
    h3{
        font-size: 18px;
    }
    .featured-post .col-wrapper a img{
        max-height: 300px;
        height: 100%;
    }
    .featured-post .col-wrapper .col-50:nth-child(2){
        padding-top: 0;
    }
    .custom-filters .filter:first-child{
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 376px){
    .site-footer{
        font-size: 12px;
    }
}