/*
Theme Name: Image Size Reducer
Theme URI: https://imagesizereducer.online/
Author: Your Name
Author URI: https://imagesizereducer.online/
Description: Custom lightweight theme for Image Size Reducer — a suite of free browser-based image tools. Built for speed, SEO, and Lucide icons.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: isr
Tags: custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==== PASTE YOUR ENTIRE CSS FROM THE HOMEPAGE <style> BLOCK HERE ==== */
/* (the block starting with :root{--primary:#ff3b30;...} through the media queries) */

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero {
    padding: 70px 0 40px;
    background: radial-gradient(ellipse at 50% 0%, #ffe7e2 0, transparent 55%), linear-gradient(180deg, #fff 0%, #fff8f7 100%);
}
.post-cat-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.post-cat-badge:hover { background: var(--primary); color: #fff; }
.post-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.8px;
    margin: 0 0 18px;
}
.post-lead {
    font-size: 17px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.post-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.post-meta-item i { width: 15px; height: 15px; color: var(--primary); }
.post-meta-item a { color: var(--muted); }
.post-meta-item a:hover { color: var(--primary); }

/* Featured image */
.post-featured { padding: 10px 0 30px; }
.post-featured-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px #13234015;
    border: 8px solid #fff;
}
.post-featured-img { width: 100%; height: auto; display: block; }

/* Post body */
.single-post-content { font-size: 16px; line-height: 1.8; color: #2a3547; }
.post-body h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 42px 0 16px;
    color: var(--navy);
}
.post-body h3 {
    font-size: 21px;
    font-weight: 800;
    margin: 32px 0 12px;
    color: var(--navy);
}
.post-body h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 26px 0 10px;
}
.post-body p { margin: 0 0 20px; color: #3d4a5f; }
.post-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.post-body a:hover { color: var(--primary-dark); }
.post-body ul,
.post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; color: #3d4a5f; }
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0 24px;
}
.post-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--navy);
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code {
    background: #f3f5f8;
    color: var(--primary-dark);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
}
.post-body pre {
    background: #10213f;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.6;
}
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.post-body th,
.post-body td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.post-body th { background: var(--soft); font-weight: 700; }

.post-pages { margin: 24px 0; text-align: center; font-weight: 700; }
.post-pages a { margin: 0 4px; }

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.post-tags i { width: 16px; height: 16px; color: var(--primary); }
.post-tags a {
    display: inline-block;
    background: var(--soft);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: .2s;
}
.post-tags a:hover { background: var(--primary); color: #fff; }

/* Share */
.post-share {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 22px;
    background: var(--soft);
    border-radius: 12px;
}
.share-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.share-buttons { display: flex; gap: 8px; }
.share-buttons a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--navy);
    transition: .2s;
}
.share-buttons a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.share-buttons i { width: 16px; height: 16px; }

/* Author Box */
.author-box {
    margin-top: 40px;
    padding: 26px;
    background: linear-gradient(145deg, #fff0ee, #fff8f6);
    border: 1px solid #ffe0db;
    border-radius: 16px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.author-avatar { flex-shrink: 0; }
.author-img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 14px #13234015; }
.author-info h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.author-info p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Post Navigation */
.post-nav {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.post-nav-item {
    display: block;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: .2s;
}
.post-nav-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.post-nav-item.next { text-align: right; }
.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}
.post-nav-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.4; }

/* Comments */
.post-comments { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.post-comments h2, .post-comments h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .comment { padding: 20px; background: var(--soft); border-radius: 12px; margin-bottom: 16px; }
.comment-list .comment-body p { margin: 8px 0; font-size: 14px; color: #3d4a5f; }
.comment-list .avatar { border-radius: 50%; }
.comment-form label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 14px;
    transition: .2s;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #ff3b3014;
}
.comment-form .submit {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 11px 22px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}
.comment-form .submit:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Sidebar */
.post-sidebar { position: sticky; top: 90px; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}
.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.sidebar-card .btn-sm { font-size: 12px; padding: 9px 16px; }

.sidebar-cta { background: linear-gradient(145deg, #fff0ee, #fff8f6); border-color: #ffe0db; }
.sidebar-cta h3 { border-bottom-color: #ffe0db; }

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 6px; }
.toc-list a {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    padding: 6px 0;
    transition: .2s;
    line-height: 1.4;
}
.toc-list a:hover { color: var(--primary); padding-left: 4px; }
.toc-list a.h3 { padding-left: 14px; font-size: 12px; }
.toc-list .toc-empty { font-size: 12px; color: var(--muted); font-style: italic; }

.sidebar-posts { list-style: none; padding: 0; margin: 0; }
.sidebar-posts li { margin-bottom: 12px; }
.sidebar-posts a { display: flex; gap: 10px; align-items: center; transition: .2s; }
.sidebar-posts a:hover .sidebar-post-title { color: var(--primary); }
.sidebar-thumb {
    width: 50px; height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-thumb.placeholder {
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
}
.sidebar-post-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    transition: .2s;
}

/* Related posts section */
.blog-card-thumb { display: block; overflow: hidden; height: 170px; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }

/* Responsive */
@media (max-width: 991px) {
    .post-hero { padding: 40px 0 30px; }
    .post-title { letter-spacing: -1px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.next { text-align: left; }
    .post-share { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
    .post-hero { padding: 28px 0 24px; }
    .post-lead { font-size: 15px; }
    .author-box { flex-direction: column; text-align: center; }
    .post-body h2 { font-size: 23px; }
    .post-body h3 { font-size: 19px; }
}
