/* Custom Design System for Sensi FF (sensiforfreefire.org) */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Eye-catching headings styling in Dark Mode */
h1 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
}

h2, h3 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #00F0FF 0%, #A020F0 50%, #FF007A 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* Light Mode Core Variables & Overrides */
body.light-mode {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

body.light-mode .bg-bgDark,
body.light-mode .bg-black\/60,
body.light-mode .bg-black\/40,
body.light-mode .bg-black\/20 {
    background-color: transparent !important;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 8px 12px -6px rgba(0, 0, 0, 0.01) !important;
}

body.light-mode .text-white {
    color: #0f172a !important;
}

body.light-mode .text-gray-400,
body.light-mode .text-gray-300 {
    color: #475569 !important;
}

body.light-mode .text-gray-500 {
    color: #64748b !important;
}

body.light-mode .border-glassBorder,
body.light-mode .border-white\/10,
body.light-mode .border-white\/20,
body.light-mode .border-white\/5 {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .bg-white\/5,
body.light-mode .bg-white\/10 {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .bg-gradient-mesh {
    background-image: radial-gradient(at 0% 0%, rgba(160,32,240,0.06) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(0,240,255,0.06) 0px, transparent 50%) !important;
}

body.light-mode h1 {
    color: #0f172a !important;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
}

/* Eye-catching headings styling in Light Mode */
body.light-mode h2,
body.light-mode h3 {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 50%, #06b6d4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-family: 'Oxanium', sans-serif;
}

/* Background blob overrides in light mode to fix mix-blend mode */
body.light-mode .animate-blob {
    mix-blend-mode: multiply !important;
    opacity: 0.12 !important;
}

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

::-webkit-scrollbar-track {
    background: #09080e;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.4), rgba(160, 32, 240, 0.4));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.8), rgba(160, 32, 240, 0.8));
}

/* Glassmorphism Styles */
.glass-card {
    background: rgba(17, 16, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-output-box {
    background: rgba(0, 240, 255, 0.03);
    border: 1px dashed rgba(0, 240, 255, 0.2);
}

body.light-mode .tool-output-box {
    background: rgba(0, 240, 255, 0.02);
    border: 1px dashed rgba(2, 132, 195, 0.3) !important;
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); }
}

.glow-btn {
    animation: pulseGlow 3s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes blob {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(20px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.92); }
}

.animate-blob {
    animation: blob 8s infinite ease-in-out;
}

/* FAQ Accordion Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.faq-item i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-item.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: #00F0FF;
}

body.light-mode .faq-item.active i.fa-chevron-down {
    color: #0284c7 !important;
}

/* Dynamic design adjustments for Light Mode Article container */
body.light-mode article.max-w-5xl {
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 240, 255, 0.05) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(160, 32, 240, 0.05) 0px, transparent 50%);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Table of Contents Styling */
#toc-container {
    transition: all 0.3s ease-in-out;
}

/* Premium Buttons Styling */
.nav-cta-btn {
    background-color: #ffffff;
    color: #0B0A10;
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

.nav-cta-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
    background-color: #f8fafc;
}

body.light-mode .nav-cta-btn {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.2);
}

body.light-mode .nav-cta-btn:hover {
    background-color: #1e293b;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

/* Mobile Navigation Adjustments */
body.light-mode #mobile-menu-btn {
    color: #0f172a !important;
}

body.light-mode #mobile-menu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode #mobile-menu a {
    color: #0f172a !important;
}

body.light-mode #mobile-menu a:hover {
    color: #00F0FF !important;
    background-color: rgba(0, 240, 255, 0.05) !important;
}

/* Force styling consistency on sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
}

body.light-mode input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(15, 23, 42, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -5px;
    background-color: #00F0FF;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: transform 0.1s ease;
}

body.light-mode input[type="range"]::-webkit-slider-thumb {
    background-color: #0284c7;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Social Sharing Buttons: SOLID colored for high visibility */
#share-whatsapp { background-color: #25D366 !important; color: #ffffff !important; border-color: #25D366 !important; }
#share-telegram { background-color: #0088cc !important; color: #ffffff !important; border-color: #0088cc !important; }
#share-facebook { background-color: #1877F2 !important; color: #ffffff !important; border-color: #1877F2 !important; }
#share-twitter { background-color: #0f172a !important; color: #ffffff !important; border-color: #0f172a !important; }

#share-whatsapp:hover { background-color: #20ba5a !important; border-color: #20ba5a !important; }
#share-telegram:hover { background-color: #0077b3 !important; border-color: #0077b3 !important; }
#share-facebook:hover { background-color: #166fe5 !important; border-color: #166fe5 !important; }
#share-twitter:hover { background-color: #1e293b !important; border-color: #1e293b !important; }

/* Light Mode Footer styles to make it clearly visible */
body.light-mode footer {
    background-color: #f1f5f9 !important;
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    color: #1e293b !important;
}

body.light-mode footer h4 {
    color: #0f172a !important;
}

body.light-mode footer a {
    color: #475569 !important;
}

body.light-mode footer a:hover {
    color: #0284c7 !important;
}

body.light-mode footer p,
body.light-mode footer span {
    color: #64748b !important;
}

/* Light Mode Calculator Results and Loader Styles */
body.light-mode #generator-results,
body.light-mode #generator-loader {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #generator-results h3 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important;
}

body.light-mode #generator-results span {
    color: #1e293b;
}

/* Contrast Color Presets for Sliders in Light Mode (replaces hard-to-read neon colors on white background) */
body.light-mode .text-accentBlue { color: #0284c7 !important; }
body.light-mode .text-accentPurple { color: #7e22ce !important; }
body.light-mode .text-accentPink { color: #be185d !important; }
body.light-mode .text-yellow-400 { color: #b45309 !important; }
body.light-mode .text-green-400 { color: #15803d !important; }
body.light-mode .text-blue-400 { color: #1d4ed8 !important; }
body.light-mode .text-red-400 { color: #be123c !important; }

/* Light Mode Copy Settings Button */
body.light-mode #btn-copy-settings {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

body.light-mode #btn-copy-settings:hover {
    background-color: #1e293b !important;
}

/* Light Mode Loader Status Text Contrast Override */
body.light-mode #loader-status {
    background: linear-gradient(135deg, #0284c7 0%, #7e22ce 50%, #be185d 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
