/* Aggressive Dark Mode for Trader Profiles */
html.trader-dark-mode,
body.trader-profile-dark-mode,
body.single-trader {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    filter: invert(0) !important;
}

/* Force dark mode on all elements */
html.trader-dark-mode *,
body.trader-profile-dark-mode *,
body.single-trader * {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    scrollbar-color: #bb86fc #1e1e1e !important;
}

/* Specific element overrides */
body.trader-profile-dark-mode,
body.single-trader {
    --wp-admin-theme-color: #bb86fc !important;
    --wp-admin-theme-color-darker-10: #9966cc !important;
    --wp-admin-theme-color-darker-20: #774acc !important;
}

/* Headings */
body.trader-profile-dark-mode h1,
body.trader-profile-dark-mode h2,
body.trader-profile-dark-mode h3,
body.trader-profile-dark-mode h4,
body.trader-profile-dark-mode h5,
body.trader-profile-dark-mode h6,
body.single-trader h1,
body.single-trader h2,
body.single-trader h3,
body.single-trader h4,
body.single-trader h5,
body.single-trader h6 {
    color: #bb86fc !important;
}

/* Links */
body.trader-profile-dark-mode a,
body.single-trader a {
    color: #03dac6 !important;
    text-decoration-color: #03dac6 !important;
}

body.trader-profile-dark-mode a:hover,
body.single-trader a:hover {
    color: #bb86fc !important;
    text-decoration-color: #bb86fc !important;
}

/* Images and Media */
body.trader-profile-dark-mode img,
body.single-trader img,
body.trader-profile-dark-mode video,
body.single-trader video {
    filter: brightness(0.8) contrast(1.2) !important;
}

/* Scrollbar */
body.trader-profile-dark-mode::-webkit-scrollbar,
body.single-trader::-webkit-scrollbar {
    width: 12px !important;
    background-color: #1e1e1e !important;
}

body.trader-profile-dark-mode::-webkit-scrollbar-thumb,
body.single-trader::-webkit-scrollbar-thumb {
    background-color: #bb86fc !important;
    border-radius: 6px !important;
    border: 3px solid #1e1e1e !important;
}

/* Ensure full coverage */
html.trader-dark-mode body,
body.trader-profile-dark-mode,
body.single-trader {
    background: #121212 !important;
    color: #e0e0e0 !important;
}

/* Content Areas */
body.trader-profile-dark-mode .site-content,
body.single-trader .site-content,
body.trader-profile-dark-mode .entry-content,
body.single-trader .entry-content {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Trader Card Styles */
.trader-profile-dark-mode .trader-card,
.single-trader .trader-card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5) !important;
}

/* Text Colors */
body.trader-profile-dark-mode p,
body.single-trader p {
    color: #e0e0e0 !important;
}

/* Specific Trader Details Styling */
body.trader-profile-dark-mode .trader-details,
body.single-trader .trader-details,
body.trader-profile-dark-mode .entry-content,
body.single-trader .entry-content,
body.trader-profile-dark-mode .site-main,
body.single-trader .site-main {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Remove any background or border on trader detail containers */
body.trader-profile-dark-mode .trader-details > *,
body.single-trader .trader-details > * {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Trader Profile Dark Mode */
.trader-profile-dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.trader-profile-dark-mode .trader-card {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.trader-profile-dark-mode .trader-name {
    color: #bb86fc;
}

.trader-profile-dark-mode .trader-description {
    color: #cfcfcf;
}

.trader-profile-dark-mode .trader-contact-info {
    color: #03dac6;
}

.trader-profile-dark-mode .trader-rating {
    color: #ffd700;
}

.trader-profile-dark-mode .trader-avatar {
    border: 2px solid #bb86fc;
}

.trader-profile-dark-mode .trader-social-links a {
    color: #03dac6;
    transition: color 0.3s ease;
}

.trader-profile-dark-mode .trader-social-links a:hover {
    color: #bb86fc;
}

/* Additional Elements */
body.trader-profile-dark-mode .wp-block-image,
body.single-trader .wp-block-image {
    filter: brightness(0.8) !important;
}

/* Ensure compatibility with various themes */
body.trader-profile-dark-mode *,
body.single-trader * {
    border-color: #333 !important;
}

/* Dark Mode CSS styles for the trader features section */
.trader-features-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.trader-features-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.trader-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.trader-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4CAF50;
    font-weight: 500;
}

.trader-feature .feature-icon {
    font-size: 1.25rem;
    color: #4CAF50;
}

.trader-feature .feature-label {
    color: #fff;
}
