/* Theme Toggle CSS - Orbit Helper */

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.theme-toggle .theme-icon {
    position: absolute;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.theme-toggle .fa-moon {
    color: var(--primary-color);
}

.theme-toggle .fa-sun {
    color: var(--accent-color);
}

/* Header Theme Support */
.homepage-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(20px);
}

/* Account Info Grid Theme Support */
.light-theme .account-info-grid .info-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.light-theme .account-info-grid .info-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--glow-color);
}

/* Ship Values Theme Support */
.light-theme .ship-values {
    color: var(--text-primary);
}

.light-theme .ship-values-empty {
    color: var(--text-muted);
}

.light-theme .ship-value-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .ship-value-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px var(--glow-color);
}

.light-theme .ship-value-item:hover {
    border-color: var(--primary-color);
}

.light-theme .ship-value-item .value-label {
    color: var(--text-primary);
}

.light-theme .ship-value-item .value-amount {
    color: var(--text-primary);
}

.light-theme .ship-value-item.active .value-label,
.light-theme .ship-value-item.active .value-amount {
    color: white;
}

/* Select Items Dropdown Theme Support */
.light-theme .select-items {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .select-item {
    color: var(--text-primary);
}

.light-theme .select-item:hover {
    background: var(--card-bg-hover);
}

.light-theme .select-item.selected {
    background: var(--primary-color);
    color: white;
}

/* Modules Filter Theme Support */
.light-theme .modules-filter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.light-theme .modules-filter .select-selected {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.light-theme .modules-filter .select-selected:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px var(--glow-color);
}

.light-theme .modules-filter .select-items {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.light-theme .modules-filter .select-item {
    color: var(--text-primary);
}

.light-theme .modules-filter .select-item:hover {
    background: var(--card-bg-hover);
}

.light-theme .modules-filter .select-item.selected {
    background: var(--primary-color);
    color: white;
}

.light-theme .modules-filter .select-search input {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.light-theme .modules-filter .select-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.light-theme .modules-filter .select-search input::placeholder {
    color: var(--text-muted);
}

/* Modules Container Theme Support */
.light-theme .modules-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Perk Item Honour Glow Effect for Light Theme */
.light-theme .perk-item.honour:after {
    filter: drop-shadow(0 0 8px var(--primary-color));
}

/* Select Item Icon Glow Effect */
.light-theme .select-item-icon img {
    filter: drop-shadow(0 0 6px var(--primary-color));
}

/* Ship Container Background */
.light-theme .ship-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Button Primary Theme Support */
.light-theme .btn-primary {
    color: white;
    background: var(--gradient-primary);
    border: none;
}

.light-theme .btn-primary:hover {
    background: var(--gradient-secondary);
    color: white;
}

/* Quantity Number Theme Support */
.light-theme .quantity-number {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Item Total Theme Support */
.light-theme .item-total {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Extra Group Title Border Support */
.light-theme .extra-group-title {
    border-bottom: 1px solid var(--border-color);
}

/* Section Title Border Support */
.light-theme .section-title {
    border-bottom: 1px solid var(--border-color);
}

/* Data Table Border Support */
.light-theme .data-table table thead th {
    border-bottom: 1px solid var(--border-color);
}

.light-theme .data-table table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

/* Item Header Border Support */
.light-theme .item-header {
    border-bottom: 1px solid var(--border-color);
}

/* Modules Filter Border Support */
.light-theme .modules-filter .select-search {
    border-bottom: 1px solid var(--border-color);
}

.light-theme .modules-filter .select-item {
    border-bottom: 1px solid var(--border-color);
}

/* Ship Header Border Support */
.light-theme .ship-header {
    border-bottom: 1px solid var(--border-color);
}

/* Ship Stats Border Support */
.light-theme .ship-stats-item {
    border-bottom: 1px solid var(--border-color);
}

/* Module Type Icon Glow Effect */
.light-theme .module-type-icon {
    filter: drop-shadow(0 0 6px var(--primary-color));
}

/* Generator Group Title Border Support */
.light-theme .generator-group-title {
    border-bottom: 1px solid var(--border-color);
}

/* Item Quantity Simple Theme Support */
.light-theme .item-quantity-simple {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Module Item Theme Support - Light Theme */
.light-theme .module-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.light-theme .module-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Quantity Item Theme Support */
.light-theme .quantity-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .quantity-item:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-color);
}

/* Spec Name Theme Support */
.light-theme .spec-name {
    color: var(--text-secondary);
}

/* Best Module Special Cases for Light Theme */
.light-theme .dmg-item.best-module {
    border: 3px solid #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.1);
}

.light-theme .shd-item.best-module {
    border: 3px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    background: rgba(0, 123, 255, 0.1);
}

.light-theme .hp-item.best-module {
    border: 3px solid #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    background: rgba(40, 167, 69, 0.1);
}

.light-theme .spc-item.best-module {
    border: 3px solid #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.1);
}

.light-theme .ax-item.best-module {
    border: 3px solid #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.1);
}

.light-theme .df-item.best-module {
    border: 3px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    background: rgba(0, 123, 255, 0.1);
}

/* Score Progress Theme Support for Light Theme */
.light-theme .score-progress {
    background: rgba(240, 240, 240, 0.9);
    border-radius: 50%;
}

.light-theme .score-text {
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Perk Level Theme Support for Light Theme */
.light-theme .perk-level.level-normal {
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.1);
}

/* Modal Content Theme Support for Light Theme */
.light-theme .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Designs Grid Theme Support for Light Theme */
.light-theme .designs-grid {
    background: rgba(248, 250, 252, 0.5);
}

.light-theme .design-item {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Button Secondary Theme Support for Light Theme - Only in CTA Content */
.light-theme .cta-content .btn-secondary {
    color: white;
    border: 1px solid white;
    backdrop-filter: blur(10px);
}

.light-theme .cta-content .btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Pet Designs Grid Theme Support for Light Theme */
.light-theme .pet-designs-grid .pet-design-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Feature Icon Theme Support for Light Theme */
.light-theme .feature-icon {
    color: #fff;
}

.light-theme .feature-icon i {
    color: #fff;
}

/* Contact Icon Theme Support for Light Theme */
.light-theme .contact-icon {
    color: white;
}

.light-theme .contact-icon i {
    color: white;
}

/* CTA Content Theme Support for Light Theme */
.light-theme .cta-content {
    color: white;
}

.light-theme .cta-content h1,
.light-theme .cta-content h2,
.light-theme .cta-content h3,
.light-theme .cta-content p {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle .theme-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 30px;
        height: 30px;
    }

    .theme-toggle .theme-icon {
        font-size: 0.8rem;
    }
}

/* Header actions container adjustments */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .theme-toggle {
    margin-right: 0;
}

/* Marketplace Filter Theme Support */
.light-theme .marketplace-filter-container {
    background: var(--bg-primary);
}

.light-theme .filter-sidebar {
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
}

.light-theme .filter-header h3 {
    color: var(--primary-color);
}

.light-theme .filter-section-title h4 {
    color: var(--text-primary);
}

.light-theme .filter-section-content {
    color: var(--text-primary);
}

.light-theme .server-select-display {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .server-select-display:hover {
    border-color: var(--primary-color);
}

.light-theme .server-dropdown {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.light-theme .server-option {
    color: var(--text-primary);
}

.light-theme .server-option:hover {
    background: var(--card-bg-hover);
}

.light-theme .slider-container {
    color: var(--text-primary);
}

.light-theme .slider-label {
    color: var(--text-primary);
}

.light-theme .slider-value {
    color: var(--text-secondary);
}

.light-theme .sort-select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .listings-header h2 {
    color: var(--text-primary);
}

.light-theme .listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.light-theme .listing-username {
    color: var(--primary-color);
}

.light-theme .listing-server {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.3);
    color: var(--text-primary);
}

.light-theme .listing-price {
    background: rgba(66, 153, 225, 0.08);
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.light-theme .price-amount {
    color: var(--secondary-color);
}

.light-theme .price-currency {
    color: var(--primary-color);
}

.light-theme .stat-group {
    background: rgba(66, 153, 225, 0.05);
    border: 1px solid var(--border-color);
}

.light-theme .stat-group-title {
    color: var(--primary-color);
}

.light-theme .stat-item {
    background: rgba(66, 153, 225, 0.15);
}

.light-theme .stat-item:hover {
    background: rgba(66, 153, 225, 0.08);
}

.light-theme .stat-label {
    color: var(--text-secondary);
}

.light-theme .ship-modules-table {
    background: rgba(66, 153, 225, 0.05);
    border: 1px solid var(--border-color);
}

.light-theme .ship-modules-table-title {
    color: var(--primary-color);
}

.light-theme .modules-table th {
    background: rgba(66, 153, 225, 0.15);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.light-theme .modules-table td {
    background: rgb(0 111 204 / 15%);
    border: 1px solid var(--border-color);
    text-shadow: 0 0 black;
}

.light-theme .modules-table tbody tr:nth-child(even) td {
    background: rgba(66, 153, 225, 0.15);
}

.light-theme .modules-table tbody tr:hover td {
    background: rgba(66, 153, 225, 0.08);
}

.light-theme .listing-footer {
    border-top: 1px solid var(--border-color);
}

.light-theme .listing-updated {
    color: var(--text-muted);
}

.light-theme .listing-view-btn {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.15), rgba(66, 153, 225, 0.1));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.light-theme .listing-view-btn:hover {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.25), rgba(66, 153, 225, 0.15));
}

.light-theme .custom-popover {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.light-theme .no-results {
    color: var(--text-primary);
}

.light-theme .loading-spinner {
    color: var(--text-primary);
}

.light-theme .mobile-filter-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(66, 153, 225, 0.4);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .mobile-filter-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 25px rgba(66, 153, 225, 0.3);
}

.light-theme .filter-popup {
    background: rgba(255, 255, 255, 0.98);
}

.light-theme .filter-popup-header {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .filter-popup-title {
    color: var(--primary-color);
}

.light-theme .filter-popup-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.light-theme .filter-popup-close:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.3);
}

.light-theme .filter-popup-footer {
    background: rgba(248, 250, 252, 0.95);
    border-top: 1px solid var(--border-color);
}

.light-theme .filter-apply-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.light-theme .filter-apply-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.light-theme .listing-show-more {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.3);
    color: var(--primary-color);
}

.light-theme .listing-show-more:hover {
    background: rgba(66, 153, 225, 0.15);
    border-color: var(--primary-color);
}

.light-theme .listing-ban-badge {
    font-weight: 700;
}

.light-theme .ban-badge-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.light-theme .ban-badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #e0a800;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.light-theme .ban-badge-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.light-theme .preference-item {
    background: rgba(66, 153, 225, 0.08);
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.light-theme .preference-item:hover {
    background: rgba(66, 153, 225, 0.15);
    border-color: rgba(66, 153, 225, 0.4);
}

.light-theme .preference-label {
    color: var(--text-primary);
}

.light-theme .preference-icon {
    color: var(--primary-color);
}

.light-theme .listing-country-badge {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.3);
}

.light-theme .marketplace-content {
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
}

.light-theme .filter-item-label {
    color: rgba(0, 0, 0, 0.9);
}

.light-theme .results-count {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .server-select-dropdown {
    background: var(--background-darker);
}

.light-theme .server-option-label {color: var(--text-primary);}

.light-theme .filter-item-icon {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.light-theme .stat-icon {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

.light-theme .modules-table .stat-icon-cell img {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.light-theme .stat-value {
    text-shadow: 0 0 black;
}

.light-theme .modules-table td {
    text-shadow: 0 0 black;
}

.light-theme .sort-label {
    color: var(--text-primary);
}

.light-theme .last-update {
    color: var(--primary-color);
}