/*
* Responsive Styles
* Provides responsive layouts for different screen sizes
*/

/* Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* Desktop and Laptop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    /* Header adjustments */
    .header-buttons .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* Video grid adjustments */
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header adjustments */
    .header-inner {
        justify-content: space-between;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Livestream container */
    .livestream-container {
        flex-direction: column;
    }
    
    .video-player, .live-chat {
        width: 100%;
    }
    
    .live-chat {
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }
    
    /* Video grid adjustments */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    
    /* Footer adjustments */
    .footer-top {
        flex-wrap: wrap;
    }
    
    .footer-logo {
        flex: 100%;
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .footer-info {
        flex: 100%;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Header adjustments */
    .header-inner {
        display: flex;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-buttons {
        margin-left: 0;
    }
    
    .header-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Livestream container */
    .livestream-container {
        flex-direction: column;
    }
    
    .video-player, .live-chat {
        width: 100%;
    }
    
    .live-chat {
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }
    
    /* Account info */
    .account-details {
        flex-direction: column;
    }
    
    .account-item {
        margin-bottom: 15px;
    }
    
    /* CTA buttons */
    .cta-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cta-button {
        margin: 0;
        padding: 10px;
        font-size: 13px;
    }
    
    /* Video grid adjustments */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Footer adjustments */
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-info {
        flex-direction: column;
    }
    
    .footer-section {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 10px;
    }
    
    /* Enable mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to bottom for mobile nav */
    body {
        padding-bottom: 60px;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {

    .logo {
        margin-bottom: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-buttons {
        margin-left: 0;
    }
    
    .header-buttons .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Livestream container */
    .livestream-container {
        flex-direction: column;
    }
    
    .video-player, .live-chat {
        width: 100%;
    }
    
    .live-chat {
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }
    
    /* Account info */
    .account-details {
        flex-direction: column;
    }
    
    .account-item {
        margin-bottom: 15px;
    }
    
    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        margin: 0 0 10px 0;
    }
    
    /* Video grid adjustments */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* About section */
    .about-section {
        padding: 20px 15px;
    }
    
    /* Footer adjustments */
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-info {
        flex-direction: column;
    }
    
    .footer-section {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 10px;
    }
    
    /* Video single page */
    .video-single .video-info h1 {
        font-size: 18px;
    }
    
    .share-buttons {
        display: flex;
        flex-direction: column;
    }
    
    .share-btn {
        margin: 0 0 10px 0;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a, .pagination span {
        margin: 5px;
    }
    
    /* Enable mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to bottom for mobile nav */
    body {
        padding-bottom: 60px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .mobile-nav-item {
        flex: 1;
        text-align: center;
        padding: 8px 5px;
    }
    
    .mobile-nav-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        font-size: 10px;
    }
    
    .mobile-nav-item i,
    .mobile-nav-item img {
        font-size: 18px;
        height: 20px;
        margin-bottom: 5px;
        display: block;
    }
    
    /* Adjust for the cellphones-like bottom navigation */
    .mobile-nav-item .zalo-icon {
        width: 18px;
        height: 18px;
    }
}