/* ============================================================
   SOQ Blog — Colorful Block Styles
   ============================================================ */

/* --- Global --- */
body { font-family: 'Inter', sans-serif; color: #1e293b; }
a { transition: color .2s ease; }
img { max-width: 100%; height: auto; }

/* --- Header (Astra HFB gradient) --- */
.ast-primary-header-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%) !important;
    border-bottom: 3px solid #fbbf24 !important;
    box-shadow: 0 4px 20px rgba(37,99,235,.25);
}
.ast-primary-header-bar .site-branding .custom-logo-link img,
.ast-primary-header-bar .site-branding .ast-site-identity img {
    filter: brightness(0) invert(1);
    max-height: 48px;
}
.ast-primary-header-bar .ast-builder-menu-1 .menu-item > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all .25s ease !important;
}
.ast-primary-header-bar .ast-builder-menu-1 .menu-item > a:hover,
.ast-primary-header-bar .ast-builder-menu-1 .current-menu-item > a {
    background: rgba(251,191,36,.15) !important;
    color: #fbbf24 !important;
}
/* Mobile header */
.ast-header-break-point .ast-primary-header-bar {
    background: linear-gradient(135deg, #1e3a5f, #2563eb) !important;
}
.ast-mobile-popup-drawer .ast-builder-menu-1 .menu-item > a {
    color: #1e293b !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0;
}
.ast-mobile-popup-drawer .ast-builder-menu-1 .menu-item > a:hover {
    color: #2563eb !important;
    background: #eff6ff;
}
.ast-header-break-point .ast-button-wrap .ast-mobile-menu-trigger-minimal {
    color: #ffffff !important;
}

/* --- Hero Cover --- */
.soq-hero-block {
    position: relative;
    overflow: hidden;
}
.soq-hero-block::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(251,191,36,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.soq-hero-block::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -15%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.soq-hero-tag {
    display: inline-block;
    background: rgba(251,191,36,.15);
    padding: 6px 18px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* --- Section Titles --- */
.soq-section-title {
    position: relative;
    display: inline-block;
}
.soq-section-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* --- Category Cards --- */
.soq-cat-grid {
    flex-wrap: wrap !important;
}
.soq-cat-card {
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.soq-cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity .3s ease;
}
.soq-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37,99,235,.15);
}
.soq-cat-card:hover::before { opacity: 1; }

.soq-cat-btn .wp-block-button__link {
    transition: all .25s ease !important;
}
.soq-cat-btn .wp-block-button__link:hover {
    opacity: .88;
    transform: translateX(3px);
}

/* --- Post Cards (Query Loop) --- */
.soq-post-card {
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    transition: all .3s ease;
    overflow: hidden;
}
.soq-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(37,99,235,.12);
}
.soq-post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform .4s ease;
}
.soq-post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}
.soq-post-card .wp-block-post-featured-image {
    overflow: hidden;
    margin: 0;
    border-radius: 16px 16px 0 0;
}
.soq-post-cat a {
    color: #7c3aed !important;
    text-decoration: none !important;
    background: #f5f3ff;
    padding: 3px 10px;
    border-radius: 5px;
    display: inline-block;
}
.soq-query-grid .wp-block-post-template {
    gap: 24px !important;
}
.soq-query-grid .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* --- CTA Section --- */
.soq-cta-section {
    position: relative;
    overflow: hidden;
}
.soq-cta-section::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.soq-cta-section::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

/* --- Sidebar Widgets --- */
.soq-sidebar-widget {
    margin-bottom: 24px;
    transition: box-shadow .3s ease;
}
.soq-sidebar-widget:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,.1);
}
.soq-sidebar-cats,
.soq-sidebar-recent {
    list-style: none !important;
    margin: 0 !important;
}
.soq-sidebar-cats li,
.soq-sidebar-recent li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.soq-sidebar-cats li:last-child,
.soq-sidebar-recent li:last-child {
    border-bottom: none;
}
.soq-sidebar-cats a,
.soq-sidebar-recent a {
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: color .2s;
}
.soq-sidebar-cats a:hover,
.soq-sidebar-recent a:hover {
    color: #2563eb !important;
}
.soq-cat-count {
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
}
#secondary, .widget-area {
    padding-left: 24px;
}
#secondary .widget,
.widget-area .widget {
    margin-bottom: 24px;
}

/* --- Footer --- */
.ast-footer .site-primary-footer-wrap {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 48px 0 36px !important;
}
.soq-footer-heading {
    position: relative;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
}
.soq-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
}
.soq-footer-logo-block img {
    filter: brightness(0) invert(1);
}
.soq-footer-links {
    list-style: none !important;
    margin: 0 !important;
}
.soq-footer-links li {
    padding: 7px 0;
}
.soq-footer-links a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    position: relative;
    padding-left: 0;
}
.soq-footer-links a::before {
    content: '\203A';
    margin-right: 8px;
    color: #2563eb;
    font-weight: 700;
    transition: margin .2s;
}
.soq-footer-links a:hover {
    color: #ffffff !important;
}
.soq-footer-links a:hover::before {
    margin-right: 12px;
    color: #fbbf24;
}
.ast-footer .site-below-footer-wrap {
    background: #020617 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    padding: 16px 0 !important;
}

/* --- Blog Archive Grid --- */
.ast-separate-container .ast-article-post {
    background: #ffffff;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all .3s ease;
}
.ast-separate-container .ast-article-post:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,.1);
    transform: translateY(-3px);
}
.ast-separate-container .ast-article-post .post-thumb img {
    border-radius: 16px 16px 0 0;
}

/* --- Single Post --- */
.ast-single-post .entry-header .entry-title {
    color: #1e293b;
    font-weight: 800;
    line-height: 1.3;
}
.ast-single-post .entry-meta,
.ast-single-post .entry-meta a {
    color: #64748b !important;
}
.entry-content h2 {
    color: #1e293b;
    font-weight: 700;
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eff6ff;
}
.entry-content h3 {
    color: #2563eb;
    font-weight: 700;
}
.entry-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.entry-content a:hover { color: #7c3aed; }

/* Read More */
.ast-read-more-container a,
a.ast-button {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all .25s ease !important;
    border: none !important;
}
.ast-read-more-container a:hover,
a.ast-button:hover {
    opacity: .9;
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
    transform: translateY(-1px);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    border-radius: 4px;
}

/* --- Selection --- */
::selection { background: #2563eb; color: #ffffff; }

/* --- Responsive --- */
@media (max-width: 921px) {
    .soq-cat-grid { flex-wrap: wrap !important; }
    .soq-cat-grid > .wp-block-column { flex-basis: calc(50% - 10px) !important; }
    .soq-query-grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .soq-hero-block .wp-block-heading { font-size: 30px !important; }
    #secondary, .widget-area { padding-left: 0; padding-top: 24px; }
}
@media (max-width: 544px) {
    .soq-cat-grid > .wp-block-column { flex-basis: 100% !important; }
    .soq-query-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; }
    .soq-hero-block .wp-block-heading { font-size: 24px !important; }
    .soq-hero-block { min-height: 320px !important; }
    .wp-block-buttons { flex-direction: column; align-items: stretch; }
    .wp-block-button { width: 100%; }
    .wp-block-button__link { width: 100% !important; text-align: center; }
    .ast-footer .site-primary-footer-wrap { padding: 32px 16px 24px !important; }
}
