/* ==========================================================================
   SRG Single Tool Hero Card (v2026 — Unboxed Minimal Purple Layout)
   ========================================================================== */

.srg-tool-hero-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: transparent !important;
}

.srg-tool-hero-card {
    position: relative;
    width: 100%;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 10px 30px rgba(9, 14, 26, 0.04) !important;
    padding: 48px 0;
    margin: 0;
}

/* Premium dark mode contrast settings */
html.srg-dark .srg-tool-hero-card {
    background-color: var(--srg-bg-secondary, #0F172A) !important;
    border: 1px solid rgba(124, 58, 237, 0.08) !important;
    border-top: none !important;
}

html.srg-dark .srg-tool-hero-wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

/* Page content layout alignment */
.srg-tool-hero-head {
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    gap: 32px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .srg-tool-hero-head {
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 16px !important;
    }
}

/* Borderless clean image layout */
.srg-tool-hero-icon {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.srg-tool-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    border: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

@media (max-width: 768px) {
    .srg-tool-hero-icon {
        width: 72px;
        height: 72px;
    }
}

.srg-tool-hero-content {
    flex-grow: 1;
}

/* Badges and labels */
.srg-tool-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.srg-tool-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--srg-context-accent);
    background: color-mix(in srgb, var(--srg-context-accent) 8%, transparent) !important;
    padding: 4px 10px;
    border-radius: 6px;
}

html.srg-dark .srg-tool-hero-badge {
    background: rgba(var(--srg-context-accent-rgb), 0.15) !important;
}

.srg-tool-hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: color-mix(in srgb, var(--srg-context-accent) 8%, transparent) !important;
    color: var(--srg-context-accent);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 10px;
    border-radius: 6px;
}

.srg-tool-hero-cat:hover {
    color: var(--srg-context-accent);
}

/* Headings and descriptions */
.srg-tool-hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--srg-text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .srg-tool-hero-title {
        font-size: 24px;
    }
}

.srg-tool-hero-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--srg-text-secondary);
    margin: 0 0 24px 0;
    max-width: 760px;
}

@media (max-width: 768px) {
    .srg-tool-hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Clean interactive block settings */
.srg-tool-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    background: none !important;
    border: none !important;
    border-top: 2px dashed rgba(124, 58, 237, 0.12) !important;
    padding: 16px 0 0 0 !important;
    margin-top: 16px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .srg-tool-hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    .srg-tool-hero-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .srg-tool-hero-card {
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 24px 16px !important;
    }
    .srg-tool-hero-wrapper .srg-container {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Browser CTA and hover contrast fix */
.srg-tool-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important; /* Ensure white text remains legible */
    background: var(--srg-context-accent);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.srg-tool-hero-btn:hover {
    background: var(--srg-brand-700);
    color: #ffffff !important; /* Maintain white text color on hover */
}

html.srg-dark .srg-tool-hero-btn:hover {
    background: var(--srg-brand-500);
    color: #ffffff !important;
}

/* Unified share buttons with purple theme color */


/* Bottom safe spacing separating hero embed from content */
.srg-cpt-tool-embed {
    margin-top: 48px !important;
    margin-bottom: 48px !important;
}

/* Safe spacing separating FAQ from related tools */
.srg-cpt-related {
    margin-top: 64px !important;
}

/* ============================================================
 SYSTEM PREFERENCE DARK MODE MIRROR (prefers-color-scheme: dark)
 ============================================================ */
@media (prefers-color-scheme: dark) {
    /* Premium dark mode contrast settings */
    html:not(.srg-light) .srg-tool-hero-wrapper {
        background: transparent !important;
        background-color: transparent !important;
    }
    html:not(.srg-light) .srg-tool-hero-card {
        background-color: var(--srg-bg-secondary, #0F172A) !important;
        border: 1px solid rgba(124, 58, 237, 0.08) !important;
        border-top: none !important;
    }
    html:not(.srg-light) .srg-tool-hero-badge {
        background: rgba(var(--srg-context-accent-rgb), 0.15) !important;
    }
    html:not(.srg-light) .srg-tool-hero-btn:hover {
        background: var(--srg-brand-500);
        color: #ffffff !important;
    }
}

