/* SEO Analyzer Styles */
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.analyzer-form {
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 30px auto;
    max-width: 800px;
    display: flex;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
}

.analyzer-form input[type="url"] {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.analyzer-form input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.analyzer-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.analyzer-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.results-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 800px;
    animation: slideIn 0.5s ease-out;
}

.score-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background: white;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.score-overview {
    flex: 1;
    background: var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.score-bars {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.score-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-bar-label {
    min-width: 120px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.score-bar-container {
    flex: 1;
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.score-bar.warning {
    background: #f59e0b;
}

.score-bar.bad {
    background: #ef4444;
}

.score-bar-value {
    min-width: 60px;
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.metric-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.score {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.score.good { background: #22c55e; }
.score.warning { background: #f59e0b; }
.score.bad { background: #ef4444; }

.recommendation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.recommendation:hover {
    transform: translateX(5px);
}

.recommendation-icon {
    font-size: 1.2rem;
}

.loading {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
    color: #991b1b;
    animation: slideIn 0.5s ease-out;
    margin: 20px auto;
    max-width: 800px;
}

@media (max-width: 768px) {
    .analyzer-form {
        flex-direction: column;
    }

    .analyzer-form input[type="url"],
    .analyzer-form button {
        width: 100%;
    }

    .score-container {
        flex-direction: column;
    }

    .score-overview,
    .score-bars {
        width: 100%;
    }
}

.seo-hero {
    padding-top: 6rem;
    text-align: center;
    margin-bottom: 2rem;
}

.seo-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.seo-hero h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.seo-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.quick-analyze {
    text-align: center;
    margin: 1rem auto;
    max-width: 800px;
}

.quick-analyze p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.example-urls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.example-urls button {
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.example-urls button:hover {
    background: var(--background-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.share-results {
    text-align: right;
    margin-top: 1rem;
}

.share-button {
    background: var(--background-color);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.share-icon {
    font-size: 1.2rem;
}

.error-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.retry-button, .report-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-button {
    background: var(--primary-color);
    color: white;
    border: none;
}

.report-button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-color);
}

.retry-button:hover, .report-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.loading-url {
    font-size: 0.9rem;
    color: var(--text-light);
    word-break: break-all;
} 