/* White Label Search Engine - Basic Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img,
.header-logo {
    max-height: 50px;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
}

/* Desktop language selector - visible on desktop, positioned after nav menu */
.desktop-language-selector {
    display: flex;
    margin-left: auto; /* Push to the right */
    position: relative;
    z-index: 1; /* Lower z-index than hamburger button */
    pointer-events: auto; /* Ensure it's clickable */
}

/* Mobile language selector - hidden on desktop */
.mobile-language-selector {
    display: none;
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.language-selector select:hover {
    border-color: #007bff;
}

.language-selector select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Higher than language selector */
    position: relative; /* Ensure it can use z-index */
    -webkit-tap-highlight-color: transparent; /* Remove mobile tap highlight */
    touch-action: manipulation; /* Improve touch response */
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav Menu Wrapper */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Dark Mode Language Selector */
[data-theme="dark"] .language-selector select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

[data-theme="dark"] .language-selector select:hover {
    border-color: var(--link-color);
}

[data-theme="dark"] .language-selector select:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.25);
}

/* Dark Mode Hamburger Menu */
[data-theme="dark"] .mobile-menu-toggle span {
    background: #e0e0e0;
}

[data-theme="dark"] .nav-menu-wrapper {
    border-top-color: #444;
}

[data-theme="dark"] .nav-menu > li {
    border-bottom-color: #444;
}

[data-theme="dark"] .nav-dropdown-menu {
    border-top-color: #444;
}

.header-logo-small {
    max-height: 30px;
    width: auto;
    vertical-align: middle;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
}

.nav-menu a:hover {
    color: #007bff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 150px;
    z-index: 1000;
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-logo-right {
    margin-left: auto;
}

.nav-logo-right a {
    display: flex;
    align-items: center;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

/* Search Form */
.search-container {
    text-align: center;
    padding: 4rem 1rem;
}

.search-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Hide any portrait logo that might exist in search container only */
.search-container .logo-portrait {
    display: none !important;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.search-form input:focus {
    outline: none;
    border-color: #007bff;
}

.search-form button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background: #0056b3;
}

/* Footer */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #007bff;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5rem;
}

.rommie-badge {
    margin: 1rem 0;
}

/* Search Results */
.search-results {
    max-width: 800px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 2rem;
}

.search-form-inline {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-form-inline input {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.search-form-inline button {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.results-info {
    color: #666;
    font-size: 0.9rem;
}

.results-list {
    margin: 2rem 0;
}

.result-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: normal;
}

.result-title a {
    color: #1a0dab;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-url {
    color: #006621;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.result-host {
    color: #666;
}

.result-description {
    color: #545454;
    line-height: 1.5;
}

.result-description mark,
.result-title mark {
    background: #fffacd;
    padding: 0 2px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results h2 {
    margin-bottom: 1rem;
    color: #666;
}

/* Ads */
/* Ad Styling */
.ad-container {
    position: relative;
    z-index: 1;
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: left;
}

.ad-top {
    margin-top: 0;
}

.ad-bottom {
    margin-bottom: 2rem;
}

.ad-unit {
    margin: 0;
}

/* Ad items styled like search results */
.ad-item {
    margin-bottom: 1.5rem;
    text-align: left;
}

.ad-item .result-title {
    margin-bottom: 0.25rem;
}

.ad-item .result-title .ad-label {
    color: #666;
    font-size: 0.875rem;
    font-weight: normal;
    margin-right: 0.5rem;
}

.ad-item .result-url {
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    background: white;
}

.pagination-link:hover {
    background: #f0f0f0;
}

.pagination-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* AI Summary */
.ai-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.ai-summary h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
}

.ai-summary-content {
    color: #545454;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.ai-summary-disclaimer {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* Static Pages */
.static-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.static-page h1 {
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.static-content {
    line-height: 1.8;
    color: #555;
}

.static-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.static-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #444;
}

.static-content p {
    margin-bottom: 1rem;
}

.static-content ul, .static-content ol {
    margin: 1rem 0 1rem 2rem;
}

.static-content li {
    margin-bottom: 0.5rem;
}

.advertise-cta {
    border: 2px solid #007bff;
}

/* News Feed */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-container h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.no-articles {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-article {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-article:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #007bff;
}

.article-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-source {
    font-weight: 600;
}

.article-excerpt {
    color: #545454;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

.ad-midpage {
    grid-column: 1 / -1;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

/* Ensure A-ads iframes don't overlay the video modal */
.ad-container iframe,
.ad-unit iframe {
    position: relative;
    z-index: 1 !important;
}

/* Video Search Results */
.video-results-list {
    margin: 2rem 0;
}

.video-result-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.video-result-item:last-child {
    border-bottom: none;
}

.video-thumbnail {
    flex-shrink: 0;
    width: 320px;
    height: 180px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.video-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.video-details {
    flex: 1;
}

.video-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: normal;
}

.video-title a {
    color: #1a0dab;
    text-decoration: none;
}

.video-title a:hover {
    text-decoration: underline;
}

.video-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.video-channel {
    font-weight: 600;
}

.video-description {
    color: #545454;
    line-height: 1.5;
}

.pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #666;
}

/* Responsive Video Results */
@media (max-width: 768px) {
    .video-result-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* Image Search Results */
.image-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-result-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.image-result-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-link {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}

.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-result-item:hover .image-link img {
    transform: scale(1.05);
}

.image-info {
    padding: 1rem;
}

.image-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-creator {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.image-license {
    font-size: 0.8rem;
    color: #999;
}

.image-license a {
    color: #007bff;
    text-decoration: none;
}

.image-license a:hover {
    text-decoration: underline;
}

/* Sound Search Results */
.sound-results-list {
    margin: 2rem 0;
}

.sound-result-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.sound-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sound-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.sound-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sound-details {
    flex: 1;
}

.sound-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: normal;
}

.sound-title a {
    color: #1a0dab;
    text-decoration: none;
}

.sound-title a:hover {
    text-decoration: underline;
}

.sound-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sound-license {
    font-size: 0.85rem;
    color: #666;
}

.sound-license a {
    color: #007bff;
    text-decoration: none;
}

.sound-license a:hover {
    text-decoration: underline;
}

.sound-play {
    flex-shrink: 0;
}

.play-button:hover {
    background: #0056b3 !important;
}

/* Product Search Results */
.product-results-list {
    margin: 2rem 0;
}

.product-result-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.product-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-details {
    flex: 1;
}

.product-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: normal;
}

.product-title a {
    color: #1a0dab;
    text-decoration: none;
}

.product-title a:hover {
    text-decoration: underline;
}

.product-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-brand {
    font-weight: 600;
}

.product-description {
    color: #545454;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.25rem;
    color: #28a745;
}

.availability-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.availability-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.availability-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.availability-badge.preorder {
    background: #fff3cd;
    color: #856404;
}

/* Responsive Image & Sound Results */
@media (max-width: 768px) {
    .image-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .sound-result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sound-play {
        width: 100%;
    }
    
    .sound-play .play-button {
        width: 100%;
        text-align: center;
    }
    
    .product-result-item {
        flex-direction: column;
    }
    
    .product-image,
    .product-image-placeholder {
        width: 100%;
        aspect-ratio: 1;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu-wrapper {
        display: none !important; /* Force hidden by default */
        position: absolute;
        top: 100%;
        left: 0 !important; /* Override desktop centering */
        transform: none !important; /* Override desktop transform */
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-top: 1px solid #e0e0e0;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu-wrapper.active {
        display: flex !important; /* Force visible when active */
    }
    
    /* Hide desktop language selector on mobile */
    .desktop-language-selector {
        display: none;
    }
    
    /* Show mobile language selector - centered row below nav */
    .mobile-language-selector {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 1rem;
        border-top: 1px solid #e0e0e0;
        background: white;
    }
    
    .mobile-language-selector select {
        width: auto;
        min-width: 200px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-dropdown-menu {
        right: auto;
        left: 0;
        display: none !important;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 0;
        width: 100%;
        padding: 0;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none !important;
    }
    
    /* When hamburger menu is active, show the More dropdown items automatically */
    .nav-menu-wrapper.active .nav-dropdown .nav-dropdown-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 0;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e0e0e0;
        margin-top: 0;
    }
    
    .nav-dropdown-toggle {
        display: block;
        padding: 1rem;
        width: 100%;
        cursor: default; /* Disable pointer on mobile since it doesn't toggle */
    }
    
    /* Hide the dropdown arrow on mobile since items are always visible when menu is open */
    .nav-menu-wrapper.active .nav-dropdown-toggle span {
        display: none;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
    }
    
    .search-form-inline {
        flex-direction: column;
    }
    
    .search-form-inline button {
        width: 100%;
    }
    
    .result-item {
        margin-bottom: 1.5rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-thumbnail {
        height: 180px;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    background: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff;
}

[data-theme="dark"] header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

[data-theme="dark"] .nav-menu a {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-menu a:hover {
    color: #4da6ff;
}

[data-theme="dark"] .mobile-language-selector {
    background: var(--header-bg);
    border-top-color: #444;
}

[data-theme="dark"] .nav-dropdown-menu {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .nav-dropdown-menu a {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-dropdown-menu a:hover {
    background: #3d3d3d;
    color: #4da6ff;
}

[data-theme="dark"] footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    color: #e0e0e0;
}

[data-theme="dark"] .footer-links a {
    color: #b0b0b0;
}

[data-theme="dark"] .footer-links a:hover {
    color: #4da6ff;
}

[data-theme="dark"] .social-links a {
    color: #b0b0b0;
}

[data-theme="dark"] .search-form input {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .search-form input:focus {
    border-color: #4da6ff;
    background: #333;
}

[data-theme="dark"] .search-form input::placeholder {
    color: #888;
}

[data-theme="dark"] .search-form-inline input {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .search-form-inline input::placeholder {
    color: #888;
}

[data-theme="dark"] .result-item {
    border-bottom-color: #333;
}

[data-theme="dark"] .result-title a {
    color: #6ab7ff;
}

[data-theme="dark"] .result-url {
    color: #4ade80;
}

[data-theme="dark"] .result-description {
    color: #d0d0d0;
}

[data-theme="dark"] .results-info {
    color: #b0b0b0;
}

[data-theme="dark"] .ad-container {
    background: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .pagination-link {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .pagination-link:hover {
    background: #3d3d3d;
}

[data-theme="dark"] .pagination-link.active {
    background: #4da6ff;
    border-color: #4da6ff;
    color: white;
}

[data-theme="dark"] .ai-summary {
    background: #2d2d2d;
    border-left-color: #4da6ff;
}

[data-theme="dark"] .ai-summary h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .ai-summary-content {
    color: #d0d0d0;
}

[data-theme="dark"] .ai-summary-disclaimer {
    color: #888;
}

[data-theme="dark"] .static-page {
    color: #e0e0e0;
}

[data-theme="dark"] .static-content {
    color: #d0d0d0;
}

[data-theme="dark"] .static-content h2,
[data-theme="dark"] .static-content h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .news-article {
    background: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .article-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .article-title a:hover {
    color: #4da6ff;
}

[data-theme="dark"] .article-meta {
    color: #b0b0b0;
}

[data-theme="dark"] .article-excerpt {
    color: #d0d0d0;
}

[data-theme="dark"] .video-result-item,
[data-theme="dark"] .image-result-item,
[data-theme="dark"] .sound-result-item,
[data-theme="dark"] .product-result-item {
    background: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .video-title a,
[data-theme="dark"] .sound-title a,
[data-theme="dark"] .product-title a {
    color: #6ab7ff;
}

[data-theme="dark"] .video-meta,
[data-theme="dark"] .sound-meta,
[data-theme="dark"] .product-meta {
    color: #b0b0b0;
}

[data-theme="dark"] .video-description,
[data-theme="dark"] .sound-license,
[data-theme="dark"] .product-description {
    color: #d0d0d0;
}

[data-theme="dark"] .total-env-savings {
    background: #2d4a5f !important;
    border-color: #3d5a6f !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .total-env-savings p,
[data-theme="dark"] .total-env-savings div {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .env-savings-banner {
    background: #2d4a2d !important;
    border-color: #3d5a3d !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .no-results h2 {
    color: #b0b0b0;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #f0f0f0;
    border-color: #007bff;
}

[data-theme="dark"] .theme-toggle {
    border-color: #555;
    color: #e0e0e0;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #2d2d2d;
    border-color: #4da6ff;
}

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