/**
 * Floki Platform - Clean Modern UI Overrides with Plus Jakarta Sans & Modern SVG Icons
 */

/* 1. Global Font: Plus Jakarta Sans across all typography */
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
.nav-link, .btn, .card, .table,
span:not([class*="fa"]), p, a:not([class*="fa"]), div:not([class*="fa"]),
.sidebar, .modal, .toast, .sb-item, .stat-card,
th, td, label, strong, b, em {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* 2. PROTECT & PRESERVE FONTAWESOME & ICON FONTS (STOPS ICONS TURNING INTO SQUARES / KARE) */
.fa, .fas, .far, .fal, .fad, .fab, .fa-solid, .fa-regular, .fa-brands,
[class^="fa-"], [class*=" fa-"],
.fa::before, .fas::before, .far::before, .fab::before, .fad::before, .fal::before,
[class^="fa-"]::before, [class*=" fa-"]::before,
i[class*="fa"]::before, span[class*="fa"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased;
}

.fab, .fab::before, i.fab, i.fab::before, span.fab::before {
    font-family: "Font Awesome 6 Brands" !important;
}

.fas, .fas::before, i.fas, i.fas::before, span.fas::before {
    font-weight: 900 !important;
}

/* 3. Bold & Italic Typography Balance */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .brand-name, .login-title, .form-title {
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    text-shadow: none !important;
}

.hero-subtitle, .stat-label, .card-subtitle, .badge, .tag, .vg-card-tag, .chip {
    font-style: italic !important;
    letter-spacing: -0.01em !important;
}

.badge, .tag, .vg-card-tag {
    font-weight: 700 !important;
    text-shadow: none !important;
}

strong, b, th, .fw-bold {
    font-weight: 700 !important;
}

/* 3. Kill Artificial Neon Glow & Pulses */
*, *::before, *::after {
    text-shadow: none !important;
}

@keyframes textGlow { from { text-shadow: none; } to { text-shadow: none; } }
@keyframes meshFlow { 0%, 100% { transform: none; opacity: 0; } }
@keyframes float1 { 0%, 100% { transform: none; } }
@keyframes float2 { 0%, 100% { transform: none; } }
@keyframes neonPulse { 0%, 100% { box-shadow: none; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: none; } }
@keyframes cardGlowPulse { 0%, 100% { box-shadow: none; } }

.nexus-glow,
.nexus-glow-1,
.nexus-glow-2,
.mesh-gradient,
.apex-glow-ring,
.apex-glow-ring::before,
.apex-glow-ring::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    filter: none !important;
}

/* 4. Modern SVG Icon Styling */
svg.modern-svg, .modern-svg {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    stroke-width: 2.2 !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: transform 0.2s ease, stroke 0.2s ease !important;
    flex-shrink: 0 !important;
}

svg.modern-svg.lg, .modern-svg.lg {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    stroke-width: 2.4 !important;
}

svg.modern-svg.sm, .modern-svg.sm {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    stroke-width: 2 !important;
}

.icon-btn .modern-svg {
    margin: 0 !important;
}

.sidebar a .modern-svg, .sb-item .modern-svg {
    margin-right: 12px;
}

.icon-btn:hover .modern-svg {
    transform: scale(1.15);
}

/* 5. Refined Buttons - Modern, Crisp, Non-Blinding */
.btn-primary,
.vg-prod-btn,
.btn-buy-now,
.hero-btn,
button.btn-primary,
.btn.btn-primary,
.btn-login-submit {
    background: #10b981 !important;
    color: #04130c !important;
    font-weight: 700 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-primary:hover,
.vg-prod-btn:hover,
.btn-buy-now:hover,
.hero-btn:hover,
.btn-login-submit:hover {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* 6. Refined Cards & Containers */
body:not(.light-theme) .card,
body:not(.light-theme) .product-card,
body:not(.light-theme) .vg-card,
body:not(.light-theme) .animated-card,
body:not(.light-theme) .game-card,
body:not(.light-theme) .feature-box,
body:not(.light-theme) .stat-card,
body:not(.light-theme) .panel-card,
body:not(.light-theme) .modal-content,
body:not(.light-theme) .auth-box,
body:not(.light-theme) .login-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #12141c !important;
    border-radius: 14px !important;
}

body:not(.light-theme) .card:hover,
body:not(.light-theme) .product-card:hover,
body:not(.light-theme) .vg-card:hover,
body:not(.light-theme) .animated-card:hover,
body:not(.light-theme) .game-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6) !important;
}

body.light-theme .card,
body.light-theme .product-card,
body.light-theme .vg-card,
body.light-theme .animated-card,
body.light-theme .game-card,
body.light-theme .feature-box,
body.light-theme .stat-card,
body.light-theme .panel-card,
body.light-theme .modal-content,
body.light-theme .auth-box,
body.light-theme .login-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    color: #0f172a !important;
}

body.light-theme .card:hover,
body.light-theme .product-card:hover,
body.light-theme .vg-card:hover,
body.light-theme .animated-card:hover,
body.light-theme .game-card:hover {
    border-color: #00a846 !important;
    box-shadow: 0 8px 24px rgba(0, 168, 70, 0.12) !important;
}

/* 7. Refined Badges & Green Accents (No Yellow) */
.badge,
.badge-green,
.badge-blue,
.status-pill {
    text-shadow: none !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    font-style: italic !important;
    letter-spacing: 0.3px !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
}

.badge-green,
.badge-yellow,
.badge-warning,
.status-yellow {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* 8. Refined Tables */
body:not(.light-theme) table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

body:not(.light-theme) th {
    background: #161922 !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 16px !important;
}

body:not(.light-theme) td {
    background: #0f1118 !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 13px 16px !important;
}

body:not(.light-theme) tr:hover td {
    background: #141721 !important;
}

body.light-theme table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

body.light-theme th {
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 14px 16px !important;
}

body.light-theme td {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 13px 16px !important;
}

body.light-theme tr:hover td {
    background: #f8fafc !important;
}

/* 9. Admin Specific: All Highlights & Glows are Emerald Green (Zero Yellow) */
.sb-item.active {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border-left: 3px solid #10b981 !important;
}

.sb-item:hover {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.06) !important;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: all 0.25s ease !important;
}

.stat-card:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.stat-icon {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
}

/* Replace any remaining yellow inline styles */
[style*="#f59e0b"], [style*="#ffcc00"], [style*="#ff7b00"], [style*="#ffd700"] {
    color: #10b981 !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
    outline: none !important;
}

/* 10. Eye Icon Inside Checkbox & Toggle Switch (Göz İkonu) */
input[type="checkbox"]:not(.toggle input) {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background-color: #131622 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-.722-3.25'%3E%3C/path%3E%3Cpath d='M2 8a10.645 10.645 0 0 0 20 0'%3E%3C/path%3E%3Cpath d='m20 15-1.726-2.05'%3E%3C/path%3E%3Cpath d='m4 15 1.726-2.05'%3E%3C/path%3E%3Cpath d='m9 18 .722-3.25'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: all 0.22s ease !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

input[type="checkbox"]:not(.toggle input):hover {
    border-color: #10b981 !important;
    background-color: #171c2d !important;
}

input[type="checkbox"]:not(.toggle input):checked {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304130c' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    background-size: 16px !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
}

.toggle {
    position: relative;
    width: 58px;
    height: 32px;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    inset: 0;
    background: #141824;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.slider:before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    bottom: 2.5px;
    left: 3px;
    background-color: #23293a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-.722-3.25'%3E%3C/path%3E%3Cpath d='M2 8a10.645 10.645 0 0 0 20 0'%3E%3C/path%3E%3Cpath d='m20 15-1.726-2.05'%3E%3C/path%3E%3Cpath d='m4 15 1.726-2.05'%3E%3C/path%3E%3Cpath d='m9 18 .722-3.25'%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.toggle:hover .slider {
    border-color: rgba(16, 185, 129, 0.5);
}

.toggle input:checked + .slider {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.toggle input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
