

/**
 * Public styles for NewsLab KSA Verifier - Theme support
 */

/* Theme variations */
.newslab-verifier-theme-default {
    /* Default styles (already defined) */
}

.newslab-verifier-theme-light {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.newslab-verifier-theme-dark {
    background-color: #333333;
    color: #f5f5f5;
    border: 1px solid #444444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.newslab-verifier-theme-dark .newslab-verifier-header h2 {
    color: #ffffff;
}

.newslab-verifier-theme-dark .newslab-verifier-input-group textarea {
    background-color: #444444;
    border-color: #555555;
    color: #f5f5f5;
}

.newslab-verifier-theme-dark .newslab-verifier-button {
    background-color: #0073aa;
}


.newslab-verifier-theme-dark .newslab-verifier-results {
    background-color: #444444;
    border-color: #555555;
}

.newslab-verifier-theme-dark .newslab-verifier-footer {
    border-top-color: #555555;
    color: #cccccc;
}

/* History section */
.newslab-verifier-history {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.newslab-verifier-theme-dark .newslab-verifier-history {
    background-color: #444444;
    border-color: #555555;
}

.newslab-verifier-history h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.newslab-verifier-theme-dark .newslab-verifier-history h3 {
    color: #f5f5f5;
}

.newslab-verifier-history-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.newslab-verifier-history-item {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.newslab-verifier-theme-dark .newslab-verifier-history-item {
    background-color: #555555;
}

.newslab-verifier-history-item:hover {
    background-color: #f0f0f0;
}

.newslab-verifier-theme-dark .newslab-verifier-history-item:hover {
    background-color: #666666;
}

.newslab-verifier-history-verified {
    border-right: 4px solid #46b450;
}

.newslab-verifier-history-unverified {
    border-right: 4px solid #ffb900;
}

.newslab-verifier-history-false {
    border-right: 4px solid #dc3232;
}

.newslab-verifier-history-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.newslab-verifier-history-status {
    display: flex;
    align-items: center;
    font-weight: 600;
    min-width: 100px;
}

.newslab-verifier-history-status .dashicons {
    margin-left: 5px;
}

.newslab-verifier-theme-dark .newslab-verifier-history-link {
    color: #f5f5f5;
}

.newslab-verifier-history-query {
    flex-grow: 1;
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newslab-verifier-history-date {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

.newslab-verifier-theme-dark .newslab-verifier-history-date {
    color: #aaa;
}

/* Social sharing */
.newslab-verifier-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.newslab-verifier-theme-dark .newslab-verifier-actions {
    border-top-color: #555555;
}

.newslab-verifier-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.newslab-verifier-share-label {
    margin-left: 10px;
    font-weight: 600;
}

.newslab-verifier-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 8px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.newslab-verifier-share-twitter {
    background-color: #1DA1F2;
}

.newslab-verifier-share-facebook {
    background-color: #3b5998;
}

.newslab-verifier-share-whatsapp {
    background-color: #25D366;
}

.newslab-verifier-share-button:hover {
    opacity: 0.9;
}

.newslab-verifier-share-button .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Main container */
.newslab-verifier-container {
    max-width: 800px;
    margin: 0 auto;
  font-family: "Cairo", "Tajawal", sans-serif;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Header */
.newslab-verifier-header {
    margin-bottom: 20px;
    text-align: center;
}

.newslab-verifier-header h2 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: #333;
}

/* Form */
.newslab-verifier-form {
    margin-bottom: 20px;
}

.newslab-verifier-input-group {
    margin-bottom: 15px;
}

.newslab-verifier-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
    resize: vertical;
}

.newslab-verifier-button-group {
    text-align: center;
}

.newslab-verifier-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.newslab-verifier-button:hover {
    background-color: #005177;
}

/* Results */
.newslab-verifier-results {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.newslab-verifier-loading {
    text-align: center;
    padding: 20px;
}

.newslab-verifier-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: newslab-verifier-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes newslab-verifier-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.newslab-verifier-result-container {
    display: none;
}

.newslab-verifier-result {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.newslab-verifier-result-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.newslab-verifier-result-title .dashicons {
    margin-right: 8px;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.newslab-verifier-result-message {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.newslab-verifier-result-verified {
    background-color: #f0fff0;
    border-left: 4px solid #46b450;
}

.newslab-verifier-result-unverified {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
}

.newslab-verifier-result-false {
    background-color: #fef0f0;
    border-left: 4px solid #dc3232;
}

/* Confidence indicator */
.newslab-verifier-confidence {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.newslab-verifier-confidence-label {
    margin-bottom: 5px;
    font-weight: 600;
}

.newslab-verifier-confidence-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.newslab-verifier-confidence-fill {
    height: 100%;
    background-color: #0073aa;
    border-radius: 5px;
}

.newslab-verifier-confidence-high .newslab-verifier-confidence-fill {
    background-color: #46b450;
}

.newslab-verifier-confidence-medium .newslab-verifier-confidence-fill {
    background-color: #ffb900;
}

.newslab-verifier-confidence-low .newslab-verifier-confidence-fill {
    background-color: #dc3232;
}

.newslab-verifier-confidence-value {
    text-align: right;
    font-size: 12px;
    color: #666;
}

/* Explanation */
.newslab-verifier-explanation {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 2px solid #ddd;
}

.newslab-verifier-explanation h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.newslab-verifier-explanation p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Sources */
.newslab-verifier-sources {
    margin-top: 15px;
}

.newslab-verifier-sources h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.newslab-verifier-sources ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.newslab-verifier-source {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.newslab-verifier-source:last-child {
    border-bottom: none;
}

.newslab-verifier-source a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.newslab-verifier-source a:hover {
    text-decoration: underline;
}

.newslab-verifier-trusted-source {
    color: #46b450;
}

.newslab-verifier-untrusted-source {
    color: #666;
}

.newslab-verifier-trusted-badge {
    display: inline-block;
    padding: 2px 6px;
    background-color: #46b450;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    margin-left: 5px;
}

/* Error messages */
.newslab-verifier-error {
    background-color: #fef0f0;
    border-left: 4px solid #dc3232;
    padding: 15px;
    margin-bottom: 15px;
    color: #444;
    display: flex;
    align-items: flex-start;
}

.newslab-verifier-error .dashicons {
    margin-right: 10px;
    color: #dc3232;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.newslab-verifier-limit-reached {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 15px;
    margin-bottom: 15px;
    color: #444;
}

/* Footer */
.newslab-verifier-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.newslab-verifier-info {
    margin-bottom: 10px;
}

.newslab-verifier-powered-by {
    font-size: 12px;
}

.newslab-verifier-powered-by a {
    color: #0073aa;
    text-decoration: none;
}

/* RTL Support */
.rtl .newslab-verifier-result-verified,
.rtl .newslab-verifier-result-unverified,
.rtl .newslab-verifier-result-false,
.rtl .newslab-verifier-error,
.rtl .newslab-verifier-limit-reached,
.rtl .newslab-verifier-explanation {
    border-left: none;
    border-right: 4px solid;
}

.rtl .newslab-verifier-result-verified {
    border-right-color: #46b450;
}

.rtl .newslab-verifier-result-unverified {
    border-right-color: #ffb900;
}

.rtl .newslab-verifier-result-false {
    border-right-color: #dc3232;
}

.rtl .newslab-verifier-error {
    border-right-color: #dc3232;
}

.rtl .newslab-verifier-limit-reached {
    border-right-color: #ffb900;
}

.rtl .newslab-verifier-explanation {
    border-left: none;
    border-right: 2px solid #ddd;
}

.rtl .newslab-verifier-result-title .dashicons,
.rtl .newslab-verifier-error .dashicons {
    margin-right: 0;
    margin-left: 8px;
}

.rtl .newslab-verifier-trusted-badge {
    margin-left: 0;
    margin-right: 5px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .newslab-verifier-container {
        padding: 15px;
    }
    
    .newslab-verifier-header h2 {
        font-size: 20px;
    }
    
    .newslab-verifier-input-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .newslab-verifier-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .newslab-verifier-result-title {
        font-size: 18px;
    }
    
    .newslab-verifier-result-message {
        font-size: 14px;
    }
}


/* Results page */
.newslab-verifier-results-page {
    max-width: 800px;
    margin: 0 auto;
      font-family: "Cairo", "Tajawal", sans-serif;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.newslab-verifier-results-header {
    margin-bottom: 20px;
    text-align: center;
}

.newslab-verifier-results-header h2 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 24px;
    color: #333;
}

.newslab-verifier-result-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.newslab-verifier-result-date {
    margin-left: 15px;
}

.newslab-verifier-results-content {
    margin-bottom: 20px;
}

.newslab-verifier-original-query {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.newslab-verifier-original-query h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.newslab-verifier-query-text {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.newslab-verifier-theme-dark .newslab-verifier-results-page {
    background-color: #333333;
    color: #f5f5f5;
    border: 1px solid #444444;
}

.newslab-verifier-theme-dark .newslab-verifier-results-header h2 {
    color: #ffffff;
}

.newslab-verifier-theme-dark .newslab-verifier-result-meta {
    color: #aaaaaa;
}

.newslab-verifier-theme-dark .newslab-verifier-original-query {
    background-color: #444444;
    border-color: #555555;
}

.newslab-verifier-theme-dark .newslab-verifier-original-query h3 {
    color: #f5f5f5;
}

.newslab-verifier-theme-dark .newslab-verifier-query-text {
    background-color: #333333;
}

.newslab-verifier-button-secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.newslab-verifier-button-secondary:hover {
    background-color: #eee;
    color: #333;
}