/**
 * Software Detail Page - Download Link Styling
 * 
 * Styles for the download link component displayed below pricing section
 */

.sm-download-section {
    margin: 40px 0;
    padding: 16px;
    border: .1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: visible;
    display: block;
     box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.sm-download-header {
    margin: 0 -16px 16px -16px;
    padding: 24px 32px;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff !important;
    display: block;
}

.sm-download-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.sm-download-header-description {
    font-size: 14px;
    color: #666 !important;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.sm-download-container {
    background: #003049;
    border-radius: 8px;
    padding: 32px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    box-shadow: none;
    position: relative;
    overflow: visible;
    margin: 0;
    border: 1px solid #003049;
}

.sm-download-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
}

.sm-download-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.sm-download-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    width: 100%;
    height: 100%;
}

.sm-download-content {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sm-download-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.sm-download-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 400;
}

.sm-download-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
    flex-shrink: 0;
}

.sm-download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #ffffff;
    color: #003049;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sm-download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.sm-download-button:hover::before {
    left: 100%;
}

.sm-download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #002137;
}

.sm-download-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-download-button-text {
    font-weight: 600;
}

.sm-download-link-alt {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.sm-download-link-alt:hover {
    opacity: 0.8;
    color: #ffffff;
}

.sm-download-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 14px;
    border-radius: 6px;
    margin: 16px 0 0 0;
    font-weight: 400;
}

.sm-download-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sm-download-header {
        padding: 20px 24px;
    }
    
    .sm-download-header h2 {
        font-size: 20px;
    }
    
    .sm-download-header-description {
        font-size: 13px;
    }
    
    .sm-download-container {
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        align-items: stretch;
        margin: 12px;
        border-radius: 8px;
    }
    
    .sm-download-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .sm-download-content {
        align-items: flex-start;
    }
    
    .sm-download-title {
        font-size: 15px;
    }
    
    .sm-download-description {
        font-size: 13px;
    }
    
    .sm-download-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .sm-download-button {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .sm-download-link-alt {
        width: 100%;
        text-align: center;
    }
    
    .sm-download-note {
        width: 100%;
        text-align: left;
        font-size: 11px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .sm-download-section {
        border-radius: 8px;
        margin: 24px 0;
    }
    
    .sm-download-header {
        padding: 16px 20px;
    }
    
    .sm-download-header h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .sm-download-header-description {
        font-size: 12px;
    }
    
    .sm-download-container {
        padding: 20px;
        gap: 12px;
        margin: 10px;
        border-radius: 6px;
    }
    
    .sm-download-icon {
        width: 45px;
        height: 45px;
    }
    
    .sm-download-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .sm-download-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .sm-download-button {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .sm-download-link-alt {
        font-size: 13px;
    }
    
    .sm-download-note {
        font-size: 11px;
        padding: 8px 10px;
        margin-top: 10px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
   
    
    .sm-download-header {
        background: #1a1a1a;
        border-bottom-color: #333;
    }
    
    .sm-download-container {
        background: #003049;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}
