/*
Theme Name: Jojocu
Theme URI: https://jojocu.com
Author: Jojocu
Author URI: https://jojocu.com
Description: Jojocu.com Wordpress Teması
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
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: jojocu
*/
/* ============================
   CSS CUSTOM PROPERTIES
   ============================ */
:root {
    --jj-green: #3ea636;
    --jj-green-dark: #2d7a27;
    --jj-green-light: #4ec445;
    --jj-bg: #f4f6f8;
    --jj-surface: #ffffff;
    --jj-text: #2c3e50;
    --jj-text-light: #5a6c7d;
    --jj-text-muted: #8899a6;
    --jj-border: #e1e8ed;
    --jj-border-light: #eef2f5;
    --jj-nav-bg: #1a1f2e;
    --jj-nav-text: #e8ecf1;
    --jj-footer-bg: #1a1f2e;
    --jj-footer-text: #c5cdd6;
    --jj-footer-link: #8bc34a;
    --jj-footer-heading: #ffffff;
    --jj-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --jj-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --jj-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --jj-radius: 8px;
    --jj-radius-lg: 12px;
    --jj-transition: 0.25s ease;
    --jj-container: 1140px;
    --jj-sidebar-width: 320px;
    --jj-gap: 28px;
}
/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--jj-bg);
    color: var(--jj-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--jj-green);
    text-decoration: none;
    transition: color var(--jj-transition);
}
a:hover {
    color: var(--jj-green-dark);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--jj-text);
    line-height: 1.3;
    font-weight: 700;
}
ul, ol {
    list-style: none;
}
/* ============================
   CONTAINER
   ============================ */
.jj-container {
    max-width: var(--jj-container);
    margin: 0 auto;
    padding: 0 20px;
}
/* ============================
   HEADER & NAVIGATION
   ============================ */
.jj-header {
    background: var(--jj-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.jj-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
}
/* Site Logo / Title */
.jj-site-branding {
    flex-shrink: 0;
}
.jj-site-branding a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.jj-site-branding a span {
    color: var(--jj-green);
}
.jj-site-branding img,
.jj-site-branding .custom-logo {
    max-height: 40px;
    width: auto;
}
/* Desktop Navigation */
.jj-nav {
    display: flex;
    align-items: center;
}
.jj-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.jj-nav > ul > li {
    position: relative;
}
.jj-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: var(--jj-nav-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background var(--jj-transition), color var(--jj-transition);
    white-space: nowrap;
}
.jj-nav > ul > li > a:hover,
.jj-nav > ul > li.current-menu-item > a,
.jj-nav > ul > li.current-menu-parent > a {
    background: rgba(62,166,54,0.12);
    color: var(--jj-green-light);
}
/* Dropdown Arrow - Desktop */
.jj-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform var(--jj-transition);
    flex-shrink: 0;
}
.jj-nav .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
}
/* Desktop Dropdown */
.jj-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--jj-nav-bg);
    min-width: 220px;
    border-radius: 0 0 var(--jj-radius) var(--jj-radius);
    box-shadow: var(--jj-shadow-lg);
    padding: 6px 0;
    border-top: 2px solid var(--jj-green);
    flex-direction: column;
    z-index: 100;
}
.jj-nav ul ul li {
    width: 100%;
}
.jj-nav ul ul li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    color: var(--jj-nav-text);
    font-size: 0.85rem;
    transition: background var(--jj-transition), color var(--jj-transition), padding-left var(--jj-transition);
}
.jj-nav ul ul li a:hover {
    background: rgba(62,166,54,0.1);
    color: var(--jj-green-light);
    padding-left: 24px;
}
/* Nested dropdown */
.jj-nav ul ul ul {
    top: 0;
    left: 100%;
    border-radius: var(--jj-radius);
    border-top: 2px solid var(--jj-green);
}
/* Sub-menu arrow for nested items */
.jj-nav ul ul .menu-item-has-children > a::after {
    transform: rotate(-45deg);
    margin-top: 0;
}
.jj-nav ul ul .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
}
/* Desktop hover to show dropdown — only on non-touch screens */
@media (min-width: 769px) {
    .jj-nav li:hover > ul {
        display: flex;
    }
}
/* Mobile Menu Toggle */
.jj-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}
.jj-menu-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background var(--jj-transition);
}
.jj-menu-toggle .hamburger::before,
.jj-menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform var(--jj-transition);
}
.jj-menu-toggle .hamburger::before {
    top: -7px;
}
.jj-menu-toggle .hamburger::after {
    top: 7px;
}
/* Active hamburger animation */
.jj-menu-toggle.active .hamburger {
    background: transparent;
}
.jj-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.jj-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}
/* ============================
   MOBILE NAVIGATION (< 768px)
   ============================ */
@media (max-width: 768px) {
    .jj-menu-toggle {
        display: block;
    }
    .jj-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--jj-nav-bg);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 80px;
        z-index: 999;
    }
    .jj-nav.active {
        display: block;
    }
    .jj-nav ul {
        display: block;
        flex-wrap: nowrap;
    }
    .jj-nav > ul > li {
        display: block;
        width: 100%;
    }
    .jj-nav > ul > li > a {
        display: block;
        padding: 14px 50px 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
        font-size: 0.95rem;
        white-space: normal;
    }
    /* Mobile dropdown arrow */
    .jj-nav .menu-item-has-children > a {
        position: relative;
    }
    .jj-nav .menu-item-has-children > a::after {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        width: 8px;
        height: 8px;
        transition: transform var(--jj-transition);
    }
    .jj-nav .menu-item-has-children.open > a::after {
        transform: translateY(-50%) rotate(-135deg);
    }
    /* Mobile dropdown */
    .jj-nav ul ul {
        display: none;
        position: static;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0;
        min-width: 100%;
        border-left: 3px solid var(--jj-green);
    }
    .jj-nav .menu-item-has-children.open > ul {
        display: block;
    }
    .jj-nav ul ul li {
        display: block;
        width: 100%;
    }
    .jj-nav ul ul li a {
        display: block;
        padding: 12px 50px 12px 30px;
        font-size: 0.9rem;
        white-space: normal;
    }
    .jj-nav ul ul li a:hover {
        padding-left: 34px;
    }
    .jj-nav ul ul ul {
        border-radius: 0;
        border-top: none;
    }
    .jj-nav ul ul .menu-item-has-children > a::after {
        transform: translateY(-50%) rotate(45deg);
    }
    .jj-nav ul ul .menu-item-has-children.open > a::after {
        transform: translateY(-50%) rotate(-135deg);
    }
}
/* ============================
   MAIN LAYOUT
   ============================ */
.jj-main-wrap {
    display: flex;
    gap: var(--jj-gap);
    padding: 30px 0;
}
.jj-content {
    flex: 1;
    min-width: 0;
}
/* ============================
   POST CARDS (Index/Archive)
   ============================ */
.jj-post-card {
    background: var(--jj-surface);
    border-radius: var(--jj-radius-lg);
    overflow: hidden;
    box-shadow: var(--jj-shadow-sm);
    margin-bottom: 24px;
    transition: box-shadow var(--jj-transition), transform var(--jj-transition);
}
.jj-post-card:hover {
    box-shadow: var(--jj-shadow-md);
    transform: translateY(-2px);
}
.jj-post-card .card-thumb {
    overflow: hidden;
    aspect-ratio: 16/9;
}
.jj-post-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.jj-post-card:hover .card-thumb img {
    transform: scale(1.03);
}
.jj-post-card .card-body {
    padding: 22px 24px;
}
.jj-post-card .card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jj-green);
    background: rgba(62,166,54,0.08);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.jj-post-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.jj-post-card .card-title a {
    color: var(--jj-text);
    transition: color var(--jj-transition);
}
.jj-post-card .card-title a:hover {
    color: var(--jj-green);
}
.jj-post-card .card-excerpt {
    font-size: 0.92rem;
    color: var(--jj-text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}
.jj-post-card .card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--jj-green);
    transition: gap var(--jj-transition);
}
.jj-post-card .card-read-more:hover {
    gap: 10px;
}
.jj-post-card .card-read-more svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
/* ============================
   SINGLE POST
   ============================ */
.jj-single-article {
    background: var(--jj-surface);
    border-radius: var(--jj-radius-lg);
    box-shadow: var(--jj-shadow-sm);
    overflow: hidden;
}
.jj-single-thumb {
    aspect-ratio: 21/9;
    overflow: hidden;
}
.jj-single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jj-single-body {
    padding: 32px;
}
.jj-single-body .entry-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
    color: var(--jj-text);
}
/* Entry Content */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--jj-text);
}
.entry-content p {
    margin-bottom: 1.2em;
}
.entry-content h2 {
    font-size: 1.45rem;
    margin: 1.8em 0 0.8em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--jj-border-light);
}
.entry-content h3 {
    font-size: 1.2rem;
    margin: 1.5em 0 0.6em;
}
.entry-content h4 {
    font-size: 1.05rem;
    margin: 1.2em 0 0.5em;
}
.entry-content ul,
.entry-content ol {
    margin: 0.8em 0 1.2em 1.5em;
}
.entry-content ul {
    list-style: disc;
}
.entry-content ol {
    list-style: decimal;
}
.entry-content li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}
.entry-content a {
    color: var(--jj-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content a:hover {
    color: var(--jj-green-dark);
}
.entry-content blockquote {
    border-left: 4px solid var(--jj-green);
    margin: 1.5em 0;
    padding: 16px 24px;
    background: rgba(62,166,54,0.04);
    border-radius: 0 var(--jj-radius) var(--jj-radius) 0;
    font-style: italic;
    color: var(--jj-text-light);
}
.entry-content img {
    border-radius: var(--jj-radius);
    margin: 1em auto;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--jj-border);
    padding: 10px 14px;
    text-align: left;
}
.entry-content th {
    background: var(--jj-bg);
    font-weight: 600;
}
.entry-content pre {
    background: #1a1f2e;
    color: #e8ecf1;
    padding: 20px;
    border-radius: var(--jj-radius);
    overflow-x: auto;
    margin: 1em 0;
    font-size: 0.88rem;
}
.entry-content code {
    background: rgba(62,166,54,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.entry-content pre code {
    background: none;
    padding: 0;
}
/* ============================
   PAGE TEMPLATE
   ============================ */
.jj-page-article {
    background: var(--jj-surface);
    border-radius: var(--jj-radius-lg);
    box-shadow: var(--jj-shadow-sm);
    padding: 36px;
}
.jj-page-article .entry-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--jj-text);
}
/* ============================
   SIDEBAR
   ============================ */
.jj-sidebar {
    width: var(--jj-sidebar-width);
    flex-shrink: 0;
}
.jj-sidebar .widget {
    background: var(--jj-surface);
    border-radius: var(--jj-radius-lg);
    box-shadow: var(--jj-shadow-sm);
    padding: 22px 24px;
    margin-bottom: 22px;
}
.jj-sidebar .widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jj-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--jj-green);
    position: relative;
}
.jj-sidebar .widget ul {
    list-style: none;
}
.jj-sidebar .widget ul li {
    border-bottom: 1px solid var(--jj-border-light);
}
.jj-sidebar .widget ul li:last-child {
    border-bottom: none;
}
.jj-sidebar .widget ul li a {
    display: block;
    padding: 9px 0;
    color: var(--jj-text-light);
    font-size: 0.9rem;
    transition: color var(--jj-transition), padding-left var(--jj-transition);
}
.jj-sidebar .widget ul li a:hover {
    color: var(--jj-green);
    padding-left: 6px;
}
/* ============================
   PAGINATION
   ============================ */
.jj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.jj-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--jj-surface);
    color: var(--jj-text-light);
    border-radius: var(--jj-radius);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--jj-shadow-sm);
    transition: background var(--jj-transition), color var(--jj-transition);
}
.jj-pagination .page-numbers:hover {
    background: var(--jj-green);
    color: #fff;
}
.jj-pagination .page-numbers.current {
    background: var(--jj-green);
    color: #fff;
    font-weight: 700;
}
.jj-pagination .page-numbers.dots {
    background: none;
    box-shadow: none;
    color: var(--jj-text-muted);
}
/* ============================
   ARCHIVE HEADER
   ============================ */
.jj-archive-header {
    background: var(--jj-surface);
    border-radius: var(--jj-radius-lg);
    box-shadow: var(--jj-shadow-sm);
    padding: 24px 28px;
    margin-bottom: 24px;
    border-left: 4px solid var(--jj-green);
}
.jj-archive-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jj-text);
}
.jj-archive-header .archive-description {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--jj-text-light);
}
/* ============================
   SEARCH FORM
   ============================ */
.search-form {
    display: flex;
    gap: 0;
}
.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--jj-border);
    border-radius: var(--jj-radius) 0 0 var(--jj-radius);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--jj-transition);
    background: var(--jj-surface);
    color: var(--jj-text);
}
.search-form .search-field:focus {
    border-color: var(--jj-green);
}
.search-form .search-submit {
    padding: 10px 18px;
    background: var(--jj-green);
    color: #fff;
    border: none;
    border-radius: 0 var(--jj-radius) var(--jj-radius) 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--jj-transition);
}
.search-form .search-submit:hover {
    background: var(--jj-green-dark);
}
/* ============================
   404 PAGE
   ============================ */
.jj-404 {
    text-align: center;
    padding: 60px 20px;
    background: var(--jj-surface);
    border-radius: var(--jj-radius-lg);
    box-shadow: var(--jj-shadow-sm);
}
.jj-404 .error-code {
    font-size: 5rem;
    font-weight: 900;
    color: var(--jj-green);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
}
.jj-404 h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.jj-404 p {
    color: var(--jj-text-light);
    margin-bottom: 24px;
    font-size: 1rem;
}
.jj-404 .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--jj-green);
    color: #fff;
    border-radius: var(--jj-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--jj-transition), transform var(--jj-transition);
}
.jj-404 .btn-home:hover {
    background: var(--jj-green-dark);
    transform: translateY(-1px);
}
/* ============================
   FOOTER
   ============================ */
.jj-footer {
    background: var(--jj-footer-bg);
    color: var(--jj-footer-text);
    margin-top: 40px;
}
.jj-footer-inner {
    padding: 30px 0;
    text-align: center;
}
.jj-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.jj-footer-links a {
    color: var(--jj-footer-link);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--jj-transition);
}
.jj-footer-links a:hover {
    color: #a4d65e;
}
.jj-footer-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.75rem;
    user-select: none;
}
.jj-footer-copy {
    font-size: 0.82rem;
    color: var(--jj-footer-text);
    line-height: 1.5;
}
.jj-footer-copy a {
    color: var(--jj-footer-link);
    font-weight: 500;
}
.jj-footer-copy a:hover {
    color: #a4d65e;
}
/* ============================
   POPUP BANNER (non-AMP)
   ============================ */
.jj-popup-checkbox {
    display: none;
}
.jj-popup-checkbox:checked ~ .jj-popup-wrapper {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.jj-popup-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 30vh;
    z-index: 9999;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.4s ease, visibility 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}
.jj-popup-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    padding: 1.4rem 1.1rem 0.9rem;
    position: relative;
    border-radius: 18px 18px 0 0;
    max-width: 580px;
    margin: 0 auto;
    border-top: 3px solid var(--jj-green);
    box-shadow: inset 0 2px 15px rgba(62,166,54,0.25);
}
.jj-popup-close {
    position: absolute;
    top: -14px;
    right: 14px;
    background: #1e293b;
    border: 2px solid var(--jj-green);
    color: var(--jj-green-light);
    font-size: 1.1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}
.jj-popup-close:hover {
    background: var(--jj-green);
    color: #fff;
    transform: scale(1.1);
}
.jj-popup-header {
    text-align: center;
    margin-bottom: 0.7rem;
}
.jj-popup-header h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 0 0.2rem;
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.jj-popup-header p {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.jj-popup-brands {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.jj-popup-brand {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(62,166,54,0.15) 0%, rgba(15,23,42,0.8) 100%);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(62,166,54,0.4);
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.jj-popup-brand:active {
    transform: scale(0.98);
}
.jj-popup-brand-alt {
    background: linear-gradient(90deg, rgba(139,92,246,0.15) 0%, rgba(15,23,42,0.8) 100%);
    border: 1px solid rgba(139,92,246,0.4);
}
.jj-popup-brand-alt .jj-popup-cta {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 0 12px rgba(139,92,246,0.4);
}
.jj-popup-brand-logo {
    width: 65px;
    min-width: 65px;
    height: 36px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.jj-popup-brand-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}
.jj-popup-brand-info {
    flex: 1;
    min-width: 0;
}
.jj-popup-brand-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    color: #f8fafc;
}
.jj-popup-brand-info span {
    font-size: 0.62rem;
    color: #e2e8f0;
    line-height: 1.3;
    display: block;
}
.jj-popup-cta {
    background: linear-gradient(135deg, var(--jj-green) 0%, var(--jj-green-dark) 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(62,166,54,0.4);
}
@media (max-width: 480px) {
    .jj-popup-container {
        padding: 1.4rem 0.8rem 0.7rem;
    }
    .jj-popup-header h3 {
        font-size: 0.95rem;
    }
    .jj-popup-header p {
        font-size: 0.62rem;
    }
    .jj-popup-brand-logo {
        width: 50px;
        min-width: 50px;
        height: 28px;
    }
    .jj-popup-brand-info strong {
        font-size: 0.75rem;
    }
    .jj-popup-brand-info span {
        font-size: 0.56rem;
    }
    .jj-popup-cta {
        font-size: 0.55rem;
        padding: 0.28rem 0.5rem;
    }
}
/* ============================
   RESPONSIVE LAYOUT
   ============================ */
@media (max-width: 960px) {
    .jj-main-wrap {
        flex-direction: column;
    }
    .jj-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    :root {
        --jj-gap: 20px;
    }
    .jj-single-body {
        padding: 20px;
    }
    .jj-single-body .entry-title {
        font-size: 1.4rem;
    }
    .jj-page-article {
        padding: 20px;
    }
    .jj-archive-header {
        padding: 18px 20px;
    }
    .jj-post-card .card-body {
        padding: 18px 20px;
    }
    .jj-post-card .card-title {
        font-size: 1.05rem;
    }
    .jj-404 .error-code {
        font-size: 3.5rem;
    }
}
/* ============================
   WORDPRESS DEFAULTS
   ============================ */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}
.wp-caption img {
    border-radius: var(--jj-radius);
}
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--jj-text-muted);
    text-align: center;
    margin-top: 6px;
}
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}
.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}
.aligncenter {
    display: block;
    margin: 1em auto;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1em 0;
}
.gallery-item {
    flex: 1 1 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
}
.gallery-item img {
    border-radius: var(--jj-radius);
    width: 100%;
}
/* Sticky Post */
.sticky .jj-post-card {
    border-left: 4px solid var(--jj-green);
}
/* Page Links (wp_link_pages) */
.page-links {
    margin: 1.5em 0;
    font-weight: 600;
}
.page-links a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--jj-green);
    color: #fff;
    border-radius: 4px;
    margin: 0 4px;
}
/* Comments disabled notice */
.no-comments {
    font-size: 0.9rem;
    color: var(--jj-text-muted);
    margin-top: 20px;
}
