/*
 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
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header with Single Image */
header {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Overlay Text with Smoother Typewriter Animation */
.header-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.typewriter {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
    border-right: .15em solid white;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 5s steps(15, end), blink-caret 1s step-end infinite;
    will-change: width;
}

.typewriter-subtitle {
    font-size: 1.2em;
    opacity: 0;
    animation: fadeIn 1s ease-in 5s forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Main Layout with Creative Grid */
.main-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Enhanced Sidebar with Icons - Sticky */
.sidebar {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    animation: slideInLeft 1s ease-out;
    will-change: transform, opacity;
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo a{
    text-decoration: none;
}

.logo h1 {
    color: #ff6b6b;
    font-size: 28px;
    font-weight: 700;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.search {
    margin-bottom: 30px;
    position: relative;
}

.search input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.search input:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 10px rgba(255,107,107,0.3);
}

.search::after {
    content: '🔍';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.categories {
    margin-bottom: 30px;
}

.categories h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    position: relative;
}

.categories h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #4ecdc4;
}

.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.categories a::before {
    content: '•';
    margin-right: 10px;
    color: #ff6b6b;
    font-size: 20px;
    transition: transform 0.3s;
}

.categories a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.categories a:hover::before {
    transform: scale(1.5);
}

.subscribe {
    text-align: center;
}

.subscribe h3 {
    margin-bottom: 15px;
    color: #333;
}

.subscribe input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
    transition: border-color 0.3s;
}

.subscribe button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscribe button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.subscribe button:hover::before {
    left: 100%;
}

.subscribe button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

/* Content Cards with Optimized Animations */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    animation: slideInUp 1s ease-out;
    will-change: transform, opacity;
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    position: relative;
}

.card h2 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.card:hover h2 {
    color: #ff6b6b;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.card .read-more {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.card .read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
}

.card:hover .read-more::after {
    transform: translateX(5px);
}

/* Latest Posts with Unique Design */
.latest {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    animation: slideInRight 1s ease-out;
    will-change: transform, opacity;
    height: fit-content;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.latest h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    position: relative;
}

.latest h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #45b7d1, #96ceb4);
}

.latest ul {
    list-style: none;
}

.latest li {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, background;
}

.latest li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ff6b6b;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.latest li:hover::before {
    transform: scaleY(1);
}

.latest li:hover {
    background: rgba(255,107,107,0.1);
    transform: translateX(5px);
}

.latest a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding-left: 10px;
}

.latest a:hover {
    color: #ff6b6b;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ff6b6b;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest, .sidebar {
        order: 2;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    header {
        height: 300px;
    }

    .typewriter {
        font-size: 2em;
    }

    .typewriter-subtitle {
        font-size: 1em;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Single page */
.main-container:has(.content-single) {
    grid-template-columns: 1fr 250px;
    gap: 30px;
}

.content-single {
    max-width: none;
}

.post-single {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    padding: 40px;
}

.post-title {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9em;
}

.post-body {
    line-height: 1.8;
}

/* Gutenberg Block Styles */
.wp-block-paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.wp-block-heading {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.wp-block-heading.is-style-large {
    font-size: 2.5em;
    color: #ff6b6b;
}

.wp-block-quote {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2em;
    color: #333;
}

.wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: normal;
}

.wp-block-list {
    margin: 20px 0;
    padding-left: 20px;
}

.wp-block-list ul,
.wp-block-list ol {
    list-style-position: inside;
    margin-bottom: 15px;
}

.wp-block-list li {
    margin-bottom: 10px;
    color: #555;
}

.wp-block-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wp-block-image figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.wp-block-gallery .blocks-gallery-item img {
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.wp-block-column {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}

.wp-block-media-text .wp-block-media-text__media img {
    border-radius: 15px;
    height: 300px;
    object-fit: cover;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 20px;
}

.wp-block-pullquote {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    padding: 40px;
    margin: 30px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
}

.wp-block-pullquote cite {
    display: block;
    margin-top: 20px;
    font-size: 1em;
    opacity: 0.9;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wp-block-table th,
.wp-block-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wp-block-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.wp-block-separator {
    border: none;
    border-top: 2px solid #4ecdc4;
    margin: 40px 0;
    height: 1px;
}

.wp-block-separator.is-style-wide {
    border-top-width: 4px;
}

.wp-block-code {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #ff6b6b;
}

.wp-block-verse {
    background: rgba(78, 205, 196, 0.1);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-left: 4px solid #4ecdc4;
}

.wp-block-archives,
.wp-block-categories,
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
}

.wp-block-archives li,
.wp-block-categories li,
.wp-block-latest-posts li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.wp-block-archives a,
.wp-block-categories a,
.wp-block-latest-posts a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.wp-block-archives a:hover,
.wp-block-categories a:hover,
.wp-block-latest-posts a:hover {
    color: #ff6b6b;
}

.wp-block-tag-cloud a {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 15px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    font-size: 0.9em;
}

.wp-block-tag-cloud a:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

/* Responsive for Gutenberg */
@media (max-width: 768px) {
    .wp-block-media-text {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 2em;
    }
    
    .wp-block-pullquote {
        padding: 20px;
        font-size: 1.2em;
    }
}

.breadcrumbs {
    grid-column: 1 / -1;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #ff6b6b;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ff6b6b;
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-list {
        gap: 5px;
        font-size: 0.8em;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 5px;
    }
}