/* ===========================================================================
   WP SEO Analyzer — Premium Frontend Styles
   =========================================================================== */

.wsa-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.wsa-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.wsa-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 12px 0 !important;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.wsa-subtitle {
    text-align: center;
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

/* Form inputs */
.wsa-input-group {
    display: flex;
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    transition: border-color 0.2s;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.wsa-input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.wsa-icon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #94a3b8;
}

.wsa-input-group input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    color: #334155;
    padding: 10px 0;
    outline: none !important;
    box-shadow: none !important;
}

/* Buttons */
.wsa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.wsa-btn-primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.wsa-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

/* Loader */
.wsa-loading-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.wsa-radar-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.wsa-radar-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #818cf8;
    border-radius: 50%;
    opacity: 0;
    animation: wsa-pulse 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.delay-1 {
    animation-delay: 0.6s;
}

.delay-2 {
    animation-delay: 1.2s;
}

@keyframes wsa-pulse {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.wsa-loading-title {
    margin: 0 0 10px 0 !important;
    font-size: 20px !important;
    color: #1e293b !important;
}

.wsa-loading-subtitle {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 15px !important;
}

/* Results */
.wsa-score-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
}

.wsa-score-header h3 {
    margin: 0 0 5px 0 !important;
    color: #0f172a !important;
    font-size: 18px !important;
}

.wsa-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wsa-gauge-container {
    width: 160px;
    height: 160px;
    margin: 25px auto 0;
}

.wsa-circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.wsa-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.5;
}

.wsa-circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wsa-percentage {
    fill: #0f172a;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 9px;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Summary Card */
.wsa-summary-card {
    display: flex;
    gap: 15px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.wsa-summary-icon {
    font-size: 24px;
}

.wsa-summary-content h4 {
    margin: 0 0 5px 0 !important;
    color: #9f1239 !important;
    font-size: 16px !important;
}

.wsa-summary-content p {
    margin: 0 !important;
    color: #be123c !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Lead Gate */
.wsa-lead-gate {
    background: #1e293b;
    color: #f8fafc;
    padding: 35px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.wsa-lead-gate::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 40%);
}

.wsa-lead-content {
    position: relative;
    z-index: 1;
}

.wsa-lead-content h3 {
    color: #fff !important;
    margin: 0 0 15px 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.wsa-lead-content p,
.wsa-lead-gate p {
    color: #cbd5e1 !important;
    margin: 0 0 25px 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.wsa-lead-content strong,
.wsa-lead-gate strong,
.wsa-lead-content p strong,
.wsa-lead-gate p strong {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.wsa-split-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.wsa-lead-form input[type="text"],
.wsa-lead-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.wsa-lead-form input:focus {
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.1);
}

.wsa-consent-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.wsa-consent-wrapper input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.wsa-consent-wrapper label {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.wsa-btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    font-size: 16px;
    padding: 14px;
    color: #fff;
}

.wsa-btn-premium:hover {
    background: #d97706;
}

.wsa-w-full {
    width: 100%;
}

/* Upsell */
.wsa-upsell-cta {
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.wsa-upsell-cta p {
    color: #64748b !important;
    margin-bottom: 10px !important;
}

.wsa-btn-outline {
    background: transparent;
    border: 2px solid #0f172a;
    color: #0f172a;
}

.wsa-btn-outline:hover {
    background: #0f172a;
    color: #fff;
}

.wsa-mt-4 {
    margin-top: 2rem;
}

.wsa-error-msg {
    color: #ef4444;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

/* Page Details (Mini Cards) */
.wsa-page-details {
    margin-bottom: 30px;
}

.wsa-page-details h4 {
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    color: #0f172a;
}

.wsa-mini-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.wsa-mini-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.wsa-mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.wsa-mini-card-url {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    word-break: break-all;
    padding-right: 15px;
}

.wsa-mini-card-score {
    font-weight: 800;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

ul.wsa-finding-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.wsa-finding-list>li {
    list-style: none !important;
    list-style-type: none !important;
}

li.wsa-finding-item {
    font-size: 13px !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    padding-left: 20px !important;
    position: relative !important;
    line-height: 1.4 !important;
    background: transparent !important;
    border: none !important;
}

li.wsa-finding-item::before,
li.wsa-finding-item::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

li.wsa-finding-item.pass>span::after {
    content: '✅' !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 11px !important;
    top: 2px !important;
}

li.wsa-finding-item.warn>span::after {
    content: '⚠️' !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 11px !important;
    top: 2px !important;
}

li.wsa-finding-item.fail>span::after {
    content: '❌' !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 11px !important;
    top: 2px !important;
}


@media (max-width: 640px) {
    .wsa-split-inputs {
        grid-template-columns: 1fr;
    }

    .wsa-section {
        padding: 25px 20px;
    }

    .wsa-input-group {
        flex-direction: column;
        padding: 10px;
    }

    .wsa-input-group button {
        margin-top: 10px;
        width: 100%;
    }
}