/* Truth Score Plugin Styles */

/* Profile Widget */
.truth-score-profile-widget {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.truth-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge-icon {
    font-size: 24px;
}

.badge-name {
    font-size: 16px;
}

.truth-score-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.truth-score-vote-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ts-vote-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.ts-upvote {
    background: #4CAF50;
    color: white;
}

.ts-upvote:hover {
    background: #45a049;
}

.ts-downvote {
    background: #f44336;
    color: white;
}

.ts-downvote:hover {
    background: #da190b;
}

/* Inline Badge on Posts */
.truth-score-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Prediction Indicator */
.truth-score-prediction-indicator {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator-icon {
    font-size: 20px;
}

.indicator-text {
    font-weight: 600;
    color: #1976D2;
}

.indicator-deadline {
    margin-left: auto;
    font-size: 12px;
    color: #666;
}

/* Better Messages Badge */
.truth-score-msg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    color: white;
    font-size: 11px;
    margin-left: 8px;
}

.truth-score-inline {
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

/* Leaderboard */
.truth-score-leaderboard {
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.leaderboard-grid {
    display: grid;
    gap: 15px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 60px 1fr 120px;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.item-rank {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    text-align: center;
}

.item-avatar img {
    border-radius: 50%;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
}

.item-score {
    text-align: center;
}

.score-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.score-label {
    font-size: 11px;
    color: #666;
}

.item-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

/* User Stats Widget */
.truth-score-user-stats {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
}

.stats-score {
    text-align: right;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-box .stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.stats-recent h3 {
    margin: 20px 0 15px 0;
    font-size: 18px;
}

.prediction-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
}

.prediction-item.status-verified {
    border-left-color: #4CAF50;
}

.prediction-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.prediction-meta {
    font-size: 12px;
}

.meta-result {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
}

.meta-result.result-correct {
    background: #4CAF50;
}

.meta-result.result-wrong {
    background: #f44336;
}

.meta-status {
    color: #666;
}

/* Prediction Form */
.truth-score-prediction-form {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.truth-score-prediction-form h3 {
    margin-top: 0;
}

.form-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.form-spinner.is-active {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    font-size: 14px;
}

/* Recent Predictions */
.truth-score-recent-predictions {
    max-width: 800px;
    margin: 0 auto;
}

.truth-score-recent-predictions h3 {
    margin-bottom: 20px;
}

.prediction-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
}

.prediction-card.status-verified {
    border-left-color: #4CAF50;
}

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

.card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 600;
}

.user-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
    font-size: 11px;
}

.card-date {
    font-size: 12px;
    color: #999;
}

.card-body {
    margin-bottom: 15px;
}

.prediction-details {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.result-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.result-badge.result-correct {
    background: #E8F5E9;
    color: #2E7D32;
}

.result-badge.result-wrong {
    background: #FFEBEE;
    color: #C62828;
}

.pending-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    background: #FFF3E0;
    color: #EF6C00;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .truth-score-stats {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-item {
        grid-template-columns: 50px 50px 1fr 100px;
        gap: 10px;
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* User Search & Review System */
.truth-score-user-search {
    max-width: 1000px;
    margin: 0 auto;
}

/* Truth Score Hub - Master Container */
.truthscore-hub {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #0f172a, #0b1220);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(51, 204, 255, 0.25);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

/* Ensure parent containers don't restrict width */
.truthscore-hub * {
    box-sizing: border-box;
}

/* Mobile: Full width, edge-to-edge, NO container styling */
@media (max-width: 768px) {
    /* Override any parent padding/margin on mobile */
    body .truthscore-hub {
        max-width: 100vw;
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 0;
        border: none !important; /* Remove all border on mobile */
        box-shadow: none !important; /* Remove shadow on mobile */
        background: transparent !important; /* Remove container background */
    }
    
    /* Force any wrapping elements to be full width */
    .truthscore-hub-wrapper,
    .entry-content .truthscore-hub,
    .site-content .truthscore-hub,
    article .truthscore-hub,
    main .truthscore-hub {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

.hub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(51, 204, 255, 0.15);
    padding-bottom: 0;
}

.hub-tab {
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 204, 255, 0.15);
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(230, 247, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto;
}

.hub-tab:hover {
    color: #33ccff;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(51, 204, 255, 0.35);
}

.hub-tab.active {
    color: #33ccff;
    border-bottom-color: #33ccff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 1), rgba(11, 18, 32, 1));
    border: 1px solid rgba(51, 204, 255, 0.4);
    border-bottom-color: #33ccff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hub-content {
    position: relative;
    min-height: 400px;
}

.hub-panel {
    display: none !important;
}

.hub-panel.active {
    display: block !important;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override white backgrounds to dark theme */
.truthscore-hub .leaderboard-item,
.truthscore-hub .user-search-result,
.truthscore-hub .review-user-header,
.truthscore-hub .review-form-section,
.truthscore-hub .review-predictions-section,
.truthscore-hub .review-comments-section,
.truthscore-hub .truth-score-prediction-form,
.truthscore-hub .prediction-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(11, 18, 32, 0.6)) !important;
    border: 1px solid rgba(51, 204, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #e6f7ff;
}

/* Remove inner frame from leaderboard container - just show cards */
.truthscore-hub .truth-score-leaderboard {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

/* Remove inner frame from recent predictions container - just show cards */
.truthscore-hub .truth-score-recent-predictions {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
}

/* Add padding to leaderboard title */
.truthscore-hub .leaderboard-title {
    padding: 20px 0 10px 0;
    margin-bottom: 20px;
}

/* Add padding to recent predictions title */
.truthscore-hub .truth-score-recent-predictions h3 {
    padding: 20px 0 10px 0;
    margin-bottom: 20px;
}

.truthscore-hub h2,
.truthscore-hub h3,
.truthscore-hub .search-title {
    color: #33ccff !important;
}

.truthscore-hub .result-name,
.truthscore-hub .item-name,
.truthscore-hub .stat-value,
.truthscore-hub .reviewer-name,
.truthscore-hub .user-name,
.truthscore-hub .card-user,
.truthscore-hub .prediction-text {
    color: #e6f7ff !important;
}

.truthscore-hub .stat-label,
.truthscore-hub .result-stats,
.truthscore-hub .search-description,
.truthscore-hub small,
.truthscore-hub .description,
.truthscore-hub .card-date,
.truthscore-hub .meta-date,
.truthscore-hub .form-description,
.truthscore-hub label {
    color: rgba(230, 247, 255, 0.7) !important;
}

.truthscore-hub .card-body p,
.truthscore-hub .card-body,
.truthscore-hub .prediction-details {
    color: rgba(230, 247, 255, 0.85) !important;
}

.truthscore-hub .button,
.truthscore-hub .button-primary,
.truthscore-hub #ts-user-search-btn {
    background: linear-gradient(180deg, #0f172a, #0b1220) !important;
    border: 1px solid rgba(51, 204, 255, 0.4) !important;
    color: #33ccff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.truthscore-hub .button:hover,
.truthscore-hub .button-primary:hover {
    border-color: rgba(51, 204, 255, 0.6) !important;
    box-shadow: 0 6px 16px rgba(51, 204, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.truthscore-hub #ts-user-search-input {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(51, 204, 255, 0.3) !important;
    color: #e6f7ff !important;
}

.truthscore-hub #ts-user-search-input::placeholder {
    color: rgba(230, 247, 255, 0.5);
}

.truthscore-hub #ts-user-search-input:focus {
    border-color: #33ccff !important;
    box-shadow: 0 0 0 3px rgba(51, 204, 255, 0.15);
}

.truthscore-hub textarea {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(51, 204, 255, 0.3) !important;
    color: #e6f7ff !important;
}

.truthscore-hub textarea:focus {
    border-color: #33ccff !important;
    box-shadow: 0 0 0 3px rgba(51, 204, 255, 0.15);
}

.truthscore-hub .vote-btn {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(11, 18, 32, 0.8)) !important;
    border: 2px solid rgba(51, 204, 255, 0.25) !important;
    color: #e6f7ff !important;
}

.truthscore-hub .vote-btn:hover {
    border-color: rgba(51, 204, 255, 0.5) !important;
}

.truthscore-hub .vote-btn.selected.vote-up {
    background: rgba(76, 175, 80, 0.15) !important;
    border-color: #4CAF50 !important;
    color: #4CAF50 !important;
}

.truthscore-hub .vote-btn.selected.vote-down {
    background: rgba(244, 67, 54, 0.15) !important;
    border-color: #f44336 !important;
    color: #f44336 !important;
}

.truthscore-hub .prediction-item,
.truthscore-hub .review-item {
    background: rgba(15, 23, 42, 0.4) !important;
    border-left-color: rgba(51, 204, 255, 0.5);
    color: #e6f7ff;
}

.truthscore-hub .review-comment,
.truthscore-hub .prediction-text {
    color: rgba(230, 247, 255, 0.9) !important;
}

.back-button {
    background: linear-gradient(180deg, #0f172a, #0b1220) !important;
    border: 1px solid rgba(51, 204, 255, 0.3) !important;
    color: #33ccff !important;
    font-weight: 600;
    margin: 15px 0 15px 15px !important;
}

.back-button:hover {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(51, 204, 255, 0.5) !important;
}

.no-results,
.searching {
    color: rgba(230, 247, 255, 0.6) !important;
}

.search-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.search-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#ts-user-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
}

#ts-user-search-input:focus {
    outline: none;
    border-color: #2196F3;
}

.search-results-grid {
    display: grid;
    gap: 15px;
}

.user-search-result {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-avatar img {
    border-radius: 50%;
}

.truthscore-hub .result-avatar img,
.truthscore-hub .item-avatar img,
.truthscore-hub .header-avatar img,
.truthscore-hub .review-header img,
.truthscore-hub img[class*="avatar"] {
    border-radius: 50% !important;
}

.result-info {
    flex: 1;
}

.result-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    margin-bottom: 8px;
}

.result-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.no-results, .searching {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* User Review Page */
.truth-score-user-review-page {
    max-width: 1000px;
    margin: 0 auto;
}

.review-user-header {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.header-info h2 {
    margin: 0 0 10px 0;
}

.header-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-item .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.review-form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.review-form-section h3 {
    margin-top: 0;
}

.vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.vote-btn {
    padding: 20px;
    border: 3px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.vote-btn:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
}

.vote-btn.selected {
    border-width: 4px;
}

.vote-btn.vote-up {
    color: #4CAF50;
}

.vote-btn.vote-up.selected {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.vote-btn.vote-down {
    color: #f44336;
}

.vote-btn.vote-down.selected {
    background: #FFEBEE;
    border-color: #f44336;
}

.vote-btn small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

.review-predictions-section,
.review-comments-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.review-predictions-section h3,
.review-comments-section h3 {
    margin-top: 0;
}

.reviews-list {
    display: grid;
    gap: 15px;
}

.review-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.review-item.vote-up {
    border-left-color: #4CAF50;
}

.review-item.vote-down {
    border-left-color: #f44336;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.review-header img {
    border-radius: 50%;
}

.review-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-name {
    font-weight: 600;
}

.review-vote {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.review-vote.vote-up {
    background: #E8F5E9;
    color: #2E7D32;
}

.review-vote.vote-down {
    background: #FFEBEE;
    color: #C62828;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.review-comment {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.review-ai-analysis {
    font-size: 12px;
    color: #666;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #2196F3;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: #999;
}

.login-message {
    text-align: center;
    padding: 20px;
    background: #FFF3E0;
    border-radius: 8px;
    color: #EF6C00;
    font-weight: 600;
}

@media (max-width: 768px) {
    /* ========================================
       MOBILE STYLES - COMPLETE OVERHAUL
       ======================================== */
    
    /* Hub Container - Full width, NO container styling */
    .truthscore-hub {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* All children should respect container */
    .truthscore-hub * {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
    
    /* Hub Tabs - Vertical stack */
    .hub-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        border-bottom: none !important;
    }
    
    .hub-tab {
        width: 100% !important;
        padding: 14px 15px !important;
        font-size: 15px !important;
        text-align: center !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(11, 18, 32, 0.8)) !important;
        border: 1px solid rgba(51, 204, 255, 0.25) !important;
    }
    
    .hub-tab.active {
        background: linear-gradient(180deg, rgba(51, 204, 255, 0.15), rgba(51, 204, 255, 0.05)) !important;
        border-color: rgba(51, 204, 255, 0.5) !important;
    }
    
    /* Leaderboard Mobile - Clean layout */
    .truth-score-leaderboard {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .leaderboard-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
    }
    
    .leaderboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Leaderboard Items - Card style for mobile */
    .leaderboard-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 10px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .item-rank {
        font-size: 16px !important;
        font-weight: bold !important;
        min-width: 30px !important;
        text-align: center !important;
    }
    
    .item-avatar {
        flex-shrink: 0 !important;
    }
    
    .item-avatar img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
    }
    
    .item-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .item-name {
        font-size: 14px !important;
        font-weight: 600 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .item-badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
        display: inline-block !important;
        margin-top: 4px !important;
    }
    
    .item-stats {
        display: none !important; /* Hide on mobile for cleaner look */
    }
    
    .item-score {
        flex-shrink: 0 !important;
        text-align: right !important;
    }
    
    .item-score .score-value {
        font-size: 20px !important;
        font-weight: bold !important;
    }
    
    .item-score .score-label {
        font-size: 10px !important;
    }
    
    /* Search Section Mobile */
    .search-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .search-description {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .search-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    
    #ts-user-search-input {
        width: 100% !important;
        font-size: 16px !important;
        padding: 14px 15px !important;
        border-radius: 8px !important;
    }
    
    #ts-user-search-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    
    /* Search Results Mobile */
    .search-results-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .user-search-result {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 15px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }
    
    .user-search-result img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
    }
    
    .user-search-result .result-info {
        width: 100% !important;
    }
    
    .user-search-result .result-name {
        font-size: 16px !important;
    }
    
    .user-search-result .result-stats {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        font-size: 12px !important;
        margin-top: 8px !important;
    }
    
    .user-search-result .button {
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    /* User Profile Mobile */
    .review-user-header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }
    
    .header-avatar img {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
        border-radius: 50% !important;
    }
    
    .header-info {
        width: 100% !important;
    }
    
    .header-info h2 {
        font-size: 20px !important;
        margin-top: 10px !important;
    }
    
    .header-badge {
        font-size: 13px !important;
        padding: 6px 15px !important;
        display: inline-block !important;
    }
    
    .header-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 15px !important;
    }
    
    .stat-item {
        text-align: center !important;
    }
    
    .stat-item .stat-value {
        font-size: 22px !important;
    }
    
    .stat-item .stat-label {
        font-size: 11px !important;
    }
    
    /* Review Form Mobile */
    .review-form-section,
    .review-predictions-section,
    .review-comments-section {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 10px !important;
    }
    
    .vote-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .vote-btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
    
    .vote-btn small {
        display: block !important;
        font-size: 11px !important;
        margin-top: 4px !important;
    }
    
    .form-field textarea {
        font-size: 16px !important;
        padding: 12px !important;
        border-radius: 8px !important;
        min-height: 100px !important;
    }
    
    .form-field label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    /* Predictions Mobile */
    .truth-score-recent-predictions {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .prediction-card {
        padding: 12px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }
    
    .card-header {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .card-user {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .card-user img {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
    }
    
    .card-date {
        font-size: 12px !important;
    }
    
    .prediction-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 10px 0 !important;
    }
    
    .prediction-details {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 12px !important;
    }
    
    .prediction-details .detail {
        background: rgba(51, 204, 255, 0.1) !important;
        padding: 4px 10px !important;
        border-radius: 15px !important;
    }
    
    .card-footer {
        margin-top: 10px !important;
    }
    
    .result-badge,
    .pending-badge {
        font-size: 12px !important;
        padding: 6px 12px !important;
        border-radius: 15px !important;
        display: inline-block !important;
    }
    
    /* Prediction Form Mobile */
    .truth-score-prediction-form {
        padding: 15px !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }
    
    .truth-score-prediction-form h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .truth-score-prediction-form .description {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    .truth-score-prediction-form textarea {
        font-size: 16px !important;
        padding: 12px !important;
        border-radius: 8px !important;
        min-height: 120px !important;
    }
    
    .truth-score-prediction-form .button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        margin-top: 10px !important;
    }
    
    /* Reviews List Mobile */
    .review-item {
        padding: 12px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }
    
    .review-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .review-header img {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
    }
    
    .reviewer-name {
        font-size: 14px !important;
    }
    
    .review-vote {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }
    
    .review-date {
        font-size: 11px !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
    
    .review-comment {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-top: 10px !important;
    }
    
    .review-ai-analysis {
        font-size: 11px !important;
        padding: 6px 10px !important;
        margin-top: 8px !important;
        border-radius: 6px !important;
    }
    
    /* Back Button Mobile */
    .back-button {
        width: calc(100% - 30px) !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        margin: 15px !important;
        text-align: center !important;
        border-radius: 8px !important;
    }
    
    /* Touch-friendly - All interactive elements */
    .truthscore-hub .button,
    .truthscore-hub button,
    .truthscore-hub input[type="submit"],
    .vote-btn,
    .hub-tab {
        min-height: 48px !important;
        cursor: pointer !important;
    }
    
    /* Hide overflow */
    .hub-panel {
        overflow: hidden !important;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .truthscore-hub {
        padding: 10px !important;
    }
    
    .hub-tab {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .leaderboard-item {
        padding: 10px !important;
    }
    
    .item-avatar img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .item-name {
        font-size: 13px !important;
    }
    
    .item-score .score-value {
        font-size: 18px !important;
    }
    
    .prediction-card {
        padding: 10px !important;
    }
    
    .card-user img {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Prediction Search Box */
.predictions-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.predictions-search-box input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
}

.predictions-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.predictions-search-box input:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(0, 0, 0, 0.3);
}

.predictions-search-box button {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#prediction-search-btn {
    background: linear-gradient(135deg, #4a9eff, #7c3aed);
    color: white;
    border: none;
}

#prediction-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

#prediction-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

#prediction-clear-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

.search-results-header {
    padding: 12px 16px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    color: #4a9eff;
    font-weight: 600;
    font-size: 14px;
}

.searching-predictions {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.no-predictions-found {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

/* Mobile optimization for prediction search */
@media (max-width: 768px) {
    .predictions-search-box {
        flex-direction: column;
        padding: 12px;
    }
    
    .predictions-search-box input {
        width: 100%;
    }
    
    .predictions-search-box button {
        width: 100%;
    }
}

/* ===========================================
   MY STATS TAB STYLES
   =========================================== */

.my-stats-container {
    padding: 20px;
}

/* Stats Header */
.my-stats-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(100, 100, 255, 0.1));
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.my-stats-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(0, 200, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}

.my-stats-info {
    flex: 1;
}

.my-stats-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.my-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.my-stats-score {
    text-align: center;
    padding: 15px 25px;
    background: rgba(0, 200, 255, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.my-stats-score .score-value {
    font-size: 42px;
    font-weight: 800;
    color: #00c8ff;
    line-height: 1;
}

.my-stats-score .score-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Stats Grid */
.my-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Predictions Section */
.my-predictions-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.my-predictions-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.no-predictions {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

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

.my-prediction-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
}

.my-prediction-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.my-prediction-item.result-correct {
    border-left: 4px solid #4CAF50;
}

.my-prediction-item.result-wrong {
    border-left: 4px solid #f44336;
}

.my-prediction-item.result-pending {
    border-left: 4px solid #ff9800;
}

.prediction-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.prediction-asset {
    font-size: 18px;
    font-weight: 700;
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.prediction-target {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.prediction-deadline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
}

.prediction-text-preview {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.prediction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prediction-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-correct {
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
}

.status-wrong {
    color: #f44336;
    font-weight: 600;
    font-size: 14px;
}

.status-pending {
    color: #ff9800;
    font-weight: 500;
    font-size: 14px;
}

.peak-indicator {
    font-size: 12px;
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.prediction-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsive for My Stats */
@media (max-width: 768px) {
    .my-stats-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .my-stats-info {
        text-align: center;
    }
    
    .my-stats-score {
        width: 100%;
    }
    
    .my-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-card .stat-number {
        font-size: 22px;
    }
    
    .prediction-main {
        flex-wrap: wrap;
    }
    
    .prediction-asset {
        min-width: auto;
    }
    
    .prediction-deadline {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .prediction-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
