/* 
 * Realmu Theme for WebEngine CMS
 * Based on Realmu_theme
 */

/* Base Styles */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

a {
    color: #ff4500;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6a33;
    text-decoration: none;
}

.bg-light-dark {
    background-color: #222;
}

/* Header Styles */
.sticky-header-wrap {
    border-bottom: 1px solid #333;
}

.header-logo {
    max-height: 60px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #e0e0e0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ff4500;
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ff4500;
}

/* Main Navigation Bar */
.main-navigation-bar {
    width: 100%;
    background-color: #000;
    padding: 20px 0; /* Tăng gấp đôi padding từ 10px lên 20px */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.header-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mu-logo {
    display: flex;
    align-items: center;
}

.mu-logo-img {
    height: 80px; /* Tăng gấp đôi từ 40px lên 80px */
    width: auto;
}

.welcome-text {
    color: #fff;
    font-size: 24px; /* Tăng kích thước font từ 16px lên 24px */
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px; /* Tăng padding */
    background-color: rgba(255, 69, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-text span {
    color: #ff4500;
    letter-spacing: 0.5px;
}

.player-stats {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(255, 69, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.player-online-count {
    color: #ff4500;
    font-weight: 700;
}

.online-players-count {
    color: #ffffff;
    font-weight: 700;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.main-nav-menu li {
    padding: 0;
    margin: 0;
}

.main-nav-menu li a {
    display: block;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.main-nav-menu li a:hover {
    color: #ff4500;
    background-color: #111;
}

.main-nav-menu li.active a {
    color: #ff4500;
    background-color: #111;
}

/* Header Video */
.header-video-wrapper {
    width: 100%;
    background-color: #000;
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 20%; /* Giảm xuống còn 2/3 kích thước cũ (từ 30% xuống 20%) */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.video-content {
    max-width: 500px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.video-desc {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Social Floating Buttons */
.social-floating-buttons {
    position: fixed;
    right: 0;
    top: 30%;
    z-index: 99;
    display: flex;
    flex-direction: column;
}

.social-float-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    color: white;
    transition: all 0.3s ease;
    transform: translateX(calc(100% - 50px));
    width: 250px;
}

.social-float-btn:hover {
    transform: translateX(0);
    color: white;
    text-decoration: none;
}

.social-float-btn span {
    margin-left: 15px;
    font-weight: 600;
    font-size: 0.8rem;
}

.social-float-btn.facebook {
    background-color: #3b5998;
}

.social-float-btn.messenger {
    background-color: #0084ff;
}

.social-float-btn.discord {
    background-color: #7289da;
}

.social-float-btn i.float-right {
    margin-left: auto;
}

/* Main Content */
.main-content-container {
    padding: 30px 0;
}

.content-block {
    background-color: #222;
    border-radius: 5px;
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 20px;
}

.content-block-title {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #ff4500;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.content-block-title .fa {
    margin-right: 5px;
}

/* Sidebar Styles */
.sidebar-block {
    background-color: #222;
    border-radius: 5px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-title {
    background-color: #ff4500;
    color: white;
    padding: 10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    border-radius: 5px 5px 0 0;
}

.sidebar-content {
    padding: 15px;
}

/* Server Status Sidebar */
.server-status-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.server-status-item:last-child {
    border-bottom: none;
}

.server-indicator {
    display: flex;
    align-items: center;
}

.server-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.online {
    background-color: #5cb85c;
}

.busy {
    background-color: #f0ad4e;
}

.offline {
    background-color: #d9534f;
}

/* News Items */
.news-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.news-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-title a {
    color: #ff4500;
}

.news-meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-content {
    margin-bottom: 10px;
}

.news-content-preview {
    color: #ccc;
    margin-top: 5px;
    font-size: 0.9rem;
}

.news-readmore {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.home-news-block-article {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.home-news-block-article:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.home-news-block-article-title a {
    color: #ff4500;
    font-weight: 600;
}

.home-news-block-article-type {
    display: inline-block;
    background-color: rgba(255, 69, 0, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    color: #ff4500;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.home-news-block-article-date {
    color: #888;
    font-size: 0.8rem;
}

.character-avatar {
    border: 2px solid #ff4500;
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.character-avatar:hover {
    transform: scale(1.1);
}

/* Footer */
.footer-container {
    background-color: #000; /* Đổi màu từ #222 thành #000 (đen) */
    border-top: 1px solid #333;
    padding: 30px 0;
}

.footer-title {
    color: #ff4500;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Hiển thị các mục theo chiều ngang */
    flex-wrap: wrap; /* Cho phép xuống dòng khi không đủ không gian */
}

.footer-links li {
    margin-right: 15px; /* Khoảng cách giữa các mục menu */
    margin-bottom: 8px;
}

.footer-links a {
    color: #e0e0e0;
    font-weight: 600; /* Làm đậm hơn */
    text-transform: uppercase; /* Chữ viết hoa */
    font-size: 14px; /* Kích thước giống với menu trên header */
    padding: 5px 10px; /* Thêm padding */
    border-radius: 3px; /* Bo góc nhẹ */
    transition: all 0.3s ease; /* Hiệu ứng hover mượt mà hơn */
}

.footer-links a:hover {
    color: #ff4500;
    background-color: rgba(255, 69, 0, 0.1); /* Thêm background khi hover */
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background-color: #ff4500;
    border-color: #ff4500;
}

.btn-primary:hover {
    background-color: #ff6a33;
    border-color: #ff6a33;
}

.btn-secondary {
    background-color: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

/* Tables */
.table {
    color: #e0e0e0;
}

.table-dark {
    background-color: #222;
}

.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #333;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-control {
    background-color: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

.form-control:focus {
    background-color: #2a2a2a;
    border-color: #ff4500;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(255, 69, 0, 0.25);
}

/* Ranking Tables */
.ranking-table {
    width: 100%;
}

.ranking-table th {
    background-color: #2a2a2a;
    color: #ff4500;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.ranking-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
}

.ranking-table tr:hover td {
    background-color: #2a2a2a;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.5rem;
    }
    
    .video-container {
        padding-bottom: 23%; /* Giảm xuống còn 2/3 kích thước cũ (từ 35% xuống 23%) */
    }
    
    .main-nav-menu li a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .mu-logo-img {
        height: 35px;
    }
    
    .player-stats {
        font-size: 13px;
    }
    
    .video-title {
        font-size: 2rem;
    }
    
    .video-desc {
        font-size: 1rem;
    }
    
    .social-floating-buttons {
        top: 20%;
    }
    
    .social-float-btn {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .server-status-block {
        padding: 10px;
    }
    
    .content-block, .sidebar-block {
        padding: 15px;
    }
    
    .video-container {
        padding-bottom: 27%; /* Giảm xuống còn 2/3 kích thước cũ (từ 40% xuống 27%) */
    }
    
    .header-nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-logo-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav-menu li a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .video-title {
        font-size: 1.8rem;
    }
    
    .video-desc {
        font-size: 0.9rem;
    }
    
    .social-floating-buttons {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-logo {
        max-height: 40px;
    }
    
    .video-container {
        padding-bottom: 33%; /* Giảm xuống còn 2/3 kích thước cũ (từ 50% xuống 33%) */
    }
    
    .mu-logo-img {
        height: 30px;
    }
    
    .player-stats {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .main-nav-menu {
        flex-wrap: wrap;
    }
    
    .main-nav-menu li {
        flex: 1 1 auto;
    }
    
    .main-nav-menu li a {
        padding: 8px 5px;
        font-size: 11px;
        text-align: center;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-desc {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}