/* SEO Optimizer Specific Styles */

.seo-analyzer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-help {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Analysis Results */
.analysis-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-section h4 {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.score-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.score-indicator.excellent {
    background: #22c55e;
    color: white;
}

.score-indicator.good {
    background: #eab308;
    color: white;
}

.score-indicator.needs-improvement {
    background: #ef4444;
    color: white;
}

/* Overall Score Display */
.overall-score {
    text-align: center;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.score-display {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.score-description {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.recommendations-section h4 {
    margin: 0 0 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

.recommendation-priority {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.recommendation-priority.high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.recommendation-priority.medium {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.recommendation-priority.low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Analysis Loading States */
.analyzing {
    position: relative;
    overflow: hidden;
}

.analyzing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: analyzing-shimmer 1.5s infinite;
}

@keyframes analyzing-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Keyword Density Visualization */
.keyword-density {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.density-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.density-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.density-percentage {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    min-width: 40px;
}

/* SEO Tips Cards */
.seo-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.seo-tip-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.seo-tip-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.seo-tip-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.seo-tip-card h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 600;
}

.seo-tip-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Character/Word Counter */
.counter {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

.counter.warning {
    color: #eab308;
}

.counter.error {
    color: #ef4444;
}

/* Hidden/Show States */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* Loading Animation for Button */
.analyze-btn-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        font-size: 3rem;
    }
    
    .seo-tip-card {
        padding: 20px;
    }
    
    .recommendation-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .recommendation-priority {
        align-self: flex-start;
    }
}

/* Dark/Light Theme Adjustments */
[data-theme="light"] .analysis-section {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .seo-tip-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .seo-tip-card:hover {
    background: rgba(0, 0, 0, 0.05);
}