/* --- Variables principales --- */
:root {
    --primary-blue: #0a3d91;
    --success-green: #25d366;
    --card-radius: 32px;
}

body {
    background: radial-gradient(circle at 20% 40%, #e3eafc 0%, #f8fbff 60%, #dbe6f6 100%);
}

.hero-seo {
    background: rgba(255, 255, 255, 0.92);
    padding: 60px 0 40px 0;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    box-shadow: 0 8px 32px rgba(10, 61, 145, 0.08);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alert.alert-success.mt-4.mb-4 {
    width: 60%;
}

iframe{
    width: 20em;
    height: 16em;
    border: 0;
    background: #fff;
}

.card.seo-card-personal.radar-card-long {
    padding: 10px;
}

.card-body.t {
    width: 16em;
    height: 27em;
    align-content: center;
    align-items: center;
}

.card-seo {
    border: none;
    border-radius: var(--card-radius);
    box-shadow: 0 12px 40px rgba(10, 61, 145, 0.10);
    background: #fff;
    max-width: 100%;
    margin: 0 auto;
    margin-top: -30px;
    padding: 0;
    border: 1px solid #e3eafc;
}


.seo-title-icon {
    font-size: 60px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.seo-title-main {
    font-weight: 900;
    color: #1a1a1a;
    font-size: 2.7rem;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.seo-title-lead {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 30px;
}

.input-group-text {
    background: #f3f6fa;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    border-radius: 12px 0 0 12px;
}

.form-control-lg {
    font-size: 1.15rem;
    border-radius: 0 12px 12px 0;
    border: 1px solid #e3eafc;
    background: #f8fbff;
    height: 54px;
}

.btn-landing {
    background: var(--primary-blue);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(10, 61, 145, 0.08);
    transition: 0.3s;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-landing i {
    font-size: 1.5rem;
    margin-right: 6px;
}

.btn-landing:hover {
    background: #1557b0;
    transform: translateY(-2px) scale(1.04);
}

.seo-result-card {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    background: #fff;
    padding: 30px;
    margin-top: 20px;
}

.seo-score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 60%, var(--success-green) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seo-result-list {
    list-style: none;
    padding: 0;
}

.seo-result-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.seo-result-list .material-icons {
    margin-right: 8px;
    color: var(--primary-blue);
}

.seo-success {
    color: var(--success-green);
    font-weight: 600;
}

.seo-error {
    color: #d9534f;
    font-weight: 600;
}

.overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-container {
    width: 300px;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-blue);
    transition: width 0.4s;
}

#seoResult {
    margin-top: 30px;
}

.seo-radar-card .seo-status-list {
    display: ruby;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.seo-status-list .seo-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95em;
    margin: 2px;
}


.seo-preview-card:hover {
    box-shadow: 0 8px 32px rgba(10, 61, 145, 0.18);
}
.seo-preview-card h3 {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}
.seo-preview-card .preview-frame {
    border: 1px solid #e3eafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0001;
    background: #fff;
    margin-bottom: 8px;
    height: 15em;
    width: 100%;
}
.seo-preview-card .preview-frame iframe {
    width: 1280px;
    height: 720px;
    min-width: 1280px;
    min-height: 720px;
    max-width: 100%;
    max-height: 100%;
    border: none;
    background: #fff;
    border-radius: 0 0 12px 12px;
    transform: scale(0.25);
    transform-origin: top left;
    display: block;
}
.seo-preview-card .preview-caption {
    font-size: 0.97em;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}

@media (max-width: 768px) {
    .card-seo {
        max-width: 98vw;
        margin-top: 0;
    }

    .card-seo .card-body {
        padding: 24px 8px 16px 8px;
    }

    .hero-seo {
        padding: 30px 0 20px 0;
        border-radius: 0 0 18px 18px;
    }

    .seo-title-main {
        font-size: 2rem;
    }

    .alert.alert-success.mt-4.mb-4 {
        width: 90%;
        padding-top: 13%;
    }
}