@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.asr-tool-wrapper {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.asr-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.asr-input-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.asr-input-section input {
    width: 60%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.asr-input-section button {
    padding: 12px 20px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.asr-input-section button:hover {
    background: #005bb5;
}

#asr-loader {
    display: none;
    margin-top: 10px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
}

/* SEO Score Circle */
.asr-circle-wrapper {
    width: 180px;
    height: 180px;
    margin: auto;
    position: relative;
}

.asr-circle-svg {
    transform: rotate(0deg);
    width: 100%;
    height: 100%;
}

.asr-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 12;
}

.asr-fg {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

/* Fixed: horizontal number inside circle */
.asr-text {
    font-size: 36px;
    font-weight: 700;
    fill: #333;
    text-anchor: middle;        /* horizontal center */
    dominant-baseline: middle;  /* vertical center */
}

/* Category bars */
.asr-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.asr-cat {
    flex: 1 1 30%;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

.cat-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cat-bar {
    width: 100%;
    background: #ddd;
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.cat-fill {
    height: 100%;
    width: 0;
    border-radius: 8px;
}

.cat-value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

/* Cards */
.asr-checks .asr-card, .asr-tasks .task-card {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
}

.asr-card.error {background: #ffe5e5; border-left:5px solid #d32f2f;}
.asr-card.warning {background: #fff4e5; border-left:5px solid #ff9800;}
.asr-card.passed {background: #e5ffe5; border-left:5px solid #388e3c;}

.card-header { margin:0; font-size:16px; font-weight:500; }
.card-body { display:none; margin-top:10px; font-size:14px; }

/* Tasks */
.asr-tasks h3{font-size:20px;margin-bottom:10px;font-weight:500;}
.task-card{padding:10px;margin:5px 0;border-radius:5px;box-shadow:0 1px 3px rgba(0,0,0,0.05);}
.task-card.high{background:#ffe5e5;border-left:5px solid #d32f2f;}
.task-card.warning{background:#fff4e5;border-left:5px solid #ff9800;}
.task-card.tip{background:#e5f7ff;border-left:5px solid #1976d2;}
