/**
 * FAQ Schema Fixer Admin Stilleri
 */

.faq-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 30px 0;
}

.faq-stat-card {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #0073aa;
}

.faq-stat-card.faq-stat-valid::before {
    background: #00a32a;
}

.faq-stat-card.faq-stat-fixable::before {
    background: #dba617;
}

.faq-stat-card.faq-stat-error::before {
    background: #d63638;
}

.faq-stat-number {
    font-size: 2.5em;
    font-weight: 600;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 8px;
}

.faq-stat-valid .faq-stat-number {
    color: #00a32a;
}

.faq-stat-fixable .faq-stat-number {
    color: #dba617;
}

.faq-stat-error .faq-stat-number {
    color: #d63638;
}

.faq-stat-label {
    color: #646970;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-schema-controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.faq-schema-controls .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.faq-schema-progress {
    margin: 20px 0;
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    position: relative;
    height: 40px;
    background: #f6f7f7;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005177);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.faq-loading {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
}

.faq-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f5;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: faq-spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes faq-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.faq-results-list {
    margin: 20px 0;
}

.faq-result-item {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 20px;
    position: relative;
}

.faq-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0073aa;
}

.faq-result-item.faq-status-valid::before {
    background: #00a32a;
}

.faq-result-item.faq-status-extractable::before,
.faq-result-item.faq-status-invalid::before {
    background: #dba617;
}

.faq-result-item.faq-status-no_faq::before {
    background: #d63638;
}

.faq-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.faq-result-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    flex: 1;
    line-height: 1.4;
}

.faq-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.faq-post-id {
    color: #646970;
    font-size: 12px;
    font-family: monospace;
    background: #f6f7f7;
    padding: 2px 6px;
    border-radius: 3px;
}

.faq-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.faq-status-badge.faq-status-valid {
    background: #d4edda;
    color: #155724;
}

.faq-status-badge.faq-status-extractable,
.faq-status-badge.faq-status-invalid {
    background: #fff3cd;
    color: #856404;
}

.faq-status-badge.faq-status-no_faq {
    background: #f8d7da;
    color: #721c24;
}

.faq-result-message {
    color: #646970;
    margin-bottom: 15px;
    line-height: 1.5;
}

.faq-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.faq-result-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.faq-pagination-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.faq-pagination-links .button {
    min-width: 40px;
    text-align: center;
}

.faq-pagination-links .button.current {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

.faq-log {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.faq-log h3 {
    margin: 0;
    padding: 15px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-size: 14px;
    color: #1d2327;
}

.faq-log-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px 20px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    background: #f9f9f9;
    color: #2c3338;
}

.faq-schema-info {
    margin-top: 40px;
    background: #f6f7f7;
    border-left: 4px solid #0073aa;
    padding: 20px;
}

.faq-schema-info h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 16px;
}

.faq-schema-info ol,
.faq-schema-info ul {
    margin: 10px 0 20px 20px;
}

.faq-schema-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive tasarım */
@media screen and (max-width: 782px) {
    .faq-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .faq-stat-card {
        padding: 15px;
    }
    
    .faq-stat-number {
        font-size: 2em;
    }
    
    .faq-result-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .faq-result-meta {
        align-self: flex-start;
    }
    
    .faq-schema-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .faq-schema-controls .button {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .faq-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-result-actions {
        flex-direction: column;
    }
    
    .faq-result-actions .button {
        justify-content: center;
    }
}

/* Admin notice improvements */
.notice.notice-info {
    border-left-color: #0073aa;
}

.notice.notice-info p {
    line-height: 1.6;
}

/* Loading state improvements */
.faq-result-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.faq-result-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f5;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: faq-spin 0.8s linear infinite;
}

/* Success/Error states */
.faq-result-item.success {
    background: #f0f9ff;
    border-color: #0073aa;
}

.faq-result-item.error {
    background: #fef7f7;
    border-color: #d63638;
}

/* ===== YENİ GEMİNİ AI STİLLERİ ===== */

.gemini-ai-settings {
    margin: 30px 0;
}

.gemini-ai-settings h2 {
    color: #23282d;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.gemini-settings-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
}

.gemini-api-key-section {
    margin-bottom: 20px;
}

.gemini-api-key-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.api-key-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.api-key-input-group input {
    flex: 1;
    min-width: 300px;
}

.api-test-result {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.api-test-result.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.api-test-result.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Auto FAQ Generator */
.auto-faq-generator {
    margin: 30px 0;
}

.auto-faq-generator h2 {
    color: #23282d;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.auto-faq-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
}

.auto-faq-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.auto-faq-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auto-faq-settings label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.auto-faq-settings select {
    padding: 5px 10px;
}

.auto-faq-buttons {
    display: flex;
    gap: 10px;
}

.faq-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005177);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 500;
    color: #666;
}

.faq-results {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-results h4 {
    margin-top: 0;
    color: #23282d;
}

.faq-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-result-list li {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-result-list li.success {
    border-color: #00a32a;
    background: #f6fff6;
}

.faq-result-list li.error {
    border-color: #d63638;
    background: #fff6f6;
}

.faq-result-title {
    font-weight: 500;
    color: #0073aa;
}

.faq-result-count {
    color: #666;
    font-size: 0.9em;
}

/* FAQ Preview Modal */
.faq-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.faq-preview-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faq-preview-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-preview-header h3 {
    margin: 0;
}

.faq-preview-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.faq-preview-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.faq-preview-items {
    max-height: none;
}

.faq-preview-item {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-preview-question {
    background: #f8f9fa;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.faq-preview-answer {
    padding: 15px;
    line-height: 1.6;
}

.faq-preview-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auto-faq-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .auto-faq-buttons {
        justify-content: center;
    }
    
    .api-key-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .api-key-input-group input {
        min-width: auto;
        margin-bottom: 10px;
    }
}

/* Tab System Styles */
.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Auto Scheduler Styles */
.scheduler-card {
    background: #ffffff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.scheduler-info {
    margin-bottom: 20px;
}

.status-active, .status-inactive {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-active .dashicons {
    color: #00a32a;
}

.status-inactive .dashicons {
    color: #dba617;
}

.status-loading {
    text-align: center;
    padding: 20px;
}

.status-loading .dashicons.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scheduler-actions {
    margin-top: 20px;
}

.scheduler-actions .button {
    margin-right: 10px;
}

.logs-container {
    max-height: 300px;
    overflow-y: auto;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 10px;
}

.stats {
    font-size: 0.9em;
    color: #646970;
    margin-top: 10px;
}

.no-logs {
    text-align: center;
    color: #646970;
    font-style: italic;
}

/* ==== MULTİ API KEY MANAGEMENT STYLES ==== */

.multi-api-keys-container {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 20px;
    margin-top: 10px;
}

#api-keys-list {
    margin-bottom: 20px;
}

.api-key-row {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.2s ease;
}

.api-key-row:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.api-key-row:last-child {
    margin-bottom: 0;
}

.api-key-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.api-key-input {
    flex: 1;
    min-width: 300px;
    font-family: monospace;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #ffffff;
}

.api-key-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.api-key-row .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 13px;
    height: auto;
    line-height: 1.4;
}

.api-key-row .button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    vertical-align: middle;
}

.api-key-row .button.remove-key {
    color: #d63638;
    border-color: #d63638;
}

.api-key-row .button.remove-key:hover {
    background: #d63638;
    color: #ffffff;
}

.api-key-row .button.remove-key:disabled {
    color: #a7aaad;
    border-color: #dcdcde;
    cursor: not-allowed;
}

.api-key-row .button.test-single-key {
    color: #00a32a;
    border-color: #00a32a;
}

.api-key-row .button.test-single-key:hover {
    background: #00a32a;
    color: #ffffff;
}

.key-test-result {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.key-test-result.api-test-success {
    background: #d7eddd;
    border: 1px solid #00a32a;
    color: #00a32a;
}

.key-test-result.api-test-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #d63638;
}

.key-test-result .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.api-keys-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
}

.api-keys-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
}

.api-keys-actions .button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.api-keys-actions .button#add-api-key {
    color: #0073aa;
    border-color: #0073aa;
}

.api-keys-actions .button#add-api-key:hover {
    background: #0073aa;
    color: #ffffff;
}

.api-keys-actions .button#test-all-keys {
    color: #00a32a;
    border-color: #00a32a;
}

.api-keys-actions .button#test-all-keys:hover {
    background: #00a32a;
    color: #ffffff;
}

#api-keys-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

#api-keys-status.api-test-success {
    background: #d7eddd;
    border: 1px solid #00a32a;
    color: #00a32a;
}

#api-keys-status.api-test-error {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #d63638;
}

#api-keys-status .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* API Key Counter Badge */
.api-keys-container::after {
    content: attr(data-count) " anahtar";
    position: absolute;
    top: 10px;
    right: 15px;
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Loading Animation for Spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dashicons.spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-key-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .api-key-input {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .api-keys-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .api-keys-actions .button {
        justify-content: center;
        margin-bottom: 5px;
    }
}

/* Enhanced Description for Multi-Keys */
.multi-api-keys-container .description {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.multi-api-keys-container .description a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.multi-api-keys-container .description a:hover {
    text-decoration: underline;
}

/* API Key Validation Indicators */
.api-key-row.key-valid {
    border-left: 4px solid #00a32a;
}

.api-key-row.key-invalid {
    border-left: 4px solid #d63638;
}

.api-key-row.key-testing {
    border-left: 4px solid #0073aa;
    background: #f0f6fc;
}

/* ==== MODERN FAQ ACCORDION STYLES (From Attachment) ==== */

.faq-container {
    max-width: 100%;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-container h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border-left: 4px solid #0073aa;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid #e1e5e9;
    background: #ffffff;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: #f8f9fa;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.faq-question:hover {
    background: #1976D2;
    color: white;
    text-decoration: none;
}

.faq-question:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.faq-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 20px;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    font-size: 15px;
    border-top: 1px solid #e1e5e9;
}

        .faq-item.active .faq-answer {
            display: block;
            animation: fadeInDown 0.3s ease;
        }

        /* Alternative FAQ Structure Support */
        .faq-schema-section .faq-item {
            border-bottom: 1px solid #e1e5e9;
            background: #ffffff;
            transition: all 0.3s ease;
        }

        .faq-schema-section .faq-item:last-child {
            border-bottom: none;
        }

        .faq-schema-section .faq-item:hover {
            background: #f8f9fa;
        }

        .faq-schema-section h4.faq-question {
            display: flex;
            align-items: center;
            padding: 20px;
            background: #2196F3;
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            line-height: 1.5;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            width: 100%;
            text-align: left;
            position: relative;
            margin: 0;
        }

        .faq-schema-section h4.faq-question:hover {
            background: #1976D2;
            color: white;
            text-decoration: none;
        }

        .faq-schema-section h4.faq-question:focus {
            outline: none;
            box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
        }

        .faq-schema-section .toggle-icon,
        .faq-schema-section .faq-toggle-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            font-size: 18px;
            font-weight: bold;
            margin-left: auto;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        .faq-schema-section .faq-item.active .toggle-icon,
        .faq-schema-section .faq-item.active .faq-toggle-icon {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(180deg);
        }

        .faq-schema-section .faq-answer {
            display: none;
            padding: 20px;
            background: #ffffff;
            color: #333333;
            line-height: 1.6;
            font-size: 15px;
            border-top: 1px solid #e1e5e9;
        }

        .faq-schema-section .faq-item.active .faq-answer {
            display: block;
            animation: fadeInDown 0.3s ease;
        }

        /* FAQ Container Header */
        .faq-schema-section h3 {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            margin: 0 0 0 0;
            padding: 20px;
            font-size: 18px;
            font-weight: 600;
            border-left: 4px solid #0073aa;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .faq-schema-section .faq-container {
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-bottom: 20px;
        }@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Schema Markup Display */
.faq-schema-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
    max-height: 200px;
    overflow-y: auto;
}

.faq-schema-display pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* FAQ Preview Modal */
.faq-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.faq-preview-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.faq-preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-preview-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.faq-preview-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s ease;
}

.faq-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.faq-preview-body {
    padding: 0;
}

/* FAQ Stats */
.faq-stats-mini {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.faq-stat-mini {
    text-align: center;
}

.faq-stat-mini-number {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    display: block;
}

.faq-stat-mini-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-answer {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-toggle-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .faq-container h3 {
        padding: 15px;
        font-size: 16px;
    }
    
    .faq-preview-modal {
        padding: 10px;
    }
    
    .faq-preview-header {
        padding: 15px;
    }
    
    .faq-stats-mini {
        flex-direction: column;
        gap: 10px;
    }
}

/* FAQ Generation Progress */
.faq-generation-progress {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.faq-progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.faq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.faq-progress-text {
    font-size: 14px;
    color: #495057;
    text-align: center;
}

/* FAQ Quality Indicators */
.faq-quality-good {
    border-left: 4px solid #28a745;
}

.faq-quality-medium {
    border-left: 4px solid #ffc107;
}

.faq-quality-needs-work {
    border-left: 4px solid #dc3545;
}

/* FAQ Meta Box Styles */
#faq_settings_meta_box .inside {
    padding: 12px;
}

#faq_settings_meta_box label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    line-height: 1.4;
}

#faq_settings_meta_box input[type="checkbox"] {
    margin-top: 2px;
}

#faq_settings_meta_box .description {
    margin-top: 8px;
    font-style: italic;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

#faq_settings_meta_box ul {
    margin: 8px 0 0 20px;
    color: #555;
}

#faq_settings_meta_box li {
    margin-bottom: 2px;
    font-size: 11px;
}

/* Frontend FAQ Display Enhancements */
.faq-container.auto-generated {
    margin-top: 40px;
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.faq-container.auto-generated::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 20px auto;
}

/* Print Styles for FAQs */
@media print {
    .faq-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .faq-question {
        background: #f0f0f0 !important;
        color: #000 !important;
        page-break-inside: avoid;
    }
    
    .faq-answer {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .faq-toggle-icon {
        display: none;
    }
}

/* Theme Adaptive Enhancement Styles */
.faq-schema-section {
    /* Base styles for theme adaptation */
    --faq-primary-color: #2196F3;
    --faq-text-color: #ffffff;
    --faq-border-color: #e1e5e9;
    --faq-hover-color: #f8f9fa;
}

/* Enhanced visual effects */
.faq-schema-section .faq-container {
    position: relative;
    overflow: visible;
}

.faq-schema-section .faq-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, var(--faq-primary-color) 50%, transparent 70%);
    z-index: -1;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-schema-section .faq-container:hover::before {
    opacity: 0.1;
}

/* Smooth transitions for all interactive elements */
.faq-schema-section * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus styles for accessibility */
.faq-schema-section h4.faq-question:focus-visible {
    outline: 2px solid var(--faq-primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

/* Loading state animations */
@keyframes faqShimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.faq-schema-section.loading .faq-item {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: faqShimmer 1.5s infinite;
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
    .faq-schema-section {
        --faq-border-color: #404040;
        --faq-hover-color: #2a2a2a;
    }
    
    .faq-schema-section .faq-container {
        background: #1a1a1a;
        border-color: var(--faq-border-color);
    }
    
    .faq-schema-section .faq-answer {
        background: #1a1a1a;
        color: #e0e0e0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-schema-section h4.faq-question {
        border: 2px solid;
    }
    
    .faq-schema-section .faq-item {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq-schema-section *,
    .faq-schema-section::before,
    .faq-schema-section::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* RTL language support */
.rtl .faq-schema-section h4.faq-question {
    text-align: right;
    direction: rtl;
}

.rtl .faq-schema-section .toggle-icon,
.rtl .faq-schema-section .faq-toggle-icon {
    margin-right: auto;
    margin-left: 0;
}

/* Container queries for responsive design (when supported) */
@container (max-width: 600px) {
    .faq-schema-section h4.faq-question {
        font-size: 14px;
        padding: 15px;
    }
    
    .faq-schema-section .faq-answer {
        font-size: 13px;
        padding: 15px;
    }
}

/* API Key Addition Animations */
.api-key-row {
    transition: all 0.3s ease;
    transform: translateX(0);
}

.api-key-row.adding {
    transform: translateX(-10px);
    opacity: 0.7;
}

.api-key-input-group {
    transition: all 0.2s ease;
}

.api-key-input-group:hover {
    background: rgba(0, 115, 170, 0.02);
    border-radius: 4px;
}

/* Button Loading States */
.button .dashicons.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Debug Panel Styles */
#faq-debug-panel {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

#faq-debug-panel h4 {
    margin-top: 0;
    color: #d63638;
}

/* Success/Error Message Animations */
.api-test-success, .api-test-error {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

