/**
 * SEO Marketing Tools - Public Styles
 * Designed to match Numerique WordPress Theme
 * 
 * @package SEO_Marketing_Tools
 * @since 1.0.0
 */

:root {
    --primary-color: #B60016;
    --primary-hover: #70000E;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --border-color: #333333;
    --bg-light: #00000000;
    --bg-white: #000000;
    --bg-card: #0f0f0f;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ======================
   General Styles
   ====================== */

/* Hide Elementor page header */
.page-header h1 {
    display: none;
}

.seo-tool-container,
.seo-tools-hub {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: transparent !important;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ======================
   Hub Page Styles
   ====================== */

.seo-tools-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.seo-tools-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tool-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tool-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tool-features li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.tool-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 16px;
}

.tool-button:hover {
    background: var(--primary-hover);
}

.tool-stat {
    display: block;
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Benefits Section */
.seo-tools-benefits {
    padding: 60px 20px;
    text-align: center;
}

.seo-tools-benefits h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-item {
    padding: 20px;
    flex: 1 1 250px;
    min-width: 250px;
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* CTA Section */
.seo-tools-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    margin: 60px 0;
}

.seo-tools-cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.seo-tools-cta p {
    font-size: 1.125rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* ======================
   Tool Page Styles
   ====================== */

.seo-breadcrumb {
    margin-bottom: 24px;
}

.seo-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.seo-breadcrumb a:hover {
    text-decoration: underline;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tool-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Rate Limit Info */
.rate-limit-info {
    background: #B60016 !important;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    margin-bottom: 32px;
}

.limit-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

.limit-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Card */
.tool-form-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--danger-color);
}

.help-tip {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: var(--text-secondary);
    background-color:#B60016;
    border-radius: 50%;
    font-size: 12px;
    cursor: help;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff !important;
    color: #000000;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(182, 0, 22, 0.2);
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* Radio Button Group */
.radio-group {
    display: inline-flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(182, 0, 22, 0.05);
}

.radio-option input[type="radio"] {
    margin-top: 0;
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--primary-color);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(182, 0, 22, 0.1);
}

.radio-label {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.5;
}

.radio-label strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.char-count {
    float: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

/* reCAPTCHA */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #2a2a2a;
    border-color: var(--primary-color);
}

.btn-cancel,
#cancel-scan-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #B60016 !important;
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.btn-cancel:hover:not(:disabled) {
    background: #c82333;
}

.btn-cancel:active {
    background: #bd2130;
}

.btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
}

.btn-copy {
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-copy:hover {
    background: #059669;
}

/* Results Card */
.tool-results-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.tool-results-card h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.result-item {
    margin-bottom: 24px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-header label {
    font-weight: 600;
    color: var(--text-primary);
}

.char-indicator {
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-weight: 600;
}

.char-indicator.good {
    background: #d1fae5;
    color: var(--success-color);
}

.char-indicator.warning {
    background: #fef3c7;
    color: var(--warning-color);
}

.result-content {
    display: flex;
    gap: 12px;
    align-items: start;
}

.generated-text {
    flex: 1;
    padding: 16px;
    background: #1a1a1a;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    line-height: 1.6;
}

.result-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.result-actions button {
    flex: 1;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-working .stat-value {
    color: var(--success-color);
}

.stat-broken .stat-value {
    color: var(--danger-color);
}

/* Tabs */
.input-mode-tabs,
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mode-tab,
.filter-tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.mode-tab.active,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Table */
.results-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    min-width: 80px;
}

.results-table td {
    padding: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.results-table td:first-child {
    max-width: 0; /* Allows text wrapping in first column */
    min-width: 150px;
}

.results-table td:not(:first-child) {
    white-space: nowrap;
    text-align: center;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table a {
    color: #ffffff !important;
    text-decoration: underline;
}

.results-table a:hover {
    color: #B60016 !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.working {
    background: #d1fae5;
    color: var(--success-color);
}

.status-badge.broken {
    background: #fee2e2;
    color: var(--danger-color);
}

.status-badge.warning {
    background: #fef3c7;
    color: var(--warning-color);
}

/* Info Card */
.tool-info-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.tool-info-card h2,
.tool-info-card h3 {
    margin-bottom: 16px;
}

.info-list {
    line-height: 1.8;
    color: var(--text-secondary);
}

.info-list li {
    margin-bottom: 12px;
}

.code-example {
    background: #1a1a1a;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Other Tools */
.other-tools {
    margin: 40px 0;
    text-align: center;
}

.tools-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.tool-link {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.tool-link:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

/* Footer */
.seo-tools-footer,
.tool-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.tool-footer p {
    margin: 8px 0;
}

.footer-note,
.footer-cta {
    font-size: 0.875rem;
}

/* Error Alert */
.error-alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

/* ======================
   Responsive Design
   ====================== */

@media (max-width: 768px) {
    .seo-tools-hero h1 {
        font-size: 2rem;
    }
    
    .seo-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-header h1 {
        font-size: 1.75rem;
    }
    
    .tool-header p {
        font-size: 0.95rem;
    }
    
    .result-content {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .tools-links {
        flex-direction: column;
    }
    
    /* Form adjustments */
    .tool-form-card {
        padding: 24px;
    }
    
    .tool-results-card {
        padding: 24px;
    }
    
    /* Input mode tabs */
    .input-mode-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .mode-tab {
        flex: 1;
        min-width: 120px;
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    /* Filter tabs */
    .filter-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .filter-tab {
        flex: 1;
        min-width: 80px;
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    /* Filter controls */
    .filter-controls {
        gap: 12px;
    }
    
    /* Stats row */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-box {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    /* Relevancy score */
    .relevancy-score-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .relevancy-score-value {
        font-size: 3rem;
    }
    
    .score-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* SEO elements */
    .seo-checks-list {
        gap: 12px;
    }
    
    .seo-check-item {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .seo-check-label {
        font-size: 0.9rem;
    }
    
    /* Prominence */
    .prominence-list {
        gap: 12px;
    }
    
    .prominence-item {
        padding: 14px;
    }
    
    /* Readability */
    .readability-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .readability-score-box {
        width: 100%;
        min-width: auto;
    }
    
    .readability-metrics {
        grid-template-columns: 1fr;
    }
    
    /* Results table */
    .results-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -24px;
        padding: 0 24px;
    }
    
    .results-table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 8px;
    }
    
    .results-table td:first-child {
        min-width: 120px;
        max-width: 200px;
    }
    
    /* Stemmed toggle */
    .stemmed-toggle {
        padding: 12px 16px;
    }
    
    .toggle-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toggle-help {
        margin-left: 0;
        margin-top: 4px;
    }
    
    /* Checkbox label */
    .checkbox-label {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    /* Progress details */
    .progress-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-detail-item {
        padding: 10px;
    }
    
    /* Warning items */
    .warning-item {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .result-actions {
        gap: 12px;
    }
    
    .result-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .seo-tool-container,
    .seo-tools-hub {
        padding: 16px 12px;
    }
    
    .tool-form-card,
    .tool-results-card {
        padding: 16px;
    }
    
    .tool-header h1 {
        font-size: 1.5rem;
    }
    
    .tool-header p {
        font-size: 0.9rem;
    }
    
    /* Stats row - single column on very small screens */
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    /* Score breakdown - single column */
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    /* Filter tabs - smaller */
    .filter-tab {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-width: 70px;
    }
    
    /* Input mode tabs */
    .mode-tab {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-width: 100px;
    }
    
    /* Relevancy score value */
    .relevancy-score-value {
        font-size: 2.5rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    /* Readability score */
    .readability-score-value {
        font-size: 2.5rem;
    }
    
    /* Table - even smaller */
    .results-table-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .results-table {
        min-width: 500px;
        font-size: 0.85rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 6px;
    }
    
    .results-table td:first-child {
        min-width: 100px;
        max-width: 180px;
    }
    
    /* Form controls */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* reCAPTCHA */
    .recaptcha-wrapper {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin: 16px 0;
        overflow: hidden;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
    
    /* Touch targets */
    .filter-tab,
    .mode-tab,
    button,
    .btn-primary,
    .btn-secondary {
        min-height: 44px; /* iOS recommended touch target */
        touch-action: manipulation; /* Prevents double-tap zoom */
    }
    
    /* Prevent text selection on buttons */
    .filter-tab,
    .mode-tab,
    button {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Better spacing for mobile */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-help {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    /* Info cards */
    .tool-info-card {
        padding: 20px;
    }
    
    .tool-info-card h2,
    .tool-info-card h3 {
        font-size: 1.25rem;
    }
    
    .info-list {
        padding-left: 20px;
    }
    
    .info-list li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    /* Progress bar */
    .progress-container {
        margin-top: 16px;
    }
    
    .progress-bar-fill {
        height: 20px;
        font-size: 0.85rem;
    }
    
    /* Continue actions */
    .continue-actions {
        flex-direction: column;
    }
    
    .continue-actions .btn-primary,
    .continue-actions .btn-cancel {
        width: 100%;
        min-width: auto;
    }
}

/* ========================================
   Progress Display & Info Messages
   ======================================== */

.progress-display-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.progress-display-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Info Message Card */
.info-message-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.info-message-card.info-success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.info-message {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.timer-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin: 16px 0;
}

.timer-icon {
    font-size: 1.25rem;
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.timer-display strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.continue-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.continue-actions .btn-primary,
.continue-actions .btn-cancel {
    display: inline-block;
    width: auto;
    min-width: 180px;
}

/* Progress Bar */
.progress-bar-container {
    margin: 20px 0;
}

.progress-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.progress-time {
    color: var(--text-secondary);
}

.progress-time strong {
    color: var(--primary-color);
}

.progress-bar-track {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff1a2e);
    border-radius: var(--radius);
    transition: width 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats-mini {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-stats-mini span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.progress-stats-mini strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.progress-stat {
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.progress-icon {
    font-size: 1.5rem;
}

.progress-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.progress-stat strong {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 5px;
}

#cancel-scan-btn {
    margin-top: 10px;
    background: #6b7280;
}

#cancel-scan-btn:hover {
    background: #4b5563;
}

/* Results Section */
.results-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Responsive Progress Display */
@media (max-width: 768px) {
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .progress-display-card {
        padding: 20px;
    }
}

/* ======================
   Tool-Specific Overrides (scoped to tool pages only)
   ====================== */

/* Hide breadcrumb on tool pages */
.seo-tool-container .seo-breadcrumb,
.seo-tool-container .breadcrumb,
.seo-tool-container .breadcrumbs {
    display: none !important;
}

/* Link colors - scoped to tool container only */
.seo-tool-container a {
    color: #ffffff !important;
}

.seo-tool-container a:hover {
    color: #B60016 !important;
}

/* Button hover - scoped to tool container only */
.seo-tool-container button:hover {
    color: #ffffff !important;
}

/* Link colors - scoped to tools hub page only */
.seo-tools-hub a {
    color: #ffffff !important;
}

.seo-tools-hub a:hover {
    background-color: #000000 !important;
    color: #B60016 !important;
}

/* Hub page specific link styles */
.seo-tools-hub .footer-note a {
    color: #ffffff !important;
}

.seo-tools-hub .footer-note a:hover {
    color: #B60016 !important;
}

.seo-tools-hub strong a {
    color: #ffffff !important;
}

.seo-tools-hub strong a:hover {
    color: #B60016 !important;
}

/* Button hover - scoped to tools hub only */
.seo-tools-hub button:hover {
    color: #ffffff !important;
}
/* CTA button - override Elementor */
.seo-tools-hub .cta-button {
    color: #000000 !important;
}

.seo-tools-hub .cta-button:hover {
    color: #B60016 !important;
}

/* ============================================
   Content Strategist - New Sections
   ============================================ */

/* Stemming Warnings Section */
.stemming-warnings-section {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.stemming-warnings-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #f59e0b;
    font-size: 1.2rem;
}

.warning-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.warnings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.warning-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius);
    border-left: 4px solid #f59e0b;
}

.warning-icon {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    color: #f59e0b;
    display: block;
    margin-bottom: 8px;
}

.warning-content p {
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.6;
}

.warning-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
}

/* Filter Controls (Tabs + Toggle) */
.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Stemmed View Toggle */
.stemmed-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px 20px;
}

.toggle-label {
    display: inline-flex;
    flex-direction: row;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
}

.toggle-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.toggle-help {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 30px;
}

.toggle-label input[type="checkbox"]:checked + .toggle-text {
    color: var(--primary-color);
}

/* ============================================
   Content Strategist - Existing Sections
   ============================================ */

/* Relevancy Score Section */
.relevancy-score-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.relevancy-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.relevancy-score-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.relevancy-score-value {
    font-size: 3rem;
    font-weight: 700;
}

.score-number {
    color: var(--primary-color);
}

.score-max {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.score-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.score-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.score-item .score-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* SEO Elements Section */
.seo-elements-section,
.prominence-section,
.readability-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.seo-elements-section h3,
.prominence-section h3,
.readability-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.seo-checks-list,
.prominence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border-left: 4px solid transparent;
}

.seo-check-item.working {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.seo-check-item.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.seo-check-item.broken {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.check-icon {
    font-weight: 700;
    font-size: 1.2rem;
}

.seo-check-item.working .check-icon {
    color: #10b981;
}

.seo-check-item.warning .check-icon {
    color: #f59e0b;
}

.seo-check-item.broken .check-icon {
    color: #ef4444;
}

.prominence-keyword {
    background: rgba(182, 0, 22, 0.1);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.prominence-keyword strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Readability Section */
.readability-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.readability-main {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.readability-score-box {
    background: rgba(182, 0, 22, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 20px 30px;
    text-align: center;
    min-width: 150px;
}

.readability-score-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.readability-score-value.score-good {
    color: #10b981;
}

.readability-score-value.score-medium {
    color: #f59e0b;
}

.readability-score-value.score-poor {
    color: #ef4444;
}

.readability-score-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.readability-info p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.readability-info strong {
    color: var(--text-primary);
}

.readability-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric-value {
    color: var(--primary-color);
    font-weight: 600;
}
