/* Main Container */
.wst-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wst-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form */
.wst-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.wst-form input[type="url"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
}

.wst-form input[type="url"]:focus {
    border-color: #4a90e2;
}

.wst-form button {
    padding: 15px 30px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wst-form button:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.wst-form button i {
    font-size: 18px;
}

/* Loading */
.wst-loading {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 30px;
}

.wst-loading i {
    margin-right: 8px;
    color: #4a90e2;
}

/* Results */
#wst-results {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wst-result-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.wst-result-header h3 {
    margin: 0;
    color: #555;
    font-size: 20px;
}

.wst-url-display {
    color: #4a90e2;
    font-weight: 600;
    word-break: break-all;
}

/* Metrics Grid */
.wst-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wst-metric-card {
    background: #fafafa;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.wst-metric-card:hover {
    transform: translateY(-5px);
}

.wst-metric-card i {
    font-size: 30px;
    color: #4a90e2;
    margin-bottom: 10px;
}

.wst-metric-label {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wst-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Performance Score */
.wst-performance-score {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
    border-radius: 12px;
}

.wst-score-label {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.wst-score-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

.wst-score-value.wst-fast { color: #2ecc71; }
.wst-score-value.wst-average { color: #f39c12; }
.wst-score-value.wst-slow { color: #e74c3c; }

.wst-rating {
    font-size: 20px;
    font-weight: 600;
    margin-top: 5px;
}

.wst-rating.wst-fast { color: #2ecc71; }
.wst-rating.wst-average { color: #f39c12; }
.wst-rating.wst-slow { color: #e74c3c; }

/* Suggestion */
.wst-suggestion {
    background: #f0f8ff;
    padding: 18px;
    border-radius: 50px;
    border-left: 5px solid #4a90e2;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wst-suggestion i {
    font-size: 28px;
    color: #4a90e2;
}

/* Error */
.wst-error {
    background: #fee;
    color: #c0392b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.wst-error i {
    margin-right: 8px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .wst-container {
        padding: 20px;
    }
    .wst-form {
        flex-direction: column;
    }
    .wst-form button {
        justify-content: center;
    }
    .wst-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wst-metric-value {
        font-size: 20px;
    }
}