/**
 * 1 ROCKET - Blog Architecture & Editorial Styles
 * Aerospace telemetry, cybernetic dark theme, high contrast
 */

/* ==========================================================================
   GLOBAL BLOG ARCHIVE & SINGLE POST RESETS
   ========================================================================== */
.rocket-blog-archive-wrap,
.rocket-single-post-wrap {
    background-color: #070714 !important;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(30, 41, 59, 0.5), transparent),
        radial-gradient(circle at 10% 20%, rgba(210, 253, 99, 0.03), transparent 25%),
        radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.03), transparent 25%);
    color: #CBD5E1 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    min-height: 100vh;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

/* Disable and suppress theme preloader completely (prevent black veil) */
.aigensy_preloader_holder,
.aigensy_preloader_holder--classic,
.aigensy_preloader_holder--custom {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -999999 !important;
}

/* Hide theme redundant breadcrumbs header banner in blog, archive, single-post */
body.blog .elementor-element-cbd2a0d,
body.archive .elementor-element-cbd2a0d,
body.single-post .elementor-element-cbd2a0d,
.elementor-widget-mtfe-breadcrumbs,
.aigensy-breadcrumbs,
.breadcrumbs,
.header-title-breadcrumb,
.single-post .page-title,
.blog .page-title,
.archive.category .page-title,
.page-title {
    display: none !important;
}

/* Sleek navbar container on blog, archive, and single post */
body.single-post .elementor-element-cefc2c5,
body.blog .elementor-element-cefc2c5,
body.archive .elementor-element-cefc2c5 {
    background-image: none !important;
    background-color: #070714 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.single-post .elementor-element-f003b4a,
body.blog .elementor-element-f003b4a,
body.archive .elementor-element-f003b4a {
    padding: 0 !important;
}

body.single-post .elementor-element-b5567d9,
body.blog .elementor-element-b5567d9,
body.archive .elementor-element-b5567d9 {
    border-bottom: none !important;
}

/* Ensure clean seamless canvas on site content wrapper */
body.blog,
body.archive,
body.single-post,
body.blog #page,
body.archive #page,
body.single-post #page,
body.blog #aigensy-site-content,
body.archive #aigensy-site-content,
body.single-post #aigensy-site-content {
    background: #070714 !important;
    background-color: #070714 !important;
    color: #CBD5E1 !important;
}

body.blog #aigensy-site-content > div,
body.archive #aigensy-site-content > div,
body.single-post #aigensy-site-content > div {
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   BLOG ARCHIVE / CATEGORY HERO
   ========================================================================== */
.rocket-blog-hero {
    padding: 72px 24px 48px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(10, 10, 23, 0.8) 0%, rgba(7, 7, 20, 0.4) 100%);
}

.rocket-blog-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.rocket-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(210, 253, 99, 0.08);
    border: 1px solid rgba(210, 253, 99, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #D2FD63;
    margin-bottom: 20px;
}

.rocket-blog-badge-dot {
    color: #D2FD63;
    font-size: 0.65rem;
}

.rocket-blog-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #FFFFFF !important;
    margin: 0 0 18px;
}

.rocket-blog-title-gradient {
    background: linear-gradient(135deg, #D2FD63 0%, #00FF88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rocket-blog-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #94A3B8 !important;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 36px;
}

/* Category Filter Pills */
.rocket-blog-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.rocket-blog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.rocket-blog-cat-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #D2FD63;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.rocket-blog-cat-pill.is-active {
    background: #D2FD63 !important;
    color: #0A0A17 !important;
    border-color: #D2FD63 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(210, 253, 99, 0.3);
}

.rocket-blog-cat-count {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
}

.rocket-blog-cat-pill.is-active .rocket-blog-cat-count {
    background: rgba(10, 10, 23, 0.2);
    color: #0A0A17;
}

/* ==========================================================================
   BLOG GRID CONTAINER & CARDS
   ========================================================================== */
.rocket-blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.rocket-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.rocket-blog-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.rocket-blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(210, 253, 99, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(210, 253, 99, 0.15);
}

.rocket-blog-card-thumb-link {
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0A0A17;
}

.rocket-blog-card-thumb {
    width: 100%;
    height: 100%;
    position: relative;
}

.rocket-blog-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rocket-blog-card:hover .rocket-blog-card-img {
    transform: scale(1.05);
}

/* Fallback Card Graphic */
.rocket-blog-card-thumb-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A0D1F 0%, #10182E 100%);
    position: relative;
}

.rocket-blog-thumb-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(rgba(210, 253, 99, 0.4) 1px, transparent 1px);
    background-size: 16px 16px;
}

.rocket-blog-thumb-icon {
    width: 44px;
    height: 44px;
    color: #38BDF8;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.rocket-blog-thumb-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #D2FD63;
    position: relative;
    z-index: 1;
}

/* Card Body */
.rocket-blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rocket-blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rocket-blog-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #D2FD63;
    background: rgba(210, 253, 99, 0.1);
    border: 1px solid rgba(210, 253, 99, 0.2);
    padding: 3px 10px;
    border-radius: 9999px;
}

.rocket-blog-card-read {
    font-size: 0.75rem;
    color: #94A3B8;
}

.rocket-blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF !important;
    margin: 0 0 12px;
}

.rocket-blog-card-title a {
    color: #FFFFFF !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.rocket-blog-card-title a:hover {
    color: #D2FD63 !important;
}

.rocket-blog-card-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #94A3B8 !important;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rocket-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rocket-blog-card-date {
    font-size: 0.78rem;
    color: #64748B;
}

.rocket-blog-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #D2FD63 !important;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.rocket-blog-card-btn:hover {
    gap: 10px;
    color: #E4FF8F !important;
}

.rocket-blog-btn-arrow {
    transition: transform 0.2s ease;
}

.rocket-blog-card-btn:hover .rocket-blog-btn-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.rocket-blog-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.rocket-blog-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rocket-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #CBD5E1 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rocket-blog-pagination a.page-numbers:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #D2FD63;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.rocket-blog-pagination .page-numbers.current {
    background: #D2FD63 !important;
    color: #0A0A17 !important;
    border-color: #D2FD63 !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(210, 253, 99, 0.3);
}

/* Empty State */
.rocket-blog-empty {
    text-align: center;
    padding: 72px 24px;
    max-width: 540px;
    margin: 0 auto;
}

.rocket-blog-empty h3 {
    color: #FFFFFF !important;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.rocket-blog-empty p {
    color: #94A3B8 !important;
    margin-bottom: 28px;
}

/* ==========================================================================
   SINGLE POST EDITORIAL
   ========================================================================== */
.rocket-single-header {
    padding: 60px 24px 32px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(10, 10, 23, 0.8) 0%, rgba(7, 7, 20, 0.4) 100%);
}

.rocket-single-header-inner {
    max-width: 880px;
    margin: 0 auto;
}

.rocket-single-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #94A3B8 !important;
    margin-bottom: 20px;
}

.rocket-single-breadcrumbs a {
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.rocket-single-breadcrumbs a:hover {
    color: #D2FD63 !important;
}

.rocket-breadcrumb-sep {
    color: #475569;
}

.rocket-single-meta-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rocket-single-cat-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(210, 253, 99, 0.1);
    border: 1px solid rgba(210, 253, 99, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #D2FD63 !important;
    text-decoration: none !important;
}

.rocket-single-read-badge {
    font-size: 0.8rem;
    color: #94A3B8;
}

.rocket-single-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #FFFFFF !important;
    margin: 0 0 24px;
}

/* Info Bar */
.rocket-single-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    max-width: 520px;
    margin: 0 auto;
    font-size: 0.85rem;
}

.rocket-single-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.rocket-author-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
}

.rocket-author-icon svg {
    width: 18px;
    height: 18px;
}

.rocket-author-name {
    font-weight: 700;
    color: #FFFFFF !important;
}

.rocket-author-sub {
    font-size: 0.72rem;
    color: #94A3B8;
}

.rocket-single-date {
    text-align: left;
    color: #94A3B8;
}

.rocket-single-date strong {
    display: block;
    color: #FFFFFF !important;
    font-weight: 600;
}

/* Featured Image */
.rocket-single-featured-wrap {
    max-width: 960px;
    margin: 40px auto 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.rocket-single-featured-img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: cover !important;
    display: block;
}

/* Content Container & High-Contrast Typography */
.rocket-single-content-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 40px;
}

.rocket-article-body {
    font-size: 1.15rem;
    line-height: 1.88;
    color: #CBD5E1 !important;
}

.rocket-article-body p {
    color: #CBD5E1 !important;
    margin-bottom: 26px;
    font-size: 1.15rem;
    line-height: 1.88;
}

.rocket-article-body h2 {
    color: #FFFFFF !important;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 48px 0 20px;
    border-left: 3px solid #D2FD63;
    padding-left: 16px;
}

.rocket-article-body h3 {
    color: #FFFFFF !important;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 36px 0 16px;
    border-left: 3px solid #38BDF8;
    padding-left: 14px;
}

.rocket-article-body h4,
.rocket-article-body h5,
.rocket-article-body h6 {
    color: #FFFFFF !important;
    font-weight: 700;
    margin: 28px 0 14px;
}

.rocket-article-body strong {
    color: #FFFFFF !important;
    font-weight: 700;
}

.rocket-article-body a {
    color: #D2FD63 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.rocket-article-body a:hover {
    color: #FFFFFF !important;
}

.rocket-article-body ul,
.rocket-article-body ol {
    margin: 20px 0 28px 24px;
    padding: 0;
    color: #CBD5E1 !important;
}

.rocket-article-body li {
    margin-bottom: 12px;
    line-height: 1.75;
    color: #CBD5E1 !important;
}

.rocket-article-body blockquote {
    background: rgba(30, 41, 59, 0.35);
    border-left: 4px solid #D2FD63;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 36px 0;
    color: #F8FAFC !important;
    font-style: italic;
    font-size: 1.18rem;
    line-height: 1.7;
}

.rocket-article-body blockquote p {
    color: #F8FAFC !important;
    margin: 0;
}

.rocket-article-body code {
    background: #0F172A;
    color: #D2FD63;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(210, 253, 99, 0.2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rocket-article-body pre {
    background: #060914;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 22px;
    color: #38BDF8;
    overflow-x: auto;
    margin: 32px 0;
    line-height: 1.6;
}

.rocket-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tags */
.rocket-single-tags-wrap {
    margin: 40px 0 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rocket-tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94A3B8;
}

.rocket-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rocket-tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: #38BDF8 !important;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 12px;
    border-radius: 9999px;
}

/* Share / Back Bar */
.rocket-single-share-bar {
    margin: 28px 0 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rocket-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #D2FD63 !important;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.rocket-back-to-blog:hover {
    gap: 12px;
    color: #E4FF8F !important;
}

.rocket-back-arrow {
    transition: transform 0.2s ease;
}

.rocket-back-to-blog:hover .rocket-back-arrow {
    transform: translateX(-4px);
}

/* Conversion CTA Box */
.rocket-single-cta-box {
    background: linear-gradient(135deg, rgba(210, 253, 99, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(210, 253, 99, 0.35);
    border-radius: 18px;
    padding: 40px 32px;
    margin: 48px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rocket-cta-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #D2FD63;
    margin-bottom: 12px;
}

.rocket-cta-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin: 0 0 12px;
    line-height: 1.3;
}

.rocket-cta-desc {
    font-size: 1.05rem;
    color: #94A3B8 !important;
    max-width: 620px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.rocket-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D2FD63 !important;
    color: #0A0A17 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(210, 253, 99, 0.35);
    transition: all 0.25s ease;
}

.rocket-cta-btn:hover {
    background: #E4FF8F !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(210, 253, 99, 0.5);
    color: #0A0A17 !important;
}

/* ==========================================================================
   RELATED ARTICLES SECTION
   ========================================================================== */
.rocket-single-related-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px 24px;
    background: rgba(0, 0, 0, 0.2);
}

.rocket-related-container {
    max-width: 1280px;
    margin: 0 auto;
}

.rocket-related-header {
    text-align: center;
    margin-bottom: 40px;
}

.rocket-related-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #38BDF8;
}

.rocket-related-title {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin: 8px 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rocket-blog-hero {
        padding: 48px 16px 32px;
    }
    .rocket-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rocket-single-title {
        font-size: 1.85rem;
    }
    .rocket-single-info-bar {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    .rocket-single-author,
    .rocket-single-date {
        text-align: center;
    }
    .rocket-single-content-container {
        padding: 32px 16px;
    }
    .rocket-single-cta-box {
        padding: 28px 18px;
    }
}
