/* ========================================
   LiFE ZAKK Note Style - Custom CSS
   note.com inspired minimal design
   ======================================== */

/* === Global === */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Header === */
.wp-block-site-title a {
    text-decoration: none !important;
}

/* === Article Page (Single) === */

/* Featured image */
.single .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Post title */
.single .wp-block-post-title {
    letter-spacing: 0.02em;
}

/* Author avatar in sidebar */
.single .wp-block-post-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.single .wp-block-post-author__avatar img {
    border-radius: 50%;
}

/* Post content styling */
.single .wp-block-post-content p {
    margin-bottom: 1.8em;
    line-height: 2.0;
}

.single .wp-block-post-content h2 {
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 2px solid var(--wp--preset--color--primary, #1A5487);
}

.single .wp-block-post-content h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    padding-bottom: 0.3em;
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 2px solid var(--wp--preset--color--primary, #1A5487);
}

.single .wp-block-post-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    padding-left: 0.8em;
    font-size: 1rem;
    font-weight: 700;
    border-left: 3px solid var(--wp--preset--color--secondary, #1FA6E0);
}

.single .wp-block-post-content img {
    border-radius: 4px;
}

.single .wp-block-post-content blockquote {
    border-left: 3px solid var(--wp--preset--color--border, #e5e7eb);
    padding-left: 1.2em;
    color: var(--wp--preset--color--muted, #6b7280);
    font-style: normal;
}

/* === Index / Archive Page === */

/* Card hover effect */
.wp-block-post-template .wp-block-group:hover .wp-block-post-title a {
    color: var(--wp--preset--color--primary, #1A5487) !important;
}

.wp-block-post-template .wp-block-post-featured-image img {
    transition: opacity 0.2s ease;
}

.wp-block-post-template .wp-block-group:hover .wp-block-post-featured-image img {
    opacity: 0.85;
}

/* === Ad Zones === */
.lifezakk-ad {
    text-align: center;
    margin: 0 auto;
    clear: both;
}

.lifezakk-ad--header {
    padding: 12px 0;
    background: var(--wp--preset--color--surface, #f5f5f5);
    border-bottom: 1px solid var(--wp--preset--color--border, #e5e7eb);
}

.lifezakk-ad--article-bottom {
    margin-top: 40px;
    padding: 24px 0;
}

.lifezakk-ad--inarticle {
    margin: 32px 0;
    padding: 16px 0;
}

.lifezakk-ad--mobile-bottom {
    display: none;
}

/* === Responsive === */

/* Tablet */
@media (max-width: 1024px) {
    .single .wp-block-columns {
        flex-direction: column !important;
    }

    .single .wp-block-columns > .wp-block-column:first-child {
        flex-basis: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Sidebar becomes horizontal bar on tablet */
    .single .wp-block-columns > .wp-block-column:first-child .wp-block-group {
        position: static !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--wp--preset--color--border, #e5e7eb);
    }

    .single .wp-block-post-author {
        flex-direction: row !important;
        align-items: center !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .single .wp-block-post-title {
        font-size: 1.5rem !important;
    }

    .single .wp-block-post-content p {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .lifezakk-ad--mobile-bottom {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        padding: 8px 0;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }

    /* Index list: stack vertically on mobile */
    .wp-block-post-template .wp-block-columns {
        flex-direction: column-reverse !important;
    }

    .wp-block-post-template .wp-block-columns > .wp-block-column {
        flex-basis: auto !important;
        width: 100% !important;
    }
}

/* === Navigation === */
.wp-block-navigation a {
    text-decoration: none !important;
}

.wp-block-navigation a:hover {
    color: var(--wp--preset--color--primary, #1A5487) !important;
}

/* === Search === */
.wp-block-search__input {
    border: 1px solid var(--wp--preset--color--border, #e5e7eb) !important;
    background: var(--wp--preset--color--surface, #f5f5f5) !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

/* === Comments === */
.wp-block-comments .wp-block-avatar img {
    border-radius: 50%;
}

/* === Pagination === */
.wp-block-query-pagination {
    gap: 8px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* === Utility: description class from old theme === */
.description {
    display: block;
    margin-top: 10px;
}