/**
 * Social Media Tools Platform - Monochrome Neobrutalist Design
 * Pure black and white theme - No gradients, no shadows, no opacity
 */

:root {
    /* Light Mode - Pure Monochrome */
    --bg-primary: #ffffff;
    --text-primary: #000000;
    --border-primary: #000000;
    
    /* Bootstrap Override */
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    --bs-border-width: 2px;
    --bs-border-color: var(--border-primary);
}

/* Dark Mode - Pure Monochrome */
[data-theme="dark"] {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --border-primary: #ffffff;
    
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border-primary);
}

/* ===============================================
   BASE STYLES
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    background-image: none !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
}

p, span, div, a, li, td, th {
    color: var(--text-primary) !important;
}

/* ===============================================
   LAYOUT COMPONENTS
   =============================================== */

/* All sections same background */
section {
    background-color: transparent !important;
    padding: 3rem 0;
    border-bottom: 2px solid var(--border-primary);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero-section .lead {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section .stat-box {
    padding: 1rem;
    border: 2px solid var(--border-primary);
    margin: 0.5rem;
    min-width: 120px;
    text-align: center;
    background-color: var(--bg-primary);
    display: inline-block;
}

.hero-section .stat-box h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
}

.hero-section .stat-box small {
    display: block;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================================
   NAVIGATION
   =============================================== */

.navbar {
    background-color: var(--bg-primary) !important;
    border-bottom: 2px solid var(--border-primary) !important;
    padding: 0.5rem 0;
    min-height: auto !important;
}

/* Mobile navbar layout */
@media (max-width: 991px) {
    .navbar-desktop-layout {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
}

/* Desktop navbar layout - brand in center */
@media (min-width: 992px) {
    /* Hide mobile menu on desktop */
    #navbarNav {
        display: none !important;
    }
    
    .navbar-desktop-layout {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        position: relative;
    }
    
    .navbar-nav-left {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        flex: 1;
    }
    
    .navbar-nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
        flex: 1;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }
    
    /* Navbar içindeki buton ve elemanlar için özel stil */
    .navbar .btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
        height: 36px;
        display: inline-flex;
        align-items: center;
    }
    
    .navbar .credits-display {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
        height: 36px;
    }
    
    .navbar #themeToggle {
        width: 36px;
        height: 36px;
        padding: 0;
    }
}

.navbar-brand {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary) !important;
    font-size: 1.25rem;
    line-height: 1;
}

.navbar-brand:hover {
    text-decoration: underline !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0.5rem;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.nav-link:hover {
    text-decoration: underline !important;
}

.navbar-toggler {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
}

.navbar-toggler-icon::before {
    content: '☰';
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Mobile Navigation */
.fixed-bottom {
    background-color: var(--bg-primary) !important;
    border-top: 2px solid var(--border-primary) !important;
    z-index: 1030; /* Ensure it's above other content */
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom); /* For iOS devices with home indicator */
}

/* ===============================================
   BUTTONS
   =============================================== */

.btn {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover,
.btn:focus {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-color: var(--border-primary) !important;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--border-primary) !important;
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 2px 2px 0 var(--border-primary) !important;
}

.btn[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Override Bootstrap button variants */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border-color: var(--border-primary) !important;
}

/* ===============================================
   CARDS
   =============================================== */

.card {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 6px 6px 0 var(--border-primary) !important;
}

.card-header {
    background-color: var(--bg-primary) !important;
    border-bottom: 2px solid var(--border-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 1.5rem;
}

/* Tool Cards */
.tool-card {
    cursor: pointer;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.card:hover .tool-icon {
    transform: scale(1.1) rotateY(15deg);
}

/* ===============================================
   FORMS
   =============================================== */

.form-control,
.form-select,
input,
select,
textarea {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transform: scale(1.02);
    box-shadow: 4px 4px 0 var(--border-primary) !important;
    outline: none;
}

/* Input group text (for quantity selector) */
.input-group-text {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    font-weight: 700;
}

.input-group-text span {
    color: var(--bg-primary) !important;
}

/* Placeholder text color fix */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.form-select::placeholder {
    color: var(--text-primary) !important;
    opacity: 0.6 !important;
}

/* Dark mode placeholder */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder {
    color: var(--text-primary) !important;
    opacity: 0.5 !important;
}

/* ===============================================
   TABLES
   =============================================== */

/* Default brutalist table styles - but not for blog content */
.table:not(.post-content table):not(.post-content .table) {
    border: 2px solid var(--border-primary);
    background-color: var(--bg-primary);
}

.table:not(.post-content table):not(.post-content .table) thead th {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.table:not(.post-content table):not(.post-content .table) td,
.table:not(.post-content table):not(.post-content .table) th {
    border: 2px solid var(--border-primary);
    padding: 0.75rem;
    color: var(--text-primary);
}

.table:not(.post-content table):not(.post-content .table) tbody tr:hover {
    transform: translateX(4px);
}

/* Blog post content tables - Bootstrap with custom borders */
.post-content table,
.post-content .table {
    color: var(--text-primary);
    border-collapse: collapse;
}

.post-content table td,
.post-content table th,
.post-content .table td,
.post-content .table th {
    color: var(--text-primary);
    border: 1px solid var(--border-primary) !important;
    padding: 0.5rem !important;
}

.post-content table thead th,
.post-content .table thead th {
    border-bottom: 2px solid var(--border-primary) !important;
    font-weight: 600;
}

.post-content table tbody tr,
.post-content .table tbody tr {
    border-top: 1px solid var(--border-primary) !important;
}

/* Blog post FAQ styles */
.post-content dl {
    margin: 2rem 0;
    padding: 0;
}

.post-content dt {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-bottom: none;
    color: var(--text-primary);
    position: relative;
}

.post-content dt:before {
    content: "Q";
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 2px solid var(--border-primary);
    margin-right: 0.75rem;
    font-weight: 900;
    font-size: 0.9rem;
}

.post-content dd {
    margin: 0;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-top: 1px dashed var(--border-primary);
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
}

.post-content dd:before {
    content: "A";
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
    font-weight: 900;
    font-size: 0.9rem;
}

.post-content dd {
    padding-left: 3.5rem;
}

.post-content dd:last-child {
    margin-bottom: 2rem;
}

/* Hover effect for FAQ items */
.post-content dt:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.post-content dt:hover:before {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ===============================================
   BADGES & ALERTS
   =============================================== */

.badge {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 0 var(--border-primary) !important;
}

.alert {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.alert:hover {
    transform: translateX(4px);
    box-shadow: 4px 4px 0 var(--border-primary) !important;
}

/* Override Bootstrap alert variants */
.alert-primary,
.alert-secondary,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

/* ===============================================
   DROPDOWNS
   =============================================== */

.dropdown-menu {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    box-shadow: 4px 4px 0 var(--border-primary) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.dropdown-divider {
    border-top: 2px solid var(--border-primary);
}

/* ===============================================
   FOOTER
   =============================================== */

.main-footer {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-top: 4px solid var(--border-primary) !important;
    margin-top: 5rem;
    padding: 0;
}

/* Main Footer Content */
.footer-content {
    padding: 3rem 0;
    border-bottom: 2px solid var(--border-primary);
}

/* Footer Brand */
.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary) !important;
    opacity: 0.8;
    margin: 0;
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-link-group h4 {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-primary) !important;
}

.footer-link-group a {
    display: block;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-link-group a:hover {
    transform: translateX(5px);
    text-decoration: underline !important;
}

/* Footer Stats */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-stats .stat-box {
    border: 2px solid var(--border-primary);
    padding: 1rem 2rem;
    text-align: center;
    min-width: 120px;
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

.footer-stats .stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--border-primary);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary) !important;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary) !important;
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary) !important;
    transform: translateY(-4px) rotate(10deg);
    box-shadow: 4px 4px 0 var(--border-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-link-group a {
        text-align: center;
    }
    
    .footer-stats {
        justify-content: space-around;
    }
    
    .footer-stats .stat-box {
        padding: 0.75rem 1rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .footer-bottom {
        text-align: center;
        justify-content: center;
    }
    
    .footer-socials {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    /* Add padding for mobile bottom nav */
    .main-footer {
        margin-bottom: 70px;
    }
}

/* ===============================================
   UTILITIES
   =============================================== */

/* Credits Display */
.credits-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    padding: 0.35rem 0.85rem;
    font-weight: 700;
    border: 2px solid var(--border-primary) !important;
}

.credits-display:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 0 var(--border-primary) !important;
}

/* Step Numbers */
.step-number {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    border: 2px solid var(--border-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    color: var(--text-primary) !important;
}

/* Empty icon */
.empty-icon {
    font-size: 64px;
    color: var(--text-primary) !important;
}

/* Theme Toggle Button */
#themeToggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary) !important;
    border: 2px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
}

#themeToggle:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-2px) rotate(15deg);
    box-shadow: 4px 4px 0 var(--border-primary) !important;
}

#themeIcon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

[data-theme="dark"] #themeIcon {
    transform: rotate(180deg);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Results */
.search-result {
    border: 2px solid var(--border-primary);
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 4px 4px 0 var(--border-primary) !important;
}

.search-result.selected {
    transform: translateX(8px) translateY(-2px) scale(1.02);
    box-shadow: 6px 6px 0 var(--border-primary) !important;
}

/* Device Auth Code */
.device-code {
    font-family: monospace;
    background-color: var(--bg-primary);
    border: 2px dashed var(--border-primary);
    color: var(--text-primary);
    padding: 1rem;
}

/* ===============================================
   SWEETALERT2 OVERRIDES
   =============================================== */

.swal2-popup {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    box-shadow: 8px 8px 0 var(--border-primary) !important;
}

.swal2-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary) !important;
}

.swal2-content {
    color: var(--text-primary) !important;
}

.swal2-actions button {
    border: 2px solid var(--border-primary) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.swal2-actions button:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--border-primary) !important;
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Main content animation removed to prevent scroll on page load */
.main-content {
    /* animation: fadeIn 0.6s ease; */
}

.tool-card {
    animation: slideInUp 0.6s ease backwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* ===============================================
   BOOTSTRAP OVERRIDES
   =============================================== */

/* Force monochrome on all Bootstrap color classes */
.text-primary,
.text-secondary,
.text-success,
.text-danger,
.text-warning,
.text-info,
.text-light,
.text-dark,
.text-white,
.text-muted {
    color: var(--text-primary) !important;
}

.bg-primary,
.bg-secondary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info,
.bg-light,
.bg-dark,
.bg-white {
    background-color: transparent !important;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* Fix stat-box layout on mobile */
    .hero-section .stat-box {
        margin: 0.25rem;
        min-width: 90px;
        padding: 0.75rem 0.5rem;
    }
    
    .hero-section .stat-box h3 {
        font-size: 1.5rem;
    }
    
    .hero-section .stat-box small {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Fix mobile hamburger menu spacing */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        padding: 0.75rem 0;
        border-bottom: 2px solid var(--border-primary);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.5rem 0;
    }
    
    .navbar-nav .btn,
    .navbar-nav .credits-display {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 200px;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin-top: 0.5rem;
        width: 100%;
        border: 2px solid var(--border-primary);
    }
    
    /* Add padding to main content to prevent footer overlap on mobile */
    .main-content {
        padding-bottom: 80px; /* Space for mobile bottom nav */
    }
    
    /* Ensure footer doesn't overlap with mobile nav */
    .main-footer {
        margin-bottom: 70px; /* Space for mobile bottom nav */
    }
}

/* Theme-specific overrides removed - CSS variables handle this */

/* ===============================================
   FINAL OVERRIDES - ENSURE MONOCHROME
   =============================================== */

/* Remove any remaining Bootstrap interference */
* {
    outline: none !important;
}

a:hover {
    text-decoration: underline !important;
}

/* Ensure hover states work properly */
*:hover {
    transition: all 0.3s ease;
}

/* Allow only specific elements to have background images */
.bi::before,
.navbar-toggler-icon::before {
    background-image: inherit !important;
}

/* ===============================================
   SWEETALERT2 DARK MODE STYLES
   =============================================== */

/* Dark mode for SweetAlert2 modals */
[data-bs-theme="dark"] .swal2-popup,
.swal2-dark-mode {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .swal2-popup *,
.swal2-dark-mode * {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .swal2-popup p,
[data-bs-theme="dark"] .swal2-popup strong,
[data-bs-theme="dark"] .swal2-popup h4,
.swal2-dark-mode p,
.swal2-dark-mode strong,
.swal2-dark-mode h4 {
    color: #ffffff !important;
}

/* Light mode for SweetAlert2 modals */
[data-bs-theme="light"] .swal2-popup {
    background: #ffffff !important;
    color: #000000 !important;
}

[data-bs-theme="light"] .swal2-popup * {
    color: #000000 !important;
}

/* Override any inline styles in SweetAlert2 content */
.swal2-html-container * {
    color: inherit !important;
}


/* COIN FLIP */

.coin-flip-game {
    padding: 20px;
}

.coin-display {
    height: 150px;
    perspective: 1000px;
}

.coin {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s;
}

.coin.flipping {
    animation: coinFlip 2s ease-in-out;
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-primary, #000);
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

/* Dark mode support */
[data-theme="dark"] .coin-side {
    background: var(--bg-secondary, #1a1a1a);
    color: var(--text-primary, #fff);
    border-color: var(--border-primary, #fff);
}

.coin-side i {
    font-size: 40px;
    color: inherit;
}

.coin-side span {
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
    color: inherit;
}

.coin-side.heads {
    z-index: 2;
}

.coin-side.tails {
    transform: rotateY(180deg);
}

.coin.show-tails {
    transform: rotateY(180deg);
}

@keyframes coinFlip {
    0% { transform: rotateY(0) rotateX(0); }
    50% { transform: rotateY(900deg) rotateX(45deg); }
    100% { transform: rotateY(1800deg) rotateX(0); }
}

.choice-btn {
    margin: 0 10px;
    min-width: 120px;
    border: 2px solid #000;
    background: #fff;
    transition: all 0.2s;
}

.choice-btn:hover {
    background: #000;
    color: #fff;
}

.choice-btn.selected {
    background: #000;
    color: #fff;
}

.choice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* INVITE FRIENDS */
.invite-modal-content {
    padding: 20px;
}

.invite-url-section .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.invite-url-section input {
    background: var(--bs-light, #f8f9fa);
    border: 2px solid var(--bs-dark, #000);
    color: var(--bs-dark, #000);
    text-align: left;
    font-family: monospace;
}

/* Dark mode support for input */
[data-bs-theme="dark"] .invite-url-section input,
[data-theme="dark"] .invite-url-section input,
.dark-mode .invite-url-section input {
    background: var(--bs-dark, #212529);
    border-color: var(--bs-light, #fff);
    color: var(--bs-light, #fff);
}

.invite-url-section .btn {
    border: 2px solid var(--bs-dark, #000);
    border-left: none;
}

/* Dark mode support for button */
[data-bs-theme="dark"] .invite-url-section .btn,
[data-theme="dark"] .invite-url-section .btn,
.dark-mode .invite-url-section .btn {
    border-color: var(--bs-light, #fff);
}

.how-it-works {
    background: var(--bs-light, #f8f9fa);
    padding: 20px;
    border: 2px solid var(--bs-dark, #000);
    margin-top: 20px;
    color: var(--bs-dark, #000);
}

/* Dark mode support for how-it-works */
[data-bs-theme="dark"] .how-it-works,
[data-theme="dark"] .how-it-works,
.dark-mode .how-it-works {
    background: var(--bs-dark, #212529);
    border-color: var(--bs-light, #fff);
    color: var(--bs-light, #fff);
}

.how-it-works h5 {
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

.how-it-works ol {
    margin-bottom: 0;
    padding-left: 20px;
    color: inherit;
}

.how-it-works li {
    margin-bottom: 10px;
    color: inherit;
}

/* Monochrome theme compatibility */
.invite-modal-content h3 {
    font-weight: bold;
}

.invite-modal-content .btn-success {
    background: #000;
    border-color: #000;
    color: #fff;
}

.invite-modal-content .btn-success:hover {
    background: #fff;
    border-color: #000;
    color: #000;
}
