/* استایل‌های پایه */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    padding: 30px;
    background: #4285f4;
    color: white;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.analyze-box {
    padding: 30px;
    text-align: center;
}

.url-input {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
}

.url-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.url-input button {
    padding: 12px 20px;
    background: #34a853;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.url-input button:hover {
    background: #2d9248;
}

.notice {
    background: #f1f3f4;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: right;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background: #fce8e6;
    color: #d93025;
}

/* استایل‌های صفحه نتایج */
.url-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: inline-block;
}

.url-display span {
    font-weight: bold;
}

.url-display small {
    display: block;
    opacity: 0.8;
    font-size: 0.8rem;
}

.results-container {
    padding: 20px;
}

.scores-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.score-category {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.gauge-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

.gauge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #f44336 0%,
        #ff9800 var(--ok-start),
        #ffeb3b var(--ok-end),
        #4caf50 var(--good-start),
        #4caf50 100%
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
}

.gauge span {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
}

.audits-details {
    margin-top: 30px;
}

.audit-category {
    margin-bottom: 40px;
}

.audit-category h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.audit-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.audit-score {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f44336;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.score-90, .score-100 {
    background: #4caf50;
}

.score-50, .score-60, .score-70, .score-80 {
    background: #ff9800;
}

.audit-details {
    flex: 1;
}

.audit-details h3 {
    margin-bottom: 5px;
}

.toggle-details {
    background: none;
    border: none;
    color: #4285f4;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 10px;
}

.details-content {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
}

footer {
    padding: 15px;
    text-align: center;
    background: #f1f3f4;
    font-size: 0.9rem;
    color: #666;
}
