/* ==========================================================
   RGPD Checker — Frontend Styles
   ========================================================== */

.rgpd-checker-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: #1a202c;
}

/* ---- Form box ---- */

.rgpd-checker-form-box {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.rgpd-checker-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rgpd-checker-subtitle {
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
}

.rgpd-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rgpd-url-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
    background: #fff;
}

.rgpd-url-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,.15);
}

.rgpd-submit-btn {
    padding: 12px 24px !important;
    background: #9E8612 !important;
    background-color: #9E8612 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .2s, transform .1s !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.rgpd-submit-btn:hover,
.rgpd-submit-btn:focus { background: #7d6b0e !important; background-color: #7d6b0e !important; color: #fff !important; }
.rgpd-submit-btn:active { transform: scale(.98) !important; }
.rgpd-submit-btn:disabled { background: #a0aec0 !important; background-color: #a0aec0 !important; cursor: not-allowed !important; }

.rgpd-disclaimer {
    font-size: 12px;
    color: #975a16;
    background: #fffbea;
    border-left: 3px solid #f6ad55;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 14px;
}

/* ---- Loader ---- */

.rgpd-loader {
    text-align: center;
    padding: 40px 20px;
    color: #4a5568;
}

.rgpd-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: rgpd-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* ---- Score card ---- */

.rgpd-score-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.rgpd-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rgpd-score-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.rgpd-score-max {
    font-size: 12px;
    color: #a0aec0;
}

.rgpd-score-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.rgpd-score-info p {
    color: #718096;
    font-size: 13px;
    margin: 0;
}

.rgpd-score-url {
    font-size: 12px;
    color: #a0aec0;
    word-break: break-all;
    margin-top: 6px;
}

/* ---- Progress bar ---- */

.rgpd-progress-bar-wrap {
    background: #edf2f7;
    border-radius: 8px;
    height: 12px;
    margin-top: 10px;
    overflow: hidden;
    width: 260px;
    max-width: 100%;
}

.rgpd-progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease;
}

/* ---- Checks list ---- */

.rgpd-checks-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.rgpd-check-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.rgpd-check-item.pass   { border-left: 4px solid #48bb78; }
.rgpd-check-item.fail   { border-left: 4px solid #fc8181; }
.rgpd-check-item.warn   { border-left: 4px solid #f6ad55; }

.rgpd-check-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rgpd-check-body { flex: 1; }

.rgpd-check-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.rgpd-check-name {
    font-weight: 700;
    font-size: 14px;
    color: #2d3748;
}

.rgpd-check-score-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    background: #edf2f7;
    color: #4a5568;
    white-space: nowrap;
    flex-shrink: 0;
}

.rgpd-check-detail {
    font-size: 13px;
    color: #4a5568;
    margin-top: 4px;
}

.rgpd-check-article {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
    font-style: italic;
}

.rgpd-check-action {
    font-size: 12px;
    color: #c53030;
    background: #fff5f5;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 8px;
}

.rgpd-check-sanction {
    font-size: 11px;
    color: #744210;
    background: #fffbea;
    border-radius: 6px;
    padding: 5px 10px;
    margin-top: 6px;
}

/* ---- PDF button ---- */

.rgpd-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.rgpd-pdf-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #9E8612 !important;
    background-color: #9E8612 !important;
    color: #fff !important;
    padding: 11px 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    text-decoration: none !important;
    transition: background .2s !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.rgpd-pdf-btn:hover,
.rgpd-pdf-btn:focus { background: #7d6b0e !important; background-color: #7d6b0e !important; color: #fff !important; }

.rgpd-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #edf2f7;
    color: #2d3748;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s;
}

.rgpd-retry-btn:hover { background: #e2e8f0; }

/* ---- Error ---- */

.rgpd-error-box {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 12px;
    padding: 20px 24px;
    color: #c53030;
    font-size: 14px;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
    .rgpd-checker-form-box { padding: 20px 16px; }
    .rgpd-score-card { flex-direction: column; gap: 16px; }
    .rgpd-checker-title { font-size: 18px; }
}
