/* Software Features Tab Styles */

/* Scroll anchor offset for sticky headers */
:root {
    --sm-sticky-offset: 120px;
    --sm-section-pad: 24px;
    --sm-section-pad-mobile: 16px;
}

/* Ensure tab header appears below sticky headers when scrolling */
.sm-tab-header,
.sm-tab-header h2 {
    scroll-margin-top: var(--sm-sticky-offset, 120px);
    scroll-snap-margin-top: var(--sm-sticky-offset, 120px);
}

.sm-features-tab-content {
    padding: 32px 0;
    max-width: 100%;
    background: #fff;
}

/* Tab Header - Matching Vendor Information style */
.sm-tab-header { 
    margin-bottom: 32px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e8e8e8 !important;
}

.sm-tab-header h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Remove blue gradient underline from heading */
.sm-features-tab-content .sm-tab-header h2::after {
    display: none !important;
    content: none !important;
}

.sm-tab-header .sm-tab-description {
    font-size: 16px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
    position: relative !important;
}

.sm-tab-header .sm-tab-description::before,
.sm-tab-header .sm-tab-description::after {
    display: none !important;
    content: none !important;
}

.sm-tab-logo { 
    width: 48px; 
    height: 48px; 
    object-fit: contain; 
    border-radius: 8px; 
    border: 1px solid #e5e7eb;
}

/* Section Styles (scoped to features tab to avoid global overrides) */
.sm-features-tab-content .sm-section { 
    padding: 16px var(--sm-section-pad) 20px;
}

/* Unified Features Container - similar to overview section */
.sm-features-unified-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

/* Header inside unified container */
.sm-tab-header-inside {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.sm-tab-header-inside h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-tab-header-inside .sm-tab-description {
    font-size: 16px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Highlights bar inside container */
.sm-highlights-bar-inside {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px 0;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* Remove extra padding from unified container sections */
.sm-features-unified-container.sm-section {
    padding: 24px;
}

/* Headings inside unified container - remove bottom border, keep spacing */
.sm-features-unified-container h3 {
    border-bottom: none !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
}

/* Spacing utility for second heading in unified container */
.sm-mt-24 {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid #e5e7eb !important;
}

.sm-features-tab-content .sm-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2b6cb0;
}

/* Match Core Features and Key Features heading style to Key Capabilities */
.sm-features-tab-content .sm-section h3.sm-core-features,
.sm-features-tab-content .sm-section h3.sm-key-features {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2b6cb0;
}

/* Features Grid - Core Features */
.sm-features-detailed-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; 
    gap: 16px !important; 
    margin-top: 24px;
    width: 100%;
}

/* Feature Cards */
.sm-feature-card { 
    display: flex; 
    align-items: flex-start;
    gap: 16px; 
    padding: 20px; 
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    background: #ffffff; 
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-feature-card:hover {
    border-color: var(--sm-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.sm-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-feature-number { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    background: var(--sm-primary); 
    color: #ffffff; 
    font-size: 14px;
    font-weight: 600;
}

.sm-feature-content {
    flex: 1;
}

.sm-feature-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sm-feature-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Key Features Grid - One feature per line */
.sm-features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 24px;
    width: 100%;
}

.sm-features-grid > li,
.sm-features-grid > div {
    margin: 0 !important; /* Ensure no list-item default margins create gaps */
    width: 100%;
}

/* Additional Features Section */
.sm-additional-features {
    margin-top: 24px;
}

.sm-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

/* Improved Feature Item Cards - Works for both Core and Key Features */
.sm-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    transition: all 0.2s ease;
    min-height: 56px;
}

.sm-feature-item:hover {
    border-color: var(--sm-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.sm-feature-bullet {
    color: var(--sm-primary);
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Feature icon styling - for check marks and icons */
.sm-feature-item .sm-feature-icon {
    width: 24px;
    height: 24px;
    color: var(--sm-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm-feature-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

/* Feature name styling within feature items */
.sm-feature-item .sm-feature-name {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.sm-no-features {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    margin: 24px 0;
}

/* Key Capabilities Section */
.sm-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.sm-capability-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    transition: all 0.2s ease;
}

/* Capability items in unified container - lighter background, no shadow */
.sm-features-unified-container .sm-capability-item {
    background: #f9fafb;
    box-shadow: none;
}

.sm-capability-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

/* Hover effect for capability items in unified container */
.sm-features-unified-container .sm-capability-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.sm-capability-item.supported {
    border-left: 4px solid #10b981;
}

.sm-capability-item.not-supported {
    border-left: 4px solid #ef4444;
}

.sm-capability-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sm-check {
    color: #10b981;
    font-size: 18px;
    font-weight: 700;
}

.sm-cross {
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
}

.sm-capability-content {
    flex: 1;
}

.sm-capability-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.sm-capability-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Integrations Section */
.sm-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.sm-integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    transition: all 0.2s ease;
}

.sm-integration-card:hover {
    border-color: var(--sm-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.sm-integration-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--sm-primary);
}

.sm-integration-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.sm-integration-status {
    font-size: 12px;
}

.sm-status-available {
    color: #10b981;
    font-weight: 500;
}

.sm-no-integrations {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.sm-no-integrations p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Technical Specifications */
.sm-tech-specs {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.sm-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sm-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.sm-spec-item:last-child {
    border-bottom: none;
}

.sm-spec-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-spec-value {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

/* Responsive Design for Consistent Grid Behavior */

/* Desktop: 3 columns (force with !important) */
@media (min-width: 1024px) {
    .sm-features-grid,
    .sm-features-detailed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Tablet: 2 columns (force with !important) */
@media (min-width: 640px) and (max-width: 1023.98px) {
    .sm-features-grid,
    .sm-features-detailed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Small screens: ensure grid still works */
@media (max-width: 639px) {
    .sm-features-grid,
    .sm-features-detailed-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile and general responsive adjustments */
@media (max-width: 768px) {
    .sm-features-tab-content,
    .sm-features-tab-content .sm-section {
        padding-left: var(--sm-section-pad-mobile);
        padding-right: var(--sm-section-pad-mobile);
    }
    
    /* Unified container mobile padding */
    .sm-features-unified-container.sm-section {
        padding: 16px;
    }
    
    /* Header inside container - mobile */
    .sm-tab-header-inside h2 {
        font-size: 24px !important;
    }
    
    .sm-tab-header-inside .sm-tab-description {
        font-size: 14px !important;
    }
    
    /* Align highlight chips with mobile paddings */
    .sm-highlights-bar {
        margin-left: 16px;
        margin-right: 16px;
    }
    .sm-tab-header {
        padding: 0 16px;
    }
    
    .sm-tab-header h2 {
        font-size: 24px;
    }
    
    .sm-features-detailed-grid,
    .sm-features-grid,
    .sm-capabilities-grid,
    .sm-integrations-grid,
    .sm-features-list {
        grid-template-columns: 1fr;
    }
    
    .sm-feature-card,
    .sm-capability-item {
        padding: 16px;
    }
    
    .sm-specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sm-feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .sm-feature-icon {
        align-self: center;
    }
}

/* --- Feature Highlights Bar (chips) --- */
.sm-highlights-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
    padding: 12px var(--sm-section-pad);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.sm-highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    transition: all 0.2s ease;
}

.sm-highlight-chip .sm-h-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef2ff;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
}

.sm-highlight-chip.positive {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #eef2ff, #f5f7ff);
}

.sm-highlight-chip.neutral {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
}

/* --- Readability upgrade for Core Features text --- */
.sm-core-features-text p {
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Core Features text in unified container - no extra shadow */
.sm-features-unified-container .sm-core-features-text p {
    box-shadow: none;
}


/* --- Key Features card polish --- */
.sm-feature-item {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #10b981;
    background: #ffffff;
}

/* Feature items in unified container - lighter background */
.sm-features-unified-container .sm-feature-item {
    background: #f9fafb;
}

.sm-feature-item .sm-feature-icon {
    color: #10b981;
}

.sm-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
    background: #ffffff;
}

/* --- Media Section (Videos) --- */
/* Media heading - matching pricing style */
.sm-media-main-heading {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e8e8e8 !important;
    margin-bottom: 32px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sm-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.sm-media-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-media-title h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.sm-media-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sm-media-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments for media grid */
@media (max-width: 1024px) {
    .sm-media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sm-media-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
