/**
 * Typo Hunter Admin Tabs Styling
 */

.typo-hunter-wrap {
    margin: 20px 20px 0 0;
}

.typo-hunter-header {
    background: #fff;
    border-bottom: 1px solid #ccd0d4;
    margin: 0 0 20px -20px;
    padding: 20px 20px 0;
}

.typo-hunter-header h1 {
    margin: 0 0 20px;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.3;
}

/* Tab Navigation */
.typo-hunter-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #ccd0d4;
}

.typo-hunter-tabs li {
    margin: 0;
    padding: 0;
}

.typo-hunter-tabs a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #50575e;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
    top: 1px;
}

.typo-hunter-tabs a:hover {
    color: #0073aa;
    background: #f6f7f7;
}

.typo-hunter-tabs a.active {
    color: #0073aa;
    background: #fff;
    border-color: #ccd0d4;
    border-bottom-color: #fff;
    font-weight: 600;
}

.typo-hunter-tabs .pro-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 3px;
    margin-left: 4px;
}

/* Tab Content */
.typo-hunter-tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.typo-hunter-tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-box.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-box.tertiary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-box.quaternary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-box.quinary {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-box.pro-locked {
    opacity: 0.7;
}

.stat-box.pro-locked .stat-value .pro-badge {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

/* Chart Container */
.chart-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.chart-container h3 {
    margin-top: 0;
    color: #1d2327;
}

#reports-trend-chart {
    min-height: 200px;
}

#reports-trend-chart svg {
    display: block;
    width: 100%;
    max-height: 300px;
}

/* Top Posts Table */
.top-posts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.top-posts-table th {
    background: #f6f7f7;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ccd0d4;
}

.top-posts-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.top-posts-table tr:hover {
    background: #f6f7f7;
}

.top-posts-table .post-title {
    font-weight: 500;
    color: #0073aa;
}

.top-posts-table .report-count {
    font-weight: 700;
    color: #d63638;
}

/* Settings Form */
.typo-hunter-settings-section {
    margin-bottom: 40px;
}

.typo-hunter-settings-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.typo-hunter-settings-section.pro-section {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.typo-hunter-settings-section.pro-section.unlocked {
    opacity: 1;
    pointer-events: auto;
}

/* Upgrade Prompt */
.upgrade-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.upgrade-prompt h3 {
    margin-top: 0;
    color: #fff;
}

.upgrade-prompt .button {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    margin-top: 10px;
}

.upgrade-prompt .button:hover {
    background: #f6f7f7;
    color: #764ba2;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.export-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Email Test */
.email-test-section {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.email-test-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
}

.email-test-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-test-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 782px) {
    .typo-hunter-tabs {
        flex-direction: column;
    }
    
    .typo-hunter-tabs a {
        border: 1px solid #ccd0d4;
        border-bottom: none;
    }
    
    .typo-hunter-tabs li:last-child a {
        border-bottom: 1px solid #ccd0d4;
    }
    
    .typo-hunter-tabs a.active {
        border-left: 3px solid #0073aa;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
