/**
 * SEO Optimizer Pro - Frontend CSS
 * 
 * @package SEO_Optimizer
 * @since 1.0.0
 */

/* Frontend Genel Stiller */
.seo-optimizer-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

/* SEO Score Display */
.seo-score-display {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    min-width: 60px;
    margin: 10px 0;
}

.seo-score-display.excellent {
    background: #28a745;
    color: white;
}

.seo-score-display.good {
    background: #17a2b8;
    color: white;
}

.seo-score-display.average {
    background: #ffc107;
    color: #212529;
}

.seo-score-display.poor {
    background: #fd7e14;
    color: white;
}

.seo-score-display.bad {
    background: #dc3545;
    color: white;
}

/* SEO Progress Bar */
.seo-progress-bar {
    width: 100%;
    height: 20px;
    background: #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.seo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.seo-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* SEO Analysis Widget */
.seo-analysis-widget {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seo-analysis-widget h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.seo-analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.seo-analysis-item:last-child {
    border-bottom: none;
}

.seo-analysis-label {
    font-weight: 600;
    color: #555;
}

.seo-analysis-value {
    font-weight: bold;
    color: #667eea;
}

.seo-analysis-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.seo-analysis-status.success {
    background: #d4edda;
    color: #155724;
}

.seo-analysis-status.warning {
    background: #fff3cd;
    color: #856404;
}

.seo-analysis-status.danger {
    background: #f8d7da;
    color: #721c24;
}

/* SEO Recommendations */
.seo-recommendations {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.seo-recommendations h4 {
    margin: 0 0 15px 0;
    color: #0066cc;
    font-size: 1.1em;
}

.seo-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.seo-recommendations li {
    margin-bottom: 8px;
    color: #333;
}

.seo-recommendations li:last-child {
    margin-bottom: 0;
}

/* SEO Meta Preview */
.seo-meta-preview {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seo-meta-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.seo-meta-title {
    color: #1a0dab;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.seo-meta-url {
    color: #006621;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.seo-meta-description {
    color: #545454;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Schema Markup Display */
.schema-markup-info {
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9em;
}

.schema-markup-info strong {
    color: #0066cc;
}

/* Content Analysis Display */
.content-analysis-display {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.content-analysis-display h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.content-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.content-stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.content-stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.content-stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Readability Score */
.readability-score {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin: 20px 0;
}

.readability-score .score {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.readability-score .level {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.readability-score .description {
    color: #666;
    font-size: 0.9em;
}

/* Keyword Density Display */
.keyword-density-display {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.keyword-density-display h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.keyword-item:last-child {
    border-bottom: none;
}

.keyword-text {
    font-weight: 600;
    color: #333;
}

.keyword-density {
    font-weight: bold;
    color: #667eea;
}

.keyword-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.keyword-status.optimal {
    background: #d4edda;
    color: #155724;
}

.keyword-status.low {
    background: #fff3cd;
    color: #856404;
}

.keyword-status.high {
    background: #f8d7da;
    color: #721c24;
}

/* Internal Links Display */
.internal-links-display {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.internal-links-display h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.internal-link-item {
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.internal-link-item:last-child {
    border-bottom: none;
}

.internal-link-text {
    color: #0066cc;
    text-decoration: none;
}

.internal-link-text:hover {
    text-decoration: underline;
}

/* Image Analysis Display */
.image-analysis-display {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.image-analysis-display h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.image-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.image-item:last-child {
    border-bottom: none;
}

.image-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.image-info {
    flex: 1;
}

.image-filename {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.image-alt {
    font-size: 0.9em;
    color: #666;
}

.image-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.image-status.has-alt {
    background: #d4edda;
    color: #155724;
}

.image-status.no-alt {
    background: #f8d7da;
    color: #721c24;
}

/* Performance Metrics Display */
.performance-metrics {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.performance-metrics h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.performance-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.performance-metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 600;
    color: #555;
}

.metric-value {
    font-weight: bold;
    color: #667eea;
}

.metric-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.metric-status.fast {
    background: #d4edda;
    color: #155724;
}

.metric-status.medium {
    background: #fff3cd;
    color: #856404;
}

.metric-status.slow {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seo-analysis-item,
    .keyword-item,
    .internal-link-item,
    .image-item,
    .performance-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .seo-analysis-value,
    .keyword-density,
    .metric-value {
        align-self: flex-end;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .seo-optimizer-frontend {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .seo-analysis-widget,
    .seo-meta-preview,
    .content-analysis-display,
    .readability-score,
    .keyword-density-display,
    .image-analysis-display {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .content-stat-item {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .seo-analysis-widget h3,
    .seo-meta-preview h4,
    .content-analysis-display h4,
    .readability-score .level,
    .keyword-density-display h4,
    .image-analysis-display h4,
    .performance-metrics h4 {
        color: #e0e0e0;
    }
    
    .seo-analysis-label,
    .content-stat-label,
    .image-filename {
        color: #b0b0b0;
    }
    
    .seo-analysis-value,
    .content-stat-value,
    .readability-score .score,
    .keyword-density,
    .metric-value {
        color: #8ab4f8;
    }
    
    .seo-recommendations {
        background: #1a3a5f;
        border-color: #2d5a8a;
    }
    
    .seo-recommendations h4 {
        color: #8ab4f8;
    }
    
    .schema-markup-info {
        background: #1a3a5f;
        border-color: #2d5a8a;
    }
    
    .schema-markup-info strong {
        color: #8ab4f8;
    }
}

/* Print Styles */
@media print {
    .seo-optimizer-frontend {
        background: white !important;
        color: black !important;
    }
    
    .seo-analysis-widget,
    .seo-meta-preview,
    .content-analysis-display,
    .readability-score,
    .keyword-density-display,
    .image-analysis-display,
    .performance-metrics {
        background: white !important;
        border: 1px solid #000 !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .seo-score-display,
    .seo-progress-fill {
        background: #ccc !important;
        color: black !important;
    }
}
