/*
 Theme Name: PlateCalibrate Blog
 Theme URI: https://platecalibrate.com/
 Author: Volodymyr Prokopiv
 Description: Custom blog theme matching the PlateCalibrate landing page style.
 Version: 1.0
 License: GNU General Public License v2 or later
 Text Domain: platecalibrate-blog
*/

:root {
    --yellow: #ffb938;
    --yellow-deep: #f59e0b;
    --accent: #f97316;
    --card-radius: 26px;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-dashed: #e5e7eb;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #000;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("plate-bg.jpg");
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.42)
    );
}

.hero-inner {
    width: 100%;
    max-width: 1240px;
}

/* HEADER */

.site-header {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    border: 4px solid #ffffff;
    background: #FF6B35;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.brand-icon svg {
    width: 56px;
    height: 56px;
    display: block;
}

.brand-title {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #f9fafb;
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    margin-top: 4px;
    width: fit-content;
    max-width: 100%;
}

.site-nav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background: rgba(15, 23, 42, 0.85);
    color: #f9fafb;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.5);
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease, background 0.1s ease;
}

.nav-link:hover,
.nav-link:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
    opacity: 0.95;
}

.nav-link--active,
.current-menu-item > a.nav-link {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    box-shadow: 0 14px 30px rgba(248, 180, 64, 0.6);
}

/* CARDS */

.cards-row {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.card {
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.4);
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
}

.card--blog-list {
    width: 100%;
    max-width: 900px;
}

.card--blog-single {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.card-header-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* BLOG LIST */

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-post {
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-post-title a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.blog-post-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

.blog-post-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
}

.blog-post-readmore {
    margin-top: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--accent);
}

/* SINGLE POST */

.single-post-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.single-post-meta {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

.single-post-content {
    font-size: 0.95rem;
    color: #111827;
    line-height: 1.6;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}

.single-post-content p {
    margin-bottom: 12px;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 14px 20px;
}

/* FOOTER */

.site-footer {
    margin-top: 36px;
    padding: 14px 0 10px;
    color: #e5e7eb;
    font-size: 0.8rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 6px;
}

.footer-links a {
    color: #e5e7eb;
    opacity: 0.9;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    opacity: 0.9;
    margin-bottom: 4px;
}

.footer-legal {
    opacity: 0.75;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .cards-row {
        margin-top: 30px;
    }

    .card {
        padding: 20px 18px 22px;
    }

    .brand-title {
        font-size: clamp(2rem, 5.5vw, 2.6rem);
    }

    .brand-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 18px 14px 24px;
    }

    .hero-subtitle {
        width: 100%;
        max-width: 100%;
    }

    .brand-row {
        flex-wrap: wrap;
    }

    .brand-icon {
        width: 64px;
        height: 64px;
    }

    .brand-title {
        font-size: 1.9rem;
        line-height: 1.1;
    }
}
