/**
 * Estilos para T3CHWARE Security Checker
 */

.t3chware-security-checker {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.t3chware-check-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.t3chware-check-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.t3chware-check-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.t3chware-check-form {
    text-align: center;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.t3chware-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.t3chware-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}

.t3chware-url-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.t3chware-url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.t3chware-disclaimer {
    margin: 20px 0;
    padding: 15px 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    text-align: center;
}

.t3chware-disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.t3chware-check-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.t3chware-check-btn:active {
    transform: translateY(0);
}

.t3chware-check-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.t3chware-check-results {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

.t3chware-score-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.t3chware-score-circle {
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.t3chware-score-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    animation: spin 2s linear infinite;
}

.t3chware-score-circle.level-alta::before {
    border-top-color: #27ae60;
    border-right-color: #2ecc71;
}

.t3chware-score-circle.level-media::before {
    border-top-color: #f39c12;
    border-right-color: #e67e22;
}

.t3chware-score-circle.level-baja::before {
    border-top-color: #e74c3c;
    border-right-color: #c0392b;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.t3chware-score-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    padding-top: 40px;
}

.t3chware-score-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t3chware-level-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t3chware-level-badge.level-alta {
    background: #27ae60;
    color: #ffffff;
}

.t3chware-level-badge.level-media {
    background: #f39c12;
    color: #ffffff;
}

.t3chware-level-badge.level-baja {
    background: #e74c3c;
    color: #ffffff;
}

.t3chware-checks-list {
    margin: 30px 0;
}

.t3chware-checks-list h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.t3chware-checks-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t3chware-check-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
    transition: all 0.3s ease;
}

.t3chware-check-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.t3chware-check-item.status-success {
    border-left-color: #27ae60;
    background: #d5f4e6;
}

.t3chware-check-item.status-warning {
    border-left-color: #f39c12;
    background: #fef5e7;
}

.t3chware-check-item.status-error {
    border-left-color: #e74c3c;
    background: #fadbd8;
}

.t3chware-check-item.status-info {
    border-left-color: #3498db;
    background: #ebf5fb;
}

.t3chware-check-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.t3chware-check-item.status-success .t3chware-check-icon::before {
    content: '✓';
    color: #27ae60;
    background: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.t3chware-check-item.status-warning .t3chware-check-icon::before {
    content: '⚠';
    color: #f39c12;
    background: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.t3chware-check-item.status-error .t3chware-check-icon::before {
    content: '✗';
    color: #e74c3c;
    background: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.t3chware-check-item.status-info .t3chware-check-icon::before {
    content: 'ℹ';
    color: #3498db;
    background: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.t3chware-check-content {
    flex: 1;
}

.t3chware-check-content strong {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.t3chware-check-content span {
    display: block;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
}

.t3chware-contact-message {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.t3chware-contact-message h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.t3chware-contact-message p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.t3chware-contact-message strong {
    color: #ffffff;
    font-weight: 700;
}

.t3chware-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.t3chware-contact-actions .t3chware-audit-btn {
    width: 100%;
    max-width: 400px;
}

.t3chware-contact-actions .t3chware-contact-btn,
.t3chware-contact-actions .t3chware-email-btn {
    width: auto;
    min-width: 180px;
}

.t3chware-audit-btn,
.t3chware-contact-btn,
.t3chware-email-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.t3chware-audit-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    border: 2px solid #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    font-size: 17px;
    padding: 14px 35px;
    margin-bottom: 10px;
}

.t3chware-audit-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
    color: #ffffff;
}

.t3chware-contact-btn {
    background: #ffffff;
    color: #667eea;
}

.t3chware-contact-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.t3chware-email-btn {
    background: transparent;
    color: #ffffff;
}

.t3chware-email-btn:hover {
    background: #ffffff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .t3chware-security-checker {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .t3chware-check-header h2 {
        font-size: 24px;
    }
    
    .t3chware-check-form {
        max-width: 100%;
    }
    
    .t3chware-url-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .t3chware-disclaimer {
        padding: 12px;
    }
    
    .t3chware-disclaimer p {
        font-size: 13px;
    }
    
    .t3chware-check-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .t3chware-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .t3chware-score-number {
        font-size: 36px;
        padding-top: 30px;
    }
    
    .t3chware-contact-actions {
        flex-direction: column;
    }
    
    .t3chware-contact-actions .t3chware-audit-btn,
    .t3chware-contact-actions .t3chware-contact-btn,
    .t3chware-contact-actions .t3chware-email-btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

