/* Software Detail Page - Optimized CSS */

/* Software Not Available Notice */
.sm-software-not-available {
    max-width: 800px;
    margin: 60px auto;
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe9a0 100%);
    border: 2px solid #f9a825;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(249, 168, 37, 0.15);
}

.sm-software-not-available-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sm-software-not-available h3 {
    color: #d84315;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.sm-software-not-available-message {
    color: #6d4c41;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sm-software-not-available-tip {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

.sm-software-not-available-tip p {
    color: #5d4037;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Layout Reset for Detail Page */
.sm-software-detail * {
    box-sizing: border-box;
}

.sm-software-detail {
    overflow-x: hidden;
}

/* CSS Variables */
.software-detail-wrapper,
.sm-software-detail {
    --sm-primary: #2b6cb0;
    --sm-primary-hover: #2c5282;
    --sm-secondary: #4a5568;
    --sm-light-bg: #f7fafc;
    --sm-border-color: #e2e8f0;
    --sm-text-color: #2d3748;
    --sm-text-light: #718096;
    --sm-star-color: #ffb900;
    --sm-star-empty: #e2e8f0;
    --sm-star-hover: #ffca28;
    --sm-star-shadow: rgba(255, 185, 0, 0.5);
    --sm-pros-color: #48bb78;
    --sm-cons-color: #f56565;
    --sm-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --sm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sm-radius: 0.375rem;
    --sm-sidebar-width: 280px;
    --sm-grid-gap: 32px;
    --sm-nav-bg: #ffffff;
    --sm-nav-border: #e5e7eb;
    --sm-nav-text: #374151;
    --sm-nav-active: #3b82f6;
    --sm-nav-hover: #f3f4f6;
    --sm-scroll-highlight: #3b82f6;
}

/* Scroll Target Highlight Effect */
.sm-scroll-target-highlight {
    animation: sm-scroll-highlight 0.6s ease-out;
}

@keyframes sm-scroll-highlight {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
        border-left: 4px solid var(--sm-scroll-highlight);
        padding-left: 12px;
    }
    100% {
        background-color: transparent;
        border-left: none;
        padding-left: 0;
    }
}

/* Base Wrapper */
.software-detail-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--sm-light-bg);
    padding: 80px 0 0 0;
    margin: 0 auto;
}

/* Main Container */
.sm-software-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    color: var(--sm-text-color);
    line-height: 1.5;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible; /* ensure sticky sidebar is not clipped */
}

.sm-software-detail.full-width {
    width: 100%;
    padding: 0;
    margin: 0;
}

.sm-detail-container {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.sm-detail-header {
    position: relative;
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    margin-bottom: 32px;
    z-index: 50;
}

.sm-header-content {
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    gap: 30px;
    box-sizing: border-box;
}

.sm-header-left {
    display: flex;
    align-items: center;
    width: 260px;
    min-width: 260px;
    padding: 15px;
    position: relative;
}

.sm-software-logo {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.sm-badge-top {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: auto;
}

.sm-header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-header-main h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.2;
}

.sm-header-byline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #4b5563;
}

.sm-header-byline a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.sm-header-rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.sm-header-weighted-rating {
    display: flex;
    align-items: center;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e2e8f0;
}

.sm-rating-type {
    font-size: 0.85em;
    color: #718096;
    margin-left: 5px;
    font-style: italic;
}

.sm-header-stars {
    display: flex;
    align-items: center;
}

/* Remove comprehensive star rating system from this file to avoid conflicts with detail-page-software-reviews.css */

/* Remove comprehensive star rating system from this file to avoid conflicts with detail-page-software-reviews.css */

.sm-header-review-count {
    font-size: 16px;
    font-weight: 600;
    color: #6366f1;
}

.sm-header-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.sm-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.sm-action-button:hover {
    color: #111827;
}

.sm-action-button i {
    font-size: 18px;
}

.sm-action-button.save-button {
    background: #6C63FF !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
    min-width: 140px !important;
}

.sm-action-button.save-button:hover {
    background: #5a52e8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3) !important;
}

.sm-action-button.save-button:active {
    background: #4c44d0 !important;
    transform: translateY(0px) !important;
}

.sm-action-button.save-button.saved {
    background: #10b981 !important;
    color: #ffffff !important;
}

.sm-action-button.save-button.saved:hover {
    background: #059669 !important;
}

/* Additional overrides for better visibility */
body .sm-action-button.save-button,
.wp-block-buttons .sm-action-button.save-button,
.entry-content .sm-action-button.save-button,
.sm-header-actions .sm-action-button.save-button {
    background: #6C63FF !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 140px !important;
    text-transform: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(108, 99, 255, 0.2) !important;
}

body .sm-action-button.save-button:hover,
.wp-block-buttons .sm-action-button.save-button:hover,
.entry-content .sm-action-button.save-button:hover,
.sm-header-actions .sm-action-button.save-button:hover {
    background: #5a52e8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3) !important;
}

body .sm-action-button.save-button.saved,
.wp-block-buttons .sm-action-button.save-button.saved,
.entry-content .sm-action-button.save-button.saved,
.sm-header-actions .sm-action-button.save-button.saved {
    background: #10b981 !important;
    color: #ffffff !important;
}

body .sm-action-button.save-button.saved:hover,
.wp-block-buttons .sm-action-button.save-button.saved:hover,
.entry-content .sm-action-button.save-button.saved:hover,
.sm-header-actions .sm-action-button.save-button.saved:hover {
    background: #059669 !important;
    color: #ffffff !important;
}

/* Button icon styling */
.sm-action-button.save-button .dashicons,
.sm-action-button.save-button i.dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    color: inherit !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Ensure proper button text visibility */
.sm-action-button.save-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Star rating numeric value next to stars - keep this as it's not in reviews CSS */
.sm-software-detail .smst-header-star-rating-value,
.sm-software-detail .smst-summary-star-rating-value,
.sm-software-detail .smst-similar-star-rating-value,
.sm-software-detail .smst-review-star-rating-value,
.smst-header-star-rating-value,
.smst-summary-star-rating-value,
.smst-similar-star-rating-value,
.smst-review-star-rating-value {
    margin-left: 6px !important;
    font-weight: 600 !important;
    color: var(--sm-text-color) !important;
    font-size: 16px !important;
    vertical-align: middle !important;
}

.sm-action-button.claimed-button {
    color: #10b981;
}

.sm-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navigation */
.sm-header-nav {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.sm-software-detail .sm-header-tabs,
.sm-software-detail .sm-detail-tabs {
    list-style: none !important;
    display: flex;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.sm-header-tabs li,
.sm-detail-tabs li {
    margin: 0;
}

.sm-header-tabs a,
.sm-detail-tabs a {
    display: block;
    padding: 12px 20px;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 15px;
}

.sm-header-tabs li.active a,
.sm-detail-tabs li.active a {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.sm-header-tabs a:hover,
.sm-detail-tabs a:hover {
    color: #2563eb;
}

/* Header Buttons - Consistent Styling */
.sm-write-review-btn,
.sm-visit-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 140px;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid transparent;
    outline: none;
}

/* ======================================================================
   G2-STYLE GRID LAYOUT - TWO COLUMN DESIGN WITH SIDEBAR NAVIGATION
   ====================================================================== */

/* Main Grid Container - Normal Layout */
.sm-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    position: relative;
    align-items: start;
    overflow: visible;
}

/* Left Sidebar - Normal Height */
.sm-left-sidebar {
    position: static;
    border-right: 1px solid #ccd0d4;
    padding: 20px;
    margin: 0;
    height: auto;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar content flows naturally with internal scroll */
.sm-left-sidebar * {
    overflow: visible !important;
}

.sm-left-sidebar .sm-nav-list {
    overflow: visible !important;
}

.sm-left-sidebar .sm-nav-list li {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Enhanced normal positioning for sidebar */
.sm-detail-grid > .sm-left-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    width: 100%;
    border-right: 1px solid #ccd0d4;
}

/* Allow normal page scrolling */
body, html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
}

.sm-software-detail.full-width,
.sm-software-detail {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
    height: auto !important;
    position: relative !important;
}

/* Prevent any transforms on grid container - ensure sticky works */
.sm-detail-grid {
    transform: none !important;
    backface-visibility: visible !important;
    perspective: none !important;
    filter: none !important;
    contain: none !important;
    isolation: auto !important;
    position: relative !important;
    overflow: visible !important;
}

/* WordPress Dashboard Style - Sticky Sidebar on Desktop */
@media (min-width: 992px) {
    /* Ensure grid layout works with sticky sidebar */
    html body .sm-detail-grid {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 0 !important;
        position: relative !important;
        width: 100% !important;
        min-height: 100vh !important;
    }
    
    /* Make main content normal without scroll */
    .sm-main-content,
    .sm-detail-grid > .sm-main-content,
    html body .sm-main-content {
        margin: 0 !important;
        width: 100% !important;
        padding: 10px !important;
        background: #ffffff !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure content sections inside main area can scroll properly */
    .sm-main-content .sm-content-section,
    .sm-main-content > *,
    .sm-main-content section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Make sure tabs content is scrollable */
    .sm-detail-tabs + div,
    .sm-detail-tabs ~ div {
        overflow: visible !important;
        height: auto !important;
    }
}

/* Normal static sidebar rules */
html body.wp-admin .sm-left-sidebar,
html body:not(.wp-admin) .sm-left-sidebar,
html body div.sm-software-detail .sm-left-sidebar,
html body article .sm-software-detail .sm-left-sidebar,
html body main .sm-software-detail .sm-left-sidebar,
html body section .sm-software-detail .sm-left-sidebar {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
    border-right: 1px solid #ccd0d4 !important;
    z-index: auto !important;
    padding: 20px !important;
    margin: 0 !important;
}

@media (min-width: 992px) {
    /* Normal desktop sidebar - static position */
    html body.wp-admin .sm-left-sidebar,
    html body:not(.wp-admin) .sm-left-sidebar,
    html body div.sm-software-detail .sm-left-sidebar,
    html body article .sm-software-detail .sm-left-sidebar,
    html body main .sm-software-detail .sm-left-sidebar,
    html body section .sm-software-detail .sm-left-sidebar {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        border-right: 1px solid #ccd0d4 !important;
        transform: none !important;
        will-change: auto !important;
        z-index: auto !important;
        margin: 0 !important;
        padding: 20px !important;
        float: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

/* NORMAL LAYOUT: Standard WordPress sidebar behavior */
@media (min-width: 992px) {
    /* STEP 1: Maintain grid layout for proper sidebar positioning */
    .sm-detail-grid {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 32px !important;
        position: relative !important;
        overflow: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
    }
    
    /* STEP 2: NORMAL SIDEBAR POSITIONING - Standard WordPress behavior */
    html body .sm-left-sidebar,
    html body div .sm-left-sidebar,
    html body article .sm-left-sidebar,
    html body main .sm-left-sidebar,
    html body section .sm-left-sidebar,
    html body .site .sm-left-sidebar,
    html body .site-content .sm-left-sidebar,
    html body .content-area .sm-left-sidebar,
    html body .main-content .sm-left-sidebar,
    html body .entry-content .sm-left-sidebar,
    html body .post .sm-left-sidebar,
    html body .page .sm-left-sidebar,
    html body .single .sm-left-sidebar,
    html body div.sm-software-detail .sm-left-sidebar,
    html body div.sm-software-detail.full-width .sm-left-sidebar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        z-index: 1 !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        will-change: auto !important;
        display: block !important;
        float: none !important;
    }
    
    /* STEP 3: Main content area - normal without scroll */
    .sm-main-content {
        background: #ffffff;
        padding: 10px;
        margin: 0;
        width: 100%;
        height: auto;
        overflow: visible !important;
        box-sizing: border-box;
        position: relative;
    }
}

/* Mobile: Stack layout naturally */
@media (max-width: 991px) {
    /* Stack sidebar above content on mobile */
    .sm-detail-grid {
        display: block !important;
        padding: 15px !important;
        gap: 0 !important;
    }
    
    .sm-left-sidebar {
        width: 100% !important;
        margin-bottom: 30px !important;
        padding: 20px !important;
        background: #f9f9f9 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
    
    .sm-main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
}

/* Mobile Navigation Toggle */
.sm-nav-toggle {
    display: none;
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--sm-nav-text);
    transition: all 0.2s ease;
}

.sm-nav-toggle:hover {
    background: var(--sm-nav-hover);
}

.sm-nav-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
    margin-left: auto;
}

.sm-nav-toggle-icon::before,
.sm-nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.sm-nav-toggle-icon::before {
    top: -6px;
}

.sm-nav-toggle-icon::after {
    bottom: -6px;
}

/* Sidebar Navigation - G2 Style */
.sm-sidebar-nav {
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-nav-list li {
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.sm-nav-list li:last-child {
    border-bottom: none;
}

.sm-nav-link {
    display: block;
    padding: 14px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.sm-nav-link:hover {
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
}

.sm-nav-link.active,
.sm-nav-link[aria-current="true"] {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    border-left-color: #2563eb;
}

.sm-nav-link.active:hover {
    background: #dbeafe;
}

/* Enhanced navigation interaction states */
.sm-nav-link.clicking {
    background: #dbeafe;
    transform: translateX(2px);
    transition: all 0.15s ease;
}

.sm-nav-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
    background: #f0f9ff;
}

.sm-nav-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

/* Smooth scroll behavior for the entire document */
html {
    scroll-behavior: smooth;
}

/* Enhanced section scroll margin for precise positioning */
.sm-content-section {
    scroll-margin-top: calc(var(--header-height, 80px) + 24px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 24px);
}

/* Enhanced targeting for specific heading elements */
.sm-tab-header {
    scroll-margin-top: calc(var(--header-height, 80px) + 60px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 60px);
}

.sm-tab-header h2 {
    scroll-margin-top: calc(var(--header-height, 80px) + 60px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 60px);
    position: relative;
}

/* Ensure direct h2 elements also have proper scroll margins */
.sm-content-section > h2 {
    scroll-margin-top: calc(var(--header-height, 80px) + 60px);
    scroll-snap-margin-top: calc(var(--header-height, 80px) + 60px);
}

/* Enhanced styling for tab headers with better visibility */
.sm-tab-header {
    margin-bottom: 40px;
    padding: 24px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.sm-tab-header h2 {
    color: #111827;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    position: relative;
    letter-spacing: -0.5px;
}

.sm-tab-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -20px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Add subtle shadow for better definition */
.sm-tab-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px;
    z-index: -1;
}

/* Focus styles for better accessibility when targeted */
.sm-tab-header h2:focus,
.sm-content-section h2:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Visual indicator when a heading is being targeted (temporary) */
.sm-scroll-target-highlight {
    animation: highlightTarget 1.0s ease-out;
}

/* Special animation for tab header headings */
.sm-tab-header h2.sm-scroll-target-highlight {
    animation: highlightTabHeader 1.2s ease-out;
}

@keyframes highlightTarget {
    0% {
        background-color: rgba(59, 130, 246, 0.15);
        transform: translateX(-6px);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    30% {
        background-color: rgba(59, 130, 246, 0.1);
        transform: translateX(-2px);
    }
    70% {
        background-color: rgba(59, 130, 246, 0.05);
    }
    100% {
        background-color: transparent;
        transform: translateX(0);
        box-shadow: none;
    }
}

@keyframes highlightTabHeader {
    0% {
        transform: scale(1.02) translateY(-2px);
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }
    50% {
        transform: scale(1.01) translateY(-1px);
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }
    100% {
        transform: scale(1) translateY(0);
        text-shadow: none;
    }
}

/* Enhanced underline animation when targeted */
.sm-tab-header h2.sm-scroll-target-highlight::after {
    animation: pulseUnderline 1.2s ease-out;
}

@keyframes pulseUnderline {
    0%, 100% {
        width: 80px;
        opacity: 1;
    }
    50% {
        width: 120px;
        opacity: 0.8;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
    }
}

/* Highlights Card - G2 Style */
.sm-highlights-card {
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-highlights-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--sm-text-color);
}

.sm-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.sm-highlight-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sm-highlight-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sm-highlight-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Review Summary Card - G2 Style */
.sm-review-summary-card {
    background: var(--sm-nav-bg);
    border: 1px solid var(--sm-nav-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--sm-text-color);
}

.sm-summary-rating {
    text-align: center;
}

.sm-summary-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--sm-text-color);
    line-height: 1;
    margin-bottom: 8px;
}

.sm-summary-stars {
    margin-bottom: 8px;
}

/* Remove comprehensive star rating system from this file to avoid conflicts with detail-page-software-reviews.css */

.sm-summary-count {
    font-size: 14px;
    color: var(--sm-text-light);
    font-weight: 500;
}

/* Sidebar Summary Breakdown */
.sm-summary-breakdown {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sm-nav-border);
}

.sm-breakdown-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--sm-text-color);
}

.sm-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-breakdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.sm-breakdown-label {
    min-width: 24px;
    font-weight: 500;
    color: var(--sm-text-color);
}

.sm-breakdown-bar {
    flex: 1;
    height: 6px;
    background: var(--sm-nav-border);
    border-radius: 3px;
    overflow: hidden;
}

.sm-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sm-nav-active) 0%, #8b5cf6 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.sm-breakdown-percent {
    min-width: 32px;
    text-align: right;
    font-weight: 500;
    color: var(--sm-text-light);
}

/* Summary Actions */
.sm-summary-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sm-nav-border);
}

.sm-summary-link {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.05);
    color: var(--sm-nav-active);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    border-left: none;
}

.sm-summary-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--sm-nav-active);
    text-decoration: none;
}

/* Main Content Area - G2 Style */
.sm-main-content {
    min-width: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.sm-tab-content {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Remove extra spacing from content sections in tab */
.sm-content-section#product-info,
.sm-content-section.active {
    margin-top: 0;
    padding-top: 0;
}

/* Specifically target the overview single wrapper */
.sm-overview-single {
    margin: 0;
    padding: 0;
}

.sm-detail-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Content Sections - Proper G2 spacing and scroll behavior */
.sm-content-section {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.sm-content-section:last-child {
    margin-bottom: 24px;
}

.sm-content-section h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    line-height: 1.3;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sm-content-section h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

/* Section Visibility - All sections visible by default */
.sm-content-section {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Content section backgrounds and cards */
.sm-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-section:last-child {
    margin-bottom: 0;
}

/* ======================================================================
   ACCESSIBILITY ENHANCEMENTS
   ====================================================================== */

/* Screen Reader Only Content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip Links */
.sm-skip-links {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 999999;
}

.sm-skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--sm-nav-active);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sm-skip-link:focus {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 999999;
}

/* Focus Management */
.sm-content-section h1,
.sm-content-section h2,
.sm-content-section h3 {
    outline: none;
}

.sm-content-section h1:focus,
.sm-content-section h2:focus,
.sm-content-section h3:focus {
    outline: 2px solid var(--sm-nav-active);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --sm-nav-bg: #000000;
        --sm-nav-border: #ffffff;
        --sm-nav-text: #ffffff;
        --sm-nav-active: #00ff00;
        --sm-nav-hover: #333333;
        --sm-text-color: #000000;
        --sm-text-light: #333333;
    }
    
    .sm-nav-link {
        border: 2px solid var(--sm-nav-border);
    }
    
    .sm-nav-link.active {
        background: var(--sm-nav-active);
        color: #000000;
        border-color: var(--sm-nav-active);
    }
}

/* Smooth Scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Content transitions for G2-like feel */
.sm-content-section {
    transition: opacity 0.2s ease-in-out;
}

.sm-nav-link {
    position: relative;
}

.sm-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2563eb;
    transition: all 0.2s ease;
}

/* Loading states for smooth transitions */
.sm-content-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hover effects for interactive elements */
.sm-section {
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.sm-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .sm-breakdown-fill {
        transition: none;
    }
    
    .sm-section {
        transition: none;
    }
    
    .sm-section:hover {
        transform: none;
    }
}

/* Write Review Button Styles - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

.sm-visit-website-btn {
    background-color: #1A172C;
    color: white;
    border-color: #1A172C;
}

.sm-visit-website-btn:hover {
    background-color: #362e62;
    border-color: #362e62;
    color: white;
}

/* Tab Content */
.sm-software-detail .sm-tab-content {
    margin: 0 0 30px 0; /* Remove top margin, keep bottom */
    width: 100%;
}

.sm-software-detail .sm-tab-pane {
    display: none;
    animation: fadeIn 0.3s;
}

.sm-software-detail .sm-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======================================================================
   MAIN CONTENT SECTIONS
   Unified styling for all content sections in the detail page
   ====================================================================== */

.sm-section {
    margin-bottom: 2rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sm-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--sm-text-color);
    font-weight: 600;
}

.sm-section h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.4;
}

/* Categories */
.sm-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sm-category-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #e8f0fe;
    color: var(--sm-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.sm-category-tag:hover {
    background: #d2e3fc;
    color: var(--sm-primary);
    text-decoration: none;
}

/* Clickable category links */
a.sm-category-tag.sm-category-link {
    cursor: pointer;
    text-decoration: none;
}

a.sm-category-tag.sm-category-link:hover {
    background: #1e40af;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a.sm-category-tag.sm-category-link:active {
    transform: translateY(0);
}

/* Video Container */
.sm-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--sm-radius);
}

.sm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content section backgrounds and cards */
.sm-section {
    margin-bottom: 2rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

.sm-section:last-child {
    margin-bottom: 0;
}

/* Content transitions for G2-like feel */
.sm-section {
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.sm-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}


/* Integrations */
.sm-integrations-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
    margin-bottom: 1.5rem;
}

.sm-integrations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sm-integration-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.sm-integration-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sm-light-bg);
    border-radius: 50%;
    color: var(--sm-primary);
}

.sm-integration-name {
    font-weight: 500;
}

/* Write Review Section */
.sm-write-review-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.sm-write-review-container {
    text-align: center;
}

/* Similar Software - MIGRATED to detail-page-similar-software.css */
/* All similar software styles have been moved to the dedicated CSS file */

/* Review Modal */
.sm-review-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.sm-review-modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-md);
}

.sm-review-form-steps {
    padding: 2rem;
}

/* ======================================================================
   VENDOR INFORMATION SECTION
   Improved styling for vendor details with better organization
   ====================================================================== */

.software-vendor-information {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

.vendor-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.vendor-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vendor-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.vendor-detail-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.vendor-detail-icon {
    font-size: 18px;
    color: #4b5563;
    min-width: 24px;
    text-align: center;
}

.vendor-detail-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.vendor-detail-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vendor-detail-value {
    color: #1f2937;
    font-weight: 500;
}

.vendor-detail-value a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.vendor-detail-value a:hover {
    text-decoration: underline;
}

.vendor-overview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.vendor-overview h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: #1f2937;
}

.vendor-description {
    color: #4b5563;
    line-height: 1.6;
}

.vendor-pros-cons {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.vendor-pros-cons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.vendor-pros h4,
.vendor-cons h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
}

.vendor-pros h4 {
    color: #10b981;
}

.vendor-cons h4 {
    color: #ef4444;
}

.vendor-pros-list,
.vendor-cons-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vendor-pro-item,
.vendor-con-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
}

.vendor-pro-item {
    background: rgba(16, 185, 129, 0.05);
}

.vendor-con-item {
    background: rgba(239, 68, 68, 0.05);
}

.vendor-pro-icon,
.vendor-con-icon {
    flex-shrink: 0;
    font-weight: bold;
}

.vendor-pro-text,
.vendor-con-text {
    color: #4b5563;
    line-height: 1.5;
}

/* Pros & Cons Section */
.sm-pros-cons-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--sm-shadow);
    border: 1px solid #e5e7eb;
    padding: 24px 28px;
    margin: 30px 0;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.sm-pros-cons-section h2 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
}

.sm-pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.sm-pros-container,
.sm-cons-container {
    padding: 0;
}

.sm-pros-container h3,
.sm-cons-container h3 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.sm-pros-container h3 { color: var(--sm-pros-color); }
.sm-cons-container h3 { color: var(--sm-cons-color); }

.sm-pro-icon,
.sm-con-icon { margin-right: 8px; }

/* Better list spacing */
.sm-feature-list { display: flex; flex-direction: column; gap: 12px; }

/* Card-style items for readability */
.sm-feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.sm-pros-container .sm-feature-item { border-left: 4px solid var(--sm-pros-color); }
.sm-cons-container .sm-feature-item { border-left: 4px solid var(--sm-cons-color); }

.sm-feature-item:hover { box-shadow: var(--sm-shadow-md); transform: translateY(-1px); }

.sm-feature-text {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
    text-decoration: none;
}

.sm-feature-item:hover .sm-feature-text { color: #1d4ed8; text-decoration: underline; }

/* Count pill */
.sm-selection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f3f4f6;
    color: #111827;
}

.sm-pros-container .sm-selection-count { background: rgba(72, 187, 120, 0.12); color: #047857; }
.sm-cons-container .sm-selection-count { background: rgba(245, 101, 101, 0.12); color: #b91c1c; }

.sm-no-features { color: var(--sm-text-light); font-style: italic; }

 .sm-reviews-verification { margin-top: 20px; padding-top: 20px; border-top: none; }

/* Reference-style Pros & Cons panels (green/red backgrounds with bullet icons) */
.sm-pros-container,
.sm-cons-container {
    border-radius: 10px;
    padding: 16px 16px 12px 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}
.sm-pros-container { background: #ecfdf5; border-color: #bbf7d0; }
.sm-cons-container { background: #ffe4e6; border-color: #fecaca; }

/* Headings inside panels */
.sm-pros-container h3,
.sm-cons-container h3 { margin: 0 0 10px 0; }
.sm-pros-container h3 { color: #047857; }
.sm-cons-container h3 { color: #b91c1c; }

/* Items become clean bullet list with left icon and subtle count pill */
.sm-pros-cons-section .sm-feature-list { gap: 10px; }
.sm-pros-cons-section .sm-feature-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 6px;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start; /* left align content */
}
.sm-pros-cons-section .sm-feature-text { text-decoration: none; color: #1f2937; flex: 1 1 auto; }

/* Bullet icons */
.sm-pros-container .sm-feature-item::before,
.sm-cons-container .sm-feature-item::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    margin-right: 6px;
    flex: 0 0 18px;
}
.sm-pros-container .sm-feature-item::before { content: '✓'; background: #d1fae5; color: #047857; font-weight: 700; }
.sm-cons-container .sm-feature-item::before { content: '✖'; background: #fee2e2; color: #b91c1c; font-weight: 700; }

/* Count pills subtle on right */
.sm-pros-cons-section .sm-selection-count {
    background: rgba(0,0,0,0.06);
    color: #374151;
    border-radius: 999px;
    min-width: 28px; height: 22px; padding: 0 8px; font-size: 12px; font-weight: 700;
    margin-left: auto; /* push count to the far right */
}
.sm-pros-container .sm-selection-count { background: rgba(4, 120, 87, 0.12); color: #065f46; }
.sm-cons-container .sm-selection-count { background: rgba(185, 28, 28, 0.12); color: #7f1d1d; }

/* Review Verification Styles - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

/* Reviews Tab Visibility Fix - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

/* Fix theme conflicts */
.sm-software-detail *,
.sm-software-detail *::before,
.sm-software-detail *::after {
    box-sizing: border-box;
}

.sm-software-detail h1,
.sm-software-detail h2,
.sm-software-detail h3,
.sm-software-detail h4,
.sm-software-detail h5,
.sm-software-detail h6 {
    margin-top: 0;
    line-height: 1.2;
    font-family: inherit;
}

.sm-software-detail ul,
.sm-software-detail ol {
    margin-top: 0;
    margin-bottom: 1rem;
}

.sm-software-detail .sm-detail-tabs a:focus {
    outline: none;
    text-decoration: none;
}

.sm-software-detail button {
    cursor: pointer;
}

/* G2-Style Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .sm-detail-grid {
        grid-template-columns: 240px 1fr;
        gap: 24px;
        padding: 16px;
    }
    
    :root {
        --sm-sidebar-width: 240px;
        --sm-grid-gap: 24px;
    }
}

/* Mobile and Tablet Layout - G2 Style */
@media (max-width: 991px) {
    .sm-detail-grid {
        display: block;
        padding: 16px;
        max-width: 100%;
        gap: 0;
    }
    
    .sm-left-sidebar {
        position: static !important; /* disable sticky on mobile to avoid layout shift */
        top: auto !important;
        margin-bottom: 24px;
        width: 100%;
        height: auto !important;
        will-change: auto; /* remove optimization on mobile */
        contain: none; /* remove layout containment on mobile */
    }
    
    .sm-nav-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 0;
        font-size: 16px;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .sm-nav-toggle:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    .sm-nav-toggle::after {
        content: '▼';
        transition: transform 0.2s ease;
        font-size: 12px;
        color: #6b7280;
    }
    
    .sm-nav-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    .sm-nav-toggle-icon {
        display: none; /* Use ::after pseudo-element instead */
    }
    
    .sm-sidebar-nav {
        position: static;
        top: auto;
        margin-bottom: 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .sm-sidebar-nav.expanded {
        max-height: 500px;
    }
    
    .sm-nav-toggle-icon {
        display: none; /* disable old toggle icon */
    }
    
    .sm-highlights-card {
        position: static;
        top: auto;
        margin-top: 0;
    }
    
    /* .sm-review-summary-card - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */
    
    .sm-content-section {
        scroll-margin-top: 16px;
        margin-bottom: 48px;
        min-height: 50vh;
    }
    
    .sm-content-section:last-child {
        min-height: auto;
    }
    
    .sm-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sm-content-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    /* Overview styles moved to overview-section.css */
    
    .vendor-details,
    .vendor-pros-cons-container {
        grid-template-columns: 1fr;
    }
}

/* Traditional Responsive Breakpoints */
@media (max-width: 1024px) {
    /* Overview grid styles moved to overview-section.css */
    
    .sm-pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sm-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sm-header-left {
        width: 200px;
        min-width: 200px;
    }
    
    .sm-software-logo {
        max-height: 120px;
    }
    
    .sm-header-right {
        width: 100%;
        margin-top: 1rem;
        justify-content: space-between;
    }
    
    .sm-header-actions {
        flex-wrap: wrap;
    }
    
    .sm-badge-top {
        width: 60px;
        top: -15px;
        right: -15px;
    }
    
    /* .sm-write-review-btn - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */
    .sm-visit-website-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
        height: 40px;
    }
    
    .sm-feature-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sm-feature-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .sm-similar-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .vendor-details,
    .vendor-pros-cons-container {
        grid-template-columns: 1fr;
    }
    
    .sm-detail-tabs a {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .sm-software-detail {
        padding: 0 0.5rem;
    }
    
    .sm-header-right {
        flex-direction: column;
        width: 100%;
    }
    
    /* .sm-write-review-btn - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */
    .sm-visit-website-btn {
        width: 100%;
    }
    
    .sm-similar-grid {
        grid-template-columns: 1fr;
    }
}



/* ======================================================================
   CRITICAL OVERRIDES - Merged from software-detail-template-overrides.css
   High priority CSS for ensuring proper layout and design consistency
   ====================================================================== */

/* ======================================================================
   SOFTWARE DETAIL TEMPLATE - CRITICAL OVERRIDES
   High priority CSS for ensuring proper layout and design consistency
   ====================================================================== */

/* SWREV REVIEWS SECTION - CRITICAL OVERRIDES - MIGRATED to detail-page-software-reviews.css on 2025-10-11 */

/* SIMILAR SOFTWARE SECTION - MIGRATED to detail-page-similar-software.css on 2025-10-11 */
/* All similar software styles have been moved to the dedicated CSS file */

/* SAVE TO LISTS BUTTON */
.sm-save-to-lists-btn {
    background: #6C63FF !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
}

.sm-save-to-lists-btn:hover {
    background: #5a52e8 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3) !important;
}

.sm-save-to-lists-btn:active {
    background: #4c44d0 !important;
    transform: translateY(0px) !important;
}

.sm-save-to-lists-btn:focus {
    outline: 2px solid #6C63FF !important;
    outline-offset: 2px !important;
}

.sm-save-to-lists-btn .icon {
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Ensure button styling overrides any theme styles */
body .sm-save-to-lists-btn,
.wp-block-buttons .sm-save-to-lists-btn,
.entry-content .sm-save-to-lists-btn {
    background: #6C63FF !important;
    color: #ffffff !important;
    border: none !important;
}

body .sm-save-to-lists-btn:hover,
.wp-block-buttons .sm-save-to-lists-btn:hover,
.entry-content .sm-save-to-lists-btn:hover {
    background: #5a52e8 !important;
    color: #ffffff !important;
}

/* ======================================================================
   HORIZONTAL STICKY TABS NAVIGATION - Desktop Layout Enhancement
   Added: 2025-10-18
   Converts sidebar navigation to horizontal sticky tabs for better UX
   ====================================================================== */

/* Admin bar-safe offset variables */
:root { 
    --sh-admin-bar: 0px; 
}

body.admin-bar { 
    --sh-admin-bar: 32px; 
}

@media (max-width: 782px) {
    body.admin-bar { 
        --sh-admin-bar: 46px; 
    }
}

/* Desktop Layout: Single-column with horizontal tabs */
@media (min-width: 1024px) {
    /* Fix ALL parent containers to allow sticky positioning - CRITICAL */
    body,
    html,
    .sm-software-detail,
    .sm-software-detail.g2-style,
    .sm-software-detail.full-width,
    .software-detail-wrapper,
    .entry-content,
    .site-content,
    main,
    article {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        transform: none !important;
        contain: none !important;
        filter: none !important;
        perspective: none !important;
        will-change: auto !important;
    }
    
    /* Ensure parent container allows full width with white background */
    .sm-software-detail,
    .sm-software-detail.g2-style,
    .sm-software-detail.full-width {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* Two-column layout: sidebar on left, content on right - FULL WIDTH */
    body .sm-software-detail .sm-detail-grid,
    .sm-software-detail .sm-detail-grid,
    .sm-detail-grid {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        grid-template-rows: auto !important;
        gap: 32px !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* Hide mobile toggle on desktop */
    .sm-nav-toggle {
        display: none !important;
    }
    
    /* Sidebar on left with vertical stack of cards - CLEAN WHITE BACKGROUND */
    body .sm-software-detail .sm-left-sidebar,
    .sm-software-detail .sm-left-sidebar,
    .sm-detail-grid .sm-left-sidebar,
    .sm-left-sidebar {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        padding: 0 !important;
        border: none !important;
        border-right: none !important;
        background: transparent !important;
        background-color: transparent !important;
        width: 100% !important;
        position: sticky !important;
        top: calc(var(--sh-admin-bar) + 80px) !important;
        align-self: start !important;
        max-height: calc(100vh - var(--sh-admin-bar) - 100px) !important;
        overflow-y: auto !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    /* Cards styling */
    .sm-highlights-card,
    .sm-review-summary-card {
        display: block !important;
        margin: 0 !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 20px !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Main content takes remaining space */
    body .sm-software-detail .sm-main-content,
    .sm-software-detail .sm-main-content,
    .sm-main-content {
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    
    /* Ensure main content spans full width */
    .sm-main-content {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
    
    /* Horizontal tabs container - ENHANCED STICKY */
    body .sm-top-tabs,
    .sm-software-detail .sm-top-tabs,
    nav.sm-top-tabs {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--sh-admin-bar) !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin: 0 0 32px 0 !important;
        padding: 0 20px !important;
        transition: box-shadow 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
    }

/* Shadow effect when stuck */
.sm-top-tabs.is-stuck {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Horizontal navigation list */
.sm-top-tabs .sm-nav-list {
    display: flex !important;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Webkit scrollbar styling for horizontal overflow */
.sm-top-tabs .sm-nav-list::-webkit-scrollbar {
    height: 4px;
}

.sm-top-tabs .sm-nav-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sm-top-tabs .sm-nav-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.sm-top-tabs .sm-nav-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation list items */
.sm-top-tabs .sm-nav-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
}

/* Navigation links - reuse existing tab styling */
.sm-top-tabs .sm-nav-link {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    padding: 14px 20px !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    border-left: none !important;
    transition: all 0.2s ease !important;
    font-size: 15px !important;
    background: transparent !important;
}

.sm-top-tabs .sm-nav-link:hover {
    color: #2563eb !important;
    background: #f9fafb !important;
}

/* Active tab styling */
.sm-top-tabs .sm-nav-link.active,
.sm-top-tabs .sm-nav-link[aria-current="true"] {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
    font-weight: 600 !important;
    background: #eff6ff !important;
}

.sm-top-tabs .sm-nav-link.active:hover {
    background: #dbeafe !important;
}

/* Click interaction */
.sm-top-tabs .sm-nav-link.clicking {
    background: #dbeafe !important;
    transform: translateY(1px);
}

/* Focus styles for accessibility */
.sm-top-tabs .sm-nav-link:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: -2px !important;
    background: #f0f9ff !important;
}

.sm-top-tabs .sm-nav-link:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: -2px !important;
}

}

/* Mobile: Keep existing behavior (≤1023px) */
@media (max-width: 1023px) {
    /* Ensure sticky doesn't interfere on mobile */
    .sm-top-tabs {
        position: static !important;
        box-shadow: none !important;
    }
    
    /* Mobile keeps collapsible sidebar behavior */
    .sm-left-sidebar {
        display: block !important;
    }
}

/* Sentinel element for IntersectionObserver (no visual styling needed) */
#sm-tabs-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
    margin: 0;
    padding: 0;
}