/**
 * Основные стили плагина Fixers SEO
 */

/* Стили для мета-бокса */
.fixers-seo-meta-box {
    margin-top: 20px;
}

.fixers-seo-tabs {
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.fixers-seo-tab {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: #555;
}

.fixers-seo-tab:hover {
    color: #0073aa;
}

.fixers-seo-tab.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: 600;
}

.fixers-seo-tab-panel {
    display: none;
}

.fixers-seo-tab-panel.active {
    display: block;
}

.fixers-seo-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.fixers-seo-counter.warning {
    color: #d63638;
}

.fixers-seo-counter.error {
    color: #d63638;
    font-weight: 600;
}

/* Превью SEO */
.fixers-seo-preview {
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
    max-width: 600px;
    border-radius: 4px;
    font-family: arial, sans-serif;
}

.fixers-seo-preview-title {
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 3px;
    text-decoration: none;
}

.fixers-seo-preview-title:hover {
    text-decoration: underline;
}

.fixers-seo-preview-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 5px;
}

.fixers-seo-preview-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.4;
}

/* Стили для админки */
.fixers-seo-settings-tabs {
    margin-top: 20px;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.nav-tab-wrapper {
    border-bottom: 1px solid #ccd0d4;
}

.nav-tab {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    color: #555;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-right: 0.5em;
    padding: 8px 12px;
    text-decoration: none;
}

.nav-tab:hover {
    background: #fafafa;
    color: #23282d;
}

.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #000;
    margin-bottom: -1px;
}

.fixers-seo-media-button {
    margin-left: 10px;
}

/* Стили для аналитики */
.fixers-seo-analytics-dashboard {
    margin-top: 20px;
}

.fixers-seo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fixers-seo-stat-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.fixers-seo-stat-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #646970;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #23282d;
    font-size: 16px;
}

.fixers-seo-top-pages {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.fixers-seo-top-pages h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
}

/* Стили для карты сайта */
.fixers-seo-sitemap-dashboard {
    margin-top: 20px;
}

.fixers-seo-sitemap-status,
.fixers-seo-sitemap-info,
.fixers-seo-sitemap-actions,
.fixers-seo-sitemap-tips {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.fixers-seo-sitemap-status h2,
.fixers-seo-sitemap-info h2,
.fixers-seo-sitemap-actions h2,
.fixers-seo-sitemap-tips h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
}

.fixers-seo-info-grid,
.fixers-seo-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fixers-seo-info-card,
.fixers-seo-action-card {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
}

.fixers-seo-info-card h3,
.fixers-seo-action-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
}

.fixers-seo-info-card ul {
    margin: 0;
    padding-left: 20px;
}

.fixers-seo-info-card li {
    margin-bottom: 5px;
}

.fixers-seo-action-card p {
    margin-bottom: 15px;
    color: #646970;
}

.fixers-seo-tips-list {
    margin-top: 20px;
}

.fixers-seo-tip {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin-bottom: 15px;
}

.fixers-seo-tip h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

.fixers-seo-tip p {
    margin: 0;
    color: #646970;
}

/* Адаптивность */
@media (max-width: 768px) {
    .fixers-seo-stats-grid,
    .fixers-seo-info-grid,
    .fixers-seo-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .fixers-seo-tabs {
        display: flex;
        flex-wrap: wrap;
    }
    
    .fixers-seo-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .fixers-seo-preview {
        max-width: 100%;
    }
}

/* Анимации */
.fixers-seo-tab-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшения для форм */
.fixers-seo-meta-box .form-table th {
    width: 200px;
    vertical-align: top;
    padding-top: 15px;
}

.fixers-seo-meta-box .form-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.fixers-seo-meta-box .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Стили для кнопок */
.fixers-seo-media-button {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fixers-seo-media-button:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

/* Стили для уведомлений */
.notice.inline {
    margin: 15px 0;
    padding: 12px;
    border-left: 4px solid #00a32a;
}

.notice.inline ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.notice.inline li {
    margin-bottom: 5px;
}

.notice.notice-warning.inline {
    border-left-color: #dba617;
}

.notice.notice-error.inline {
    border-left-color: #d63638;
}
