/* ============================================
   Dark Mode Overrides for lemiglioridi-autogen plugin
   Overrides ranking.css classes (.lmda-*)
   ============================================ */

/* --- Intro --- */
.lmda-intro {
    color: var(--text-primary);
}

/* --- Comparison Table --- */
.lmda-comparison-table {
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.lmda-comparison-table thead {
    background: linear-gradient(135deg, #1a1a2e, #252540);
}

.lmda-comparison-table th {
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-subtle);
}

.lmda-comparison-table td {
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    background: var(--bg-card);
}

.lmda-comparison-table tbody tr:nth-child(even) td {
    background: var(--bg-secondary);
}

.lmda-comparison-table tbody tr:hover td {
    background: var(--bg-card-hover);
}

.lmda-pos {
    color: var(--accent-teal);
}

.lmda-badge {
    background: var(--accent-orange);
}

.lmda-stars {
    color: var(--accent-stars);
}

/* --- CTA Buttons --- */
.lmda-cta-btn {
    background: var(--accent-orange);
    color: #fff !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--glow-orange);
}

.lmda-cta-btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--glow-orange);
}

.lmda-cta-button {
    background: linear-gradient(135deg, var(--accent-orange), #ff8c42) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px var(--glow-orange);
    transition: all 0.3s ease;
}

.lmda-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-orange);
}

/* --- Product Cards --- */
.lmda-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.lmda-product-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

.lmda-product-header h2 {
    color: var(--text-heading);
}

.lmda-position {
    background: linear-gradient(135deg, var(--accent-teal), #00b894);
    color: #000;
}

/* --- Product Meta --- */
.lmda-product-meta {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.lmda-price-label {
    color: var(--text-muted);
}

.lmda-rating-box {
    color: var(--text-primary);
}

/* --- Specs Table --- */
.lmda-specs h3 {
    color: var(--text-heading);
}

.lmda-specs-table td {
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.lmda-specs-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.lmda-specs-table td:first-child {
    color: var(--text-secondary);
    font-weight: 600;
}

/* --- Review --- */
.lmda-review {
    background: rgba(74, 158, 255, 0.08);
    border-left: 4px solid var(--accent-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
}

.lmda-review h3 {
    color: var(--accent-blue);
}

/* --- Pros/Cons --- */
.lmda-pros-cons {
    gap: 1.5rem;
}

.lmda-pros h4 {
    color: var(--accent-green);
}

.lmda-cons h4 {
    color: var(--accent-red);
}

.lmda-pros li, .lmda-cons li {
    color: var(--text-primary);
}

.lmda-pros li::before {
    color: var(--accent-green);
}

.lmda-cons li::before {
    color: var(--accent-red);
}

/* --- Buying Guide --- */
.lmda-buying-guide {
    background: rgba(255, 107, 53, 0.06);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.lmda-buying-guide h2 {
    color: var(--accent-orange);
}

.lmda-buying-guide h3 {
    color: var(--text-heading);
}

.lmda-buying-guide p,
.lmda-buying-guide li {
    color: var(--text-primary);
}

/* --- FAQ --- */
.lmda-faq h2 {
    color: var(--text-heading);
}

.lmda-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.lmda-faq-item:hover {
    border-color: var(--border-hover);
}

.lmda-faq-item h3 {
    color: var(--text-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lmda-faq-item h3::after {
    content: '+';
    color: var(--accent-teal);
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.lmda-faq-item.active h3::after {
    transform: rotate(45deg);
}

.lmda-faq-item p {
    color: var(--text-secondary);
}

/* --- Inline CTA --- */
.lmda-inline-cta {
    background: rgba(0, 212, 170, 0.06);
    border-left: 4px solid var(--accent-teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
}

.lmda-inline-cta a {
    color: var(--accent-teal);
    font-weight: 600;
}

/* --- Category Grid (shortcode) --- */
.lmda-category-grid {
    gap: 1.5rem;
}

.lmda-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary) !important;
    box-shadow: none;
    transition: all 0.3s ease;
}

.lmda-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-teal);
}

.lmda-category-card h3 {
    color: var(--text-heading);
}

.lmda-cat-count {
    color: var(--text-muted);
}

/* --- Table Wrap Scrollbar --- */
.lmda-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.lmda-table-wrap::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.lmda-table-wrap::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.lmda-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
