/*
 Theme Name:   Astra Child
 Theme URI:    http://example.com/astra-child/
 Description:  Astra Child Theme
 Author:       Your Name
 Author URI:   http://example.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  astra-child
*/
/* ==========================================================================
   SERPSPUR CUSTOM SAAS THEME (ASTRA CHILD)
   ========================================================================== */

/* --- 1. RESTORED BLUE HEADER THEME (GLOBAL OVERRIDE) --- */
body .site-header,
body .ast-primary-header-bar,
body.blog .site-header,
body.blog .ast-primary-header-bar,
body.archive .site-header,
body.archive .ast-primary-header-bar,
body.category .site-header,
body.category .ast-primary-header-bar,
body.tag .site-header,
body.tag .ast-primary-header-bar,
body.search .site-header,
body.search .ast-primary-header-bar,
body.single-post .site-header,
body.single-post .ast-primary-header-bar,
body.ast-theme-transparent-header .site-header,
body.ast-theme-transparent-header .ast-primary-header-bar,
body .ast-sticky-active-header {
    background-color: #172b4d !important;
    border-bottom: 4px solid #ef4444 !important;
}

body .ast-main-header-wrap,
body .ast-primary-header-bar .site-primary-header-wrap {
    background-color: transparent !important;
}

/* --- 2. MAIN NAVIGATION STYLES --- */
body .main-header-menu .menu-item > a,
body.blog .main-header-menu .menu-item > a,
body.archive .main-header-menu .menu-item > a,
body.category .main-header-menu .menu-item > a,
body.tag .main-header-menu .menu-item > a,
body.search .main-header-menu .menu-item > a,
body.single-post .main-header-menu .menu-item > a {
    color: #ffffff !important; 
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0 15px !important;
    transition: color 0.2s ease;
}

body .main-header-menu .menu-item:hover > a {
    color: #94a3b8 !important; 
}

/* "Dashboard" Button */
.main-header-menu .menu-item:last-child a {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    margin-left: 12px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    border: none !important;
    transition: all 0.3s ease !important;
}

.main-header-menu .menu-item:last-child a:hover {
    background-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Sub-menu (Dropdown) */
.main-header-menu .sub-menu {
    border-radius: 8px !important;
    border-top: 3px solid #ef4444 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
    background-color: #ffffff !important;
}

.main-header-menu .sub-menu .menu-item a {
    color: #334155 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
}

.main-header-menu .sub-menu .menu-item a:hover {
    color: #3b82f6 !important;
    background-color: #f8fafc !important;
}

/* Top Right User Icons */
.ast-builder-layout-element .widget {
    color: #ffffff !important;
}
.ast-builder-layout-element .widget a {
    color: #f16c4c !important;
    font-size: 16px;
    margin-left: 10px;
}
.ast-builder-layout-element .widget a:hover {
    color: #ffffff !important;
}

/* --- 3. UNIFIED SAAS DASHBOARD CONTAINER --- */
.blc-saas-dashboard,
.blc-rank-tracker-container {
    width: 100%;
    max-width: 1440px !important;
    margin: 2em auto !important; 
    padding: 0 24px;              
    box-sizing: border-box;
}

.blc-table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blc-saas-table,
.blc-rank-tracker-table {
    min-width: 900px;
    width: 100%;
}

/* --- 4. SAAS FOOTER --- */
.blc-saas-footer {
    background-color: #172b4d;
    color: #94a3b8;
    padding: 20px 24px 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.blc-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.blc-footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blc-footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.blc-footer-col ul li {
    margin-bottom: 12px;
}

.blc-footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.blc-footer-col ul li a:hover {
    color: #3b82f6;
}

.blc-brand-col .blc-footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.blc-brand-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.blc-view-all-tools {
    margin-top: 15px !important;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1); 
}

.blc-view-all-tools a {
    color: #ffffff !important; 
    font-weight: 600 !important;
    display: inline-block !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.blc-view-all-tools a:hover {
    color: #10b981 !important; 
    transform: translateX(4px); 
}

/* --- 5. SOCIAL LINKS & SYSTEM STATUS --- */
.blc-social-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.blc-social-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.blc-social-links a:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}

.blc-social-links a i,
.blc-social-links a span,
.blc-social-links a .dashicons,
.blc-social-links a svg {
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.blc-system-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(16, 185, 129, 0.1) !important; 
    color: #10b981 !important; 
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 99px !important; 
    font-size: 13px !important; 
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin-top: 25px !important;
    margin-left: 0 !important;
    line-height: 1 !important; 
    padding: 6px 16px 6px 16px !important;
}

.blc-system-status-badge:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    transform: translateY(-1px);
}

.blc-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: blc-pulse-green 2s infinite;
}

@keyframes blc-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- 6. SUB-FOOTER --- */
.blc-sub-footer {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.blc-sub-footer p {
    margin: 0;
}

.blc-sub-links-legal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end !important;
    flex-wrap: wrap; 
    margin-left: auto !important;
    text-align: right !important;
}

.blc-sub-links-legal a {
    display: inline-block !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s;
    line-height: 1 !important;
}

.blc-sub-links-legal a:hover {
    color: #ffffff !important;
}

.blc-sub-links-legal .blc-sep {
    display: inline-block !important;
    color: #334155;
    margin: 0 12px;
    line-height: 1 !important;
}

/* --- 7. POST CONTENT FIXES (BULLETS) --- */
.entry-content ul {
    list-style-type: disc !important;
    margin-left: 24px !important;
    padding-left: 0 !important;
    margin-bottom: 1.5em !important;
}

.entry-content ol {
    list-style-type: decimal !important;
    margin-left: 24px !important;
    padding-left: 0 !important;
    margin-bottom: 1.5em !important;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 8px !important;
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .blc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .blc-brand-col {
        grid-column: span 2;
    }
    .blc-sub-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .blc-footer-grid {
        grid-template-columns: 1fr;
    }
    .blc-brand-col {
        grid-column: span 1;
    }
}