/* =========================================================
   AI OS Details Generator v1.8.0 — Auto-Saved OS Logo & Top Tagline Rounded UI
   ========================================================= */

/* 1. Very Top Tagline Bar at the Top of the Post Content */
.ai-os-post-very-top-tagline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 18px;
    margin: 0 0 24px 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.ai-os-post-top-os-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

.ai-os-post-top-os-chip img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    margin: 0 !important;
}

.ai-os-post-top-tagline-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.4;
}

.ai-os-frontend-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    box-shadow: 0 14px 35px -8px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    margin: 34px 0;
    font-family: inherit;
    color: #1e293b;
}

/* 2. Top Tagline Pill Bar (Positioned at the very top of the OS Card) */
.ai-os-top-tagline-bar {
    background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 50%, #eef2ff 100%);
    padding: 15px 26px;
    border-bottom: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ai-os-top-tagline-pill {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.10);
    line-height: 1.4;
}

.ai-os-tagline-label-chip {
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 9px;
    border-radius: 999px;
}

.ai-os-tagline-os-logo {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 !important;
}

.ai-os-card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 28px 30px;
}

.ai-os-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ai-os-logo-circle {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    flex-shrink: 0;
}

.ai-os-main-logo-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

.ai-os-header-titles {
    flex: 1;
}

/* Tagline inside Header right at the top above OS Name */
.ai-os-header-top-tagline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #e0f2fe;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
    line-height: 1.35;
}

.ai-os-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-os-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
    padding: 5px 14px;
    border-radius: 999px;
}

.ai-os-family-pill {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #e0f2fe;
    border: 1px solid rgba(125, 211, 252, 0.35);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

.ai-os-title {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ai-os-inline-title-logo {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    background: #ffffff;
    padding: 3px;
    border-radius: 50%;
    display: inline-block !important;
    margin: 0 !important;
}

/* Header Separate Release Date & Last Update Pills */
.ai-os-header-dates-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ai-os-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.ai-os-date-pill.release-pill {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.38);
}

.ai-os-date-pill.update-pill {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(147, 197, 253, 0.42);
}

.date-pill-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.date-pill-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #cbd5e1;
    font-weight: 600;
}

.date-pill-val {
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
}

.ai-os-header-site-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0f172a !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-os-header-site-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.ai-os-site-favicon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    object-fit: contain;
}

.ai-os-overview,
.ai-os-specs-section,
.ai-os-reqs-section,
.ai-os-pros-section {
    padding: 26px 30px;
    border-bottom: 1px solid #f1f5f9;
}

.ai-os-frontend-card h3 {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* Specs Grid — Rounded Cards including Separate Release Date & Last Update */
.ai-os-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 14px;
}

.ai-os-spec-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ai-os-spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.ai-os-spec-item.spec-highlight-release {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ai-os-spec-item.spec-highlight-update {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.ai-os-spec-item .spec-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
}

.ai-os-spec-item .spec-value {
    display: block;
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 700;
}

.ai-os-spec-item .spec-value.spec-with-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-mini-os-logo {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    border-radius: 50%;
    margin: 0 !important;
}

/* Small Rounded Hardware Icons (CPU, RAM, GPU, Storage) */
.ai-os-hw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-os-hw-icon.cpu-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.ai-os-hw-icon.ram-icon {
    background: #dcfce7;
    color: #15803d;
}

.ai-os-hw-icon.storage-icon {
    background: #fef3c7;
    color: #b45309;
}

.ai-os-hw-icon.gpu-icon {
    background: #f3e8ff;
    color: #7e22ce;
}

.ai-os-hw-icon.release-icon {
    background: #d1fae5;
    color: #047857;
    width: 24px;
    height: 24px;
}

.ai-os-hw-icon.update-icon {
    background: #dbeafe;
    color: #1d4ed8;
    width: 24px;
    height: 24px;
}

.ai-os-hw-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rounded System Requirements Table */
.ai-os-reqs-table-wrap {
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    overflow: hidden;
}

.ai-os-reqs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ai-os-reqs-table th {
    background: #f1f5f9;
    color: #0f172a;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid #cbd5e1;
    font-weight: 700;
}

.ai-os-reqs-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.ai-os-reqs-table tr:last-child td {
    border-bottom: none;
}

.ai-os-reqs-table tr:nth-child(even) td {
    background: #f8fafc;
}

.ai-os-support-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 26px 30px;
    border-bottom: 1px solid #f1f5f9;
}

.ai-os-support-box {
    border-radius: 20px;
    padding: 22px;
}

.ai-os-support-box.supported {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.ai-os-support-box.best-supported {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.ai-os-support-box ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.ai-os-support-box li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 14.5px;
}

.ai-os-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-os-tag {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}

.ai-os-footer-cta {
    padding: 24px 30px;
    background: #f8fafc;
    text-align: center;
}

.ai-os-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-os-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.ai-os-btn-favicon {
    width: 22px !important;
    height: 22px !important;
    background: #ffffff;
    padding: 2px;
    border-radius: 50%;
    object-fit: contain;
}

/* =========================================================
   Scrollable Related Posts Widget & Carousel (Tagline at the Very Top)
   ========================================================= */
.ai-os-related-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px 26px;
    margin: 32px 0;
    box-shadow: 0 10px 25px -6px rgba(15, 23, 42, 0.07);
}

/* Top Tagline Filter Pill at the Very Top of Related Posts Wrapper */
.ai-os-related-top-filter-bar {
    margin-bottom: 12px;
}

.ai-os-related-filter-pill {
    display: inline-block;
    background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

.ai-os-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.ai-os-related-heading-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-os-related-icon {
    font-size: 20px;
}

.ai-os-related-title {
    margin: 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.ai-os-scroll-nav {
    display: flex;
    gap: 8px;
}

.ai-os-scroll-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ai-os-scroll-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Related Card Top Tagline Bar (Above Thumbnail) */
.ai-os-related-card-top-tagline {
    background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
    padding: 8px 12px;
    border-bottom: 1px solid #dbeafe;
}

.ai-os-rel-tagline-badge {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.35;
}

/* Tagline Pill Above Post Title inside Related Content */
.ai-os-related-above-title-tagline {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* Horizontal Smooth Scroll Track */
.ai-os-related-wrapper.layout-horizontal .ai-os-related-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.ai-os-related-wrapper.layout-horizontal .ai-os-related-item {
    min-width: 265px;
    max-width: 265px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-os-related-wrapper.layout-horizontal .ai-os-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -4px rgba(15, 23, 42, 0.12);
}

/* Vertical Smooth Scroll Box (Sidebar Widget) */
.ai-os-related-wrapper.layout-vertical .ai-os-related-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.ai-os-related-wrapper.layout-vertical .ai-os-related-item {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.ai-os-related-wrapper.layout-vertical .ai-os-related-item:hover {
    background: #eff6ff;
}

.ai-os-related-wrapper.layout-vertical .ai-os-related-thumb {
    height: 110px;
}

.ai-os-related-thumb {
    display: block;
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    overflow: hidden;
    text-decoration: none !important;
}

.ai-os-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-os-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    text-align: center;
}

.ai-os-rel-placeholder-logo {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    background: #ffffff;
    padding: 6px;
    border-radius: 50%;
}

.ai-os-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
}

.ai-os-badge-mini-logo {
    width: 15px !important;
    height: 15px !important;
    background: #ffffff;
    border-radius: 50%;
    padding: 1px;
    object-fit: contain !important;
}

.ai-os-related-content {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-os-related-post-title {
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.ai-os-related-post-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ai-os-related-post-title a:hover {
    color: #2563eb !important;
}

.ai-os-rel-title-logo {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ai-os-support-columns {
        grid-template-columns: 1fr;
    }
    .ai-os-header-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .ai-os-header-site-chip {
        margin-left: 0;
    }
}


/* =========================================================
   Default Rounded Tagline Boxes Above Technical Specifications & Release Timeline
   ========================================================= */
.ai-os-specs-above-tagline-wrap {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #f0fdf4 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 26px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px -6px rgba(37, 99, 235, 0.12);
}

.ai-os-specs-main-tagline-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    border-radius: 999px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ai-os-specs-tagline-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-os-specs-tagline-logo {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    border-radius: 50%;
    margin: 0 !important;
}

.ai-os-specs-tagline-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ai-os-specs-tagline-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.ai-os-specs-tagline-boxes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ai-os-specs-tagline-round-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.ai-os-specs-tagline-round-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14);
}

.ai-os-specs-tagline-round-box.box-style-1 {
    background: #ffffff;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
}

.ai-os-specs-tagline-round-box.box-style-2 {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #065f46;
}

.ai-os-specs-tagline-round-box.box-style-3 {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.ai-os-specs-tagline-round-box.box-style-4 {
    background: #faf5ff;
    border: 1px solid #d8b4fe;
    color: #6b21a8;
}

.ai-os-round-box-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
    flex-shrink: 0;
}
