/* General Wrapper - Apple Dark Glassmorphism */
.qynzo-auditor-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    padding: 40px;
    color: #ffffff;
    box-sizing: border-box;
}

.qynzo-auditor-wrapper * {
    box-sizing: border-box;
}

.qynzo-auditor-header {
    text-align: center;
    margin-bottom: 30px;
}

.qynzo-auditor-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.qynzo-auditor-header p {
    font-size: 1.1rem;
    color: #86868b;
    margin: 0;
}

/* Form Styles */
.qynzo-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .qynzo-input-group {
        flex-direction: row;
    }
}

.qynzo-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
    margin: 0;
    width: 100%;
}

.qynzo-input-group input::placeholder {
    color: #6e6e73;
}

.qynzo-input-group input:focus {
    border-color: #2997ff;
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.qynzo-input-group button {
    background: #0071e3;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.qynzo-input-group button:hover:not(:disabled) {
    background: #0077ed;
    transform: translateY(-2px);
}

.qynzo-input-group button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #86868b;
    cursor: not-allowed;
}

/* Loader */
#qynzo-auditor-progress {
    text-align: center;
    margin: 30px 0;
}

.qynzo-loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #2997ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: qynzo-spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

#qynzo-auditor-status {
    color: #86868b;
    font-weight: 500;
}

/* Report Styles */
.qynzo-report-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #ffffff;
}

.qynzo-scores {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.qynzo-score-box {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.qynzo-score-box h4 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qynzo-score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.qynzo-score-value span {
    font-size: 1rem;
    font-weight: 500;
    color: #86868b;
}

/* Score Colors - Apple Variants */
.score-good .qynzo-score-value { color: #32d74b; } /* Apple Green */
.score-average .qynzo-score-value { color: #ffd60a; } /* Apple Yellow */
.score-poor .qynzo-score-value { color: #ff453a; } /* Apple Red */

/* Diagnostic Cards */
.qynzo-diagnostics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.qynzo-diagnostic-card {
    display: flex;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s ease, background 0.3s ease;
}

.qynzo-diagnostic-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.qynzo-diagnostic-card.warning { border-left-color: #ffd60a; }
.qynzo-diagnostic-card.error { border-left-color: #ff453a; }
.qynzo-diagnostic-card.highlight { border-left-color: #bf5af2; } /* Apple Purple */

.qynzo-diagnostic-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.qynzo-diagnostic-content {
    flex: 1;
}

.qynzo-diagnostic-content h5 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.qynzo-issue {
    margin: 0 0 10px;
    color: #a1a1a6;
    font-size: 0.95rem;
    line-height: 1.5;
}

.qynzo-solution {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    line-height: 1.5;
}

.qynzo-diagnostic-card.highlight .qynzo-solution {
    color: #ffffff;
    background: rgba(191, 90, 242, 0.15);
    border-color: rgba(191, 90, 242, 0.3);
}

/* CTA */
.qynzo-cta-container {
    text-align: center;
    margin-top: 40px;
}

.qynzo-btn-primary {
    display: inline-block;
    background: #0071e3;
    color: #ffffff !important;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.qynzo-btn-primary:hover {
    transform: translateY(-3px);
    background: #0077ed;
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.4);
}

.qynzo-error {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 69, 58, 0.3);
    margin-top: 20px;
}
