/* Mobile-specific fixes only - to be added to existing theme */

/* Restore dark theme colors */
body {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.site-main,
#primary {
    background-color: #1a1a1a !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Fix horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
    }
    
    /* Fix container widths */
    .content-area {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Keep hero dark with gradient */
    .hero-section {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    }
    
    /* Hero content styling */
    .hero-content h1,
    .hero-title {
        color: #ffffff !important;
    }
    
    .hero-content p,
    .hero-subtitle {
        color: #B8B8B8 !important;
    }
    
    /* Fix navigation menu for mobile */
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(20, 21, 21, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 20px;
        color: #fff;
        text-decoration: none;
    }
    
    /* Show mobile menu toggle */
    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    /* Fix BreachFeed articles visibility */
    .breachfeed-articles-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .breachfeed-article {
        background: #ffffff !important;
        color: #333333 !important;
        border: 1px solid #dddddd !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
        border-radius: 8px !important;
    }
    
    .breachfeed-article h1,
    .breachfeed-article h2,
    .breachfeed-article h3,
    .breachfeed-article h4,
    .breachfeed-article h5,
    .breachfeed-article h6 {
        color: #333333 !important;
    }
    
    .breachfeed-article a {
        color: #0066cc !important;
        text-decoration: underline !important;
    }
    
    /* Fix hero section */
    .hero-content {
        padding: 20px !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-height: 44px;
    }
    
    /* Ensure all content respects mobile width */
    * {
        max-width: 100vw !important;
    }
    
    /* Fix any wide tables */
    table {
        display: block;
        overflow-x: auto;
        width: 100% !important;
    }
    
    /* Fix images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }
}

/* Navigation Menu Display Fixes */
/* Desktop Navigation */
@media (min-width: 769px) {
    .main-navigation ul {
        display: flex !important;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 20px;
    }
    
    .main-navigation li {
        margin: 0;
    }
    
    .main-navigation a {
        color: #B8B8B8;
        text-decoration: none;
        padding: 10px 15px;
        display: block;
        transition: color 0.3s ease;
    }
    
    .main-navigation a:hover {
        color: #FF4D00;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

/* Ensure menu items are visible */
#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    list-style: none;
}

/* App banner styling */
.app-banner {
    background: linear-gradient(135deg, #FF4D00 0%, #9945FF 100%) !important;
}

/* Restore dark sections */
.content-section {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.section-header h2 {
    color: #ffffff !important;
}

.section-header p {
    color: #B8B8B8 !important;
}

/* Cards on dark background */
.card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.card h3 {
    color: #ffffff !important;
}

.card p {
    color: #B8B8B8 !important;
}
