/* Security Pitstop - Public CSS */

/* Reset e Base */
.security-pitstop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.sp-header {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    text-align: center;
}

.sp-header h1 {
    color: #2d3748;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-header p {
    color: #718096;
    font-size: 1.3em;
}

/* Progress Bar */
.sp-progress-bar {
    width: 100%;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.sp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Form Styles */
.sp-form-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.sp-section-title {
    color: #2d3748;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.sp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sp-form-group {
    margin-bottom: 25px;
}

.sp-form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.sp-form-group input,
.sp-form-group select,
.sp-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.sp-form-group input:focus,
.sp-form-group select:focus,
.sp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.sp-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Alert */
.sp-alert {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sp-alert-info {
    background: #bee3f8;
    border-left: 4px solid #3182ce;
    color: #2c5282;
}

.sp-alert-success {
    background: #c6f6d5;
    border-left: 4px solid #38a169;
    color: #22543d;
}

.sp-alert-warning {
    background: #feebc8;
    border-left: 4px solid #dd6b20;
    color: #7c2d12;
}

.sp-alert-error {
    background: #fed7d7;
    border-left: 4px solid #f56565;
    color: #742a2a;
}

/* Question Card */
.sp-question-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.sp-question-number {
    color: #667eea;
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.sp-question-text {
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Radio Group */
.sp-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.sp-radio-option {
    position: relative;
}

.sp-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.sp-radio-option label {
    display: block;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.sp-radio-option input[type="radio"]:checked + label {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sp-radio-option label:hover {
    border-color: #667eea;
}

/* Category Tabs */
.sp-category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.sp-category-tab {
    padding: 12px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #718096;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.sp-category-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.sp-category-tab:hover {
    color: #667eea;
}

/* Score Grid */
.sp-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.sp-score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.sp-score-card h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sp-score-value {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.sp-score-label {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Risk Badge */
.sp-risk-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
    margin: 20px 0;
}

.sp-risk-low {
    background: #48bb78;
    color: white;
}

.sp-risk-medium {
    background: #ed8936;
    color: white;
}

.sp-risk-high {
    background: #f56565;
    color: white;
}

.sp-risk-critical {
    background: #9b2c2c;
    color: white;
}

/* Recommendation Card */
.sp-recommendation-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.sp-recommendation-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.sp-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.sp-rec-title {
    color: #2d3748;
    font-size: 1.3em;
    font-weight: 700;
}

.sp-priority-badge {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
}

.sp-priority-urgent {
    background: #fed7d7;
    color: #c53030;
}

.sp-priority-high {
    background: #feebc8;
    color: #c05621;
}

.sp-priority-medium {
    background: #bee3f8;
    color: #2c5282;
}

.sp-rec-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sp-action-items {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.sp-action-items h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.sp-action-items ul {
    list-style: none;
    padding-left: 0;
}

.sp-action-items li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
}

.sp-action-items li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Solution Grid */
.sp-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sp-solution-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sp-solution-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.sp-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.sp-solution-vendor {
    color: #667eea;
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-solution-name {
    color: #2d3748;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.sp-solution-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sp-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sp-features-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
}

.sp-features-list li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Buttons */
.sp-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.sp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.sp-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.sp-btn-secondary:hover {
    background: #cbd5e0;
}

.sp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Company Info */
.sp-company-info {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sp-company-info h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

.sp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.sp-info-item {
    display: flex;
    gap: 10px;
}

.sp-info-label {
    color: #718096;
    font-weight: 600;
    min-width: 120px;
}

.sp-info-value {
    color: #2d3748;
    font-weight: 700;
}

/* Loading Spinner */
.sp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hidden */
.sp-hidden {
    display: none !important;
}

/* Modal */
.sp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.sp-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.sp-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sp-modal-header {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.sp-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.sp-modal-icon .sp-icon-check {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.sp-modal-header h2 {
    color: #2d3748;
    font-size: 1.8em;
    margin: 0;
}

.sp-modal-body {
    padding: 30px 40px;
}

.sp-modal-message {
    color: #2d3748;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.sp-modal-details {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sp-modal-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
}

.sp-modal-features li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: #2d3748;
    font-size: 1.05em;
    line-height: 1.6;
}

.sp-modal-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
}

.sp-modal-email-note {
    background: #bee3f8;
    border-left: 4px solid #3182ce;
    padding: 15px 20px;
    border-radius: 8px;
    color: #2c5282;
    margin-top: 20px;
    line-height: 1.6;
}

.sp-modal-email-note strong {
    color: #1e4d72;
}

.sp-modal-footer {
    padding: 20px 40px 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.sp-modal-close {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-header h1 {
        font-size: 1.8em;
    }
    
    .sp-form-row {
        grid-template-columns: 1fr;
    }
    
    .sp-radio-group {
        grid-template-columns: 1fr;
    }
    
    .sp-score-grid,
    .sp-solution-grid {
        grid-template-columns: 1fr;
    }
    
    .sp-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .sp-modal-header,
    .sp-modal-body,
    .sp-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .sp-modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .sp-modal-icon .sp-icon-check {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
}
