/* Sensi FF - Custom Premium Gaming Stylesheet (White Theme) */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff !important;
    color: #1f2026 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 31, 75, 0.7);
}

/* Background grid mesh overrides for Light Theme */
body .fixed.inset-0.pointer-events-none {
    opacity: 0.75 !important;
    background-image: radial-gradient(at 0% 0%, rgba(255, 106, 0, 0.08) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(255, 31, 75, 0.08) 0px, transparent 50%) !important;
}

/* Text Overrides for High Contrast on White Background */
body h1, body h2, body h3, body h4, body h5, body h6 {
    color: #111827 !important;
}

body p, body li, body span:not(.res-bar-fill):not(.res-item-container *) {
    color: #374151 !important;
}

/* Exception for specific UI texts */
body .text-white {
    color: #111827 !important;
}

body .text-gray-200, 
body .text-gray-300, 
body .text-gray-400 {
    color: #4b5563 !important;
}

body .text-gray-500 {
    color: #6b7280 !important;
}

/* Keep gradient texts transparent so they display correctly */
body .text-transparent,
body h1.text-transparent,
body h2.text-transparent,
body span.text-transparent {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* Glassmorphism Classes for Light mode */
.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 106, 0, 0.18) !important;
    color: #1f2026 !important;
    box-shadow: 0 10px 30px -10px rgba(255, 106, 0, 0.08) !important;
}

.glass-card:hover {
    border-color: rgba(255, 106, 0, 0.35) !important;
    box-shadow: 0 12px 35px -8px rgba(255, 106, 0, 0.12) !important;
}

/* Dropdown Menu CSS */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff !important;
    border: 1px solid rgba(255, 106, 0, 0.2) !important;
}

.dropdown-group:hover .dropdown-menu,
.dropdown-group:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #374151 !important;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 106, 0, 0.08) !important;
    color: #ff6a00 !important;
}

/* Mobile Menu Overrides */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(255, 106, 0, 0.18) !important;
}

#mobile-menu a {
    color: #1f2026 !important;
}

#mobile-menu a:hover {
    color: #ff6a00 !important;
}

/* Form inputs & select dropdowns */
select, textarea, input {
    background-color: #f9fafb !important;
    color: #111827 !important;
    border: 1px solid rgba(255, 106, 0, 0.2) !important;
}

select:focus, textarea:focus, input:focus {
    border-color: #ff6a00 !important;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.1) !important;
}

select option {
    background-color: #ffffff !important;
    color: #111827 !important;
}

/* Button & Card Glows */
.btn-glow-orange {
    background: linear-gradient(135deg, #ff6a00 0%, #ff1f4b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-glow-orange:hover {
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.5) !important;
    transform: translateY(-2px);
}

.btn-glow-orange * {
    color: #ffffff !important;
}

.border-glow-red {
    border-color: rgba(255, 31, 75, 0.25) !important;
}

.border-glow-red:hover {
    border-color: rgba(255, 31, 75, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 31, 75, 0.1) !important;
}

/* FAQ / Accordion / TOC Transitions */
.faq-content, .toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.active .faq-content, .toc-container.active .toc-content {
    max-height: 1000px;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.faq-item i, .toc-container i {
    transition: transform 0.3s ease;
}

.faq-item.active i, .toc-container.active i {
    transform: rotate(180deg);
}

/* Social Button Hover Effects */
.btn-share {
    transition: all 0.3s ease;
}
.btn-share:hover {
    transform: scale(1.08) translateY(-2px);
}

/* Custom Table Design for Gaming Info */
.gaming-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 106, 0, 0.15) !important;
}

.gaming-table th {
    background: rgba(255, 106, 0, 0.08) !important;
    color: #ff6a00 !important;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 106, 0, 0.15) !important;
}

.gaming-table td {
    background: #ffffff !important;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 106, 0, 0.08) !important;
    color: #374151 !important;
}

.gaming-table tr:last-child td {
    border-bottom: none;
}

.gaming-table tr:hover td {
    background: rgba(255, 106, 0, 0.03) !important;
}

/* Additional specific element fixes for light theme */
#sensi-results, #hud-results {
    border-color: rgba(255, 106, 0, 0.15) !important;
}

.res-item-container {
    background: rgba(255, 106, 0, 0.03) !important;
    border: 1px solid rgba(255, 106, 0, 0.1) !important;
}

.res-item-container span {
    color: #4b5563 !important;
}

.res-item-container span[id^="val-"] {
    color: #ff6a00 !important;
}

#sensi-results .bg-\[\#0f0d16\],
#hud-results .bg-\[\#0f0d16\] {
    background-color: rgba(255, 106, 0, 0.05) !important;
    border: 1px solid rgba(255, 106, 0, 0.15) !important;
}

#sensi-results .bg-\[\#0f0d16\] div,
#hud-results .bg-\[\#0f0d16\] div {
    color: #ff6a00 !important;
}

#val-firebutton, #val-dpi, #hud-share-code {
    color: #ff1f4b !important;
}

.toc-container {
    background: rgba(255, 106, 0, 0.02) !important;
}

/* Article Styling */
article {
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 106, 0, 0.1) !important;
}

article h2, article h3 {
    border-bottom: 1px solid rgba(255, 106, 0, 0.08) !important;
    padding-bottom: 0.5rem;
}

article p, article li {
    color: #4b5563 !important;
}

article strong {
    color: #111827 !important;
}

/* Footer Section */
footer {
    background-color: #f9fafb !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

footer p, footer a {
    color: #4b5563 !important;
}

footer a:hover {
    color: #ff6a00 !important;
}

/* Header Navbar Fixes */
header .bg-\[\#0e0c15\] {
    background-color: #ffffff !important;
}

header .lang-selector {
    color: #374151 !important;
}

header select option {
    background-color: #ffffff !important;
    color: #374151 !important;
}

header #mobile-menu-btn {
    color: #374151 !important;
}

header #mobile-menu-btn:hover {
    color: #ff6a00 !important;
}
