/* Interface Mobile Avancée */

/* Mode lecture optimisé */
.reading-mode {
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
    padding: 0 15px;
}

.reading-mode .post-content {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    line-height: 1.9;
}

.reading-mode .post-content p {
    margin-bottom: 1.5rem;
}

.reading-mode .post-content h1,
.reading-mode .post-content h2,
.reading-mode .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Bouton mode lecture */
.reading-mode-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.reading-mode-toggle:hover {
    transform: scale(1.1);
}

/* Gestes tactiles - Swipe */
.swipe-container {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.swipe-item {
    transition: transform 0.3s ease;
}

.swipe-item.swiping {
    transition: none;
}

.swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 80px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.swipe-item.reveal-actions .swipe-actions {
    transform: translateX(0);
}

/* Navigation mobile améliorée */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 1000;
    display: none;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
    padding: 5px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-nav-item span {
    font-size: 0.7rem;
}

/* Interface adaptative avancée */
.mobile-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.mobile-search.active {
    transform: translateY(0);
}

.mobile-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-color);
    color: var(--text-color);
}

/* Notifications push style */
.push-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-100px);
    transition: transform 0.3s ease;
    z-index: 1002;
}

.push-notification.show {
    transform: translateY(0);
}

.push-notification-content {
    display: flex;
    align-items: center;
}

.push-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.push-notification-text h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.push-notification-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }
    
    .main-content {
        padding-bottom: 80px;
    }
    
    .post-card {
        margin-bottom: 15px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .post-card .card-body {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .reading-mode {
        padding: 0 10px;
    }
    
    .reading-mode .post-content {
        font-size: 1.1rem;
    }
}