/**
 * Mobile Bottom Navigation Styles
 * Extracted from mobile-bottom-nav.php
 * Uses design system CSS variables for theming
 */

/* Navigation mobile sticky bottom */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Caché par défaut */
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    gap: 12px;
}

/* Affichage mobile/tablet seulement */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Padding body pour éviter chevauchement */
    body {
        padding-bottom: 60px;
    }
}

/* Items navigation */
.nav-item {
    position: relative;
}

.nav-item.nav-search {
    flex: 1; /* Prend l'espace disponible */
    max-width: 300px;
    margin: 0 16px;
}

/* Boutons navigation */
.nav-button {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    line-height: 1;
}

/* Formulaire de recherche */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0 40px 0 16px;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.search-button {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Suggestions de recherche */
.search-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-bottom: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-suggestion {
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdowns */
.mobile-menu-dropdown,
.recent-articles-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 8px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    overflow: hidden;
}

.recent-articles-dropdown {
    right: 0;
    left: auto;
}

/* Headers dropdowns */
.menu-header,
.articles-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h3,
.articles-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.close-menu,
.close-articles {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-menu:hover,
.close-articles:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Contenu dropdowns */
.menu-content,
.articles-list {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Menu WordPress */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.mobile-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Articles récents */
.recent-article-item {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.recent-article-item:last-child {
    border-bottom: none;
}

.recent-article-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.article-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.article-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* États actifs */
.mobile-menu-dropdown.active,
.recent-articles-dropdown.active,
.search-suggestions.active {
    display: block;
}

/* Light mode */
.light-mode .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.light-mode .nav-button {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.light-mode .nav-button:hover {
    background: rgba(0, 0, 0, 0.15);
}

.light-mode .search-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

.light-mode .search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.light-mode .mobile-menu-dropdown,
.light-mode .recent-articles-dropdown,
.light-mode .search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .menu-header h3,
.light-mode .articles-header h3,
.light-mode .mobile-nav-menu a,
.light-mode .recent-article-item,
.light-mode .search-suggestion {
    color: #333;
}

.light-mode .article-date {
    color: rgba(0, 0, 0, 0.6);
}
