/**
 * Picklor Theme - Additional Styles
 *
 * @package Picklor
 */

/* ── Header search placeholder ── */
#header-search-wrap input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* ── Gallery Lightbox ── */
.picklor-gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.picklor-gallery-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.picklor-gallery-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.picklor-gallery-overlay .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    cursor: pointer;
    font-size: 2rem;
}

/* ── Hero search animation ── */
.picklor-hero-search:focus {
    box-shadow: 0 0 0 4px rgba(125, 116, 252, 0.15);
}

/* ── Card hover lift ── */
.picklor-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.picklor-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ── Filter sidebar scrollbar ── */
.picklor-filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.picklor-filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.picklor-filter-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

/* ── Badge shimmer ── */
@keyframes picklor-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.picklor-badge-featured {
    background: linear-gradient(90deg, #5246ce, #7d74fc, #5246ce);
    background-size: 200% auto;
    animation: picklor-shimmer 3s linear infinite;
}

/* ── Blog category pills active ── */
.picklor-category-pill.active {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

/* ── Smooth page transitions ── */
main {
    animation: picklor-fadeIn 0.3s ease;
}

@keyframes picklor-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .picklor-hero-title {
        font-size: 2.5rem !important;
    }
}

/* ── WordPress block content ── */
.entry-content > * + * {
    margin-top: 1.5rem;
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
}

.entry-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
}

.entry-content p {
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

.entry-content li + li {
    margin-top: 0.5rem;
}

.entry-content img {
    border-radius: 0.75rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--md-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--md-surface-container-lowest);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}
