/* Server Status Page Styles */

/* Main Container */
.server-status-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #0a0a14;
}

/* Header Section - Hidden */
.cabal-world-header {
    display: none;
}

.logo-container {
    margin-bottom: 20px;
}

.cabal-logo {
    max-width: 300px;
    height: auto;
}

/* Server Time and Region Section */
.server-time-region {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.info-label {
    font-size: 14px;
    color: #3a9bf4;
    margin-bottom: 10px;
    font-weight: bold;
}

.region-list, .time-list {
    font-size: 13px;
}

.region-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.region-flag {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.time-item {
    margin-bottom: 5px;
    white-space: nowrap;
}

.status-display {
    font-size: 16px;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 3px;
}

.status-display.online {
    background-color: #28a745;
    color: white;
}

/* Server Statistics Section */
.server-statistics-section {
    padding: 20px;
    background-color: rgba(10, 10, 20, 0.8);
}

.server-stats-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #3a9bf4;
}

.stats-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: calc(33% - 10px);
}

.stats-label {
    font-size: 14px;
    color: #3a9bf4;
    margin-right: 10px;
    white-space: nowrap;
}

.stats-value {
    font-size: 14px;
    font-weight: bold;
}

.stats-value.online {
    color: #28a745;
}

/* Episode Upgrade Section */
.episode-upgrade-section {
    padding: 20px;
    background-color: rgba(10, 10, 20, 0.8);
}

.episode-banner {
    background-color: #1a1a2e;
    background-image: linear-gradient(to right, #1a1a2e, #3a0a5c);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.episode-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: url('../images/celestia-character.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.episode-content h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.episode-content p {
    font-size: 16px;
    color: #aaa;
}

.episode-celestia {
    text-align: right;
    z-index: 1;
}

.episode-celestia h3 {
    font-size: 18px;
    color: #3a9bf4;
    margin-bottom: 5px;
}

.episode-celestia h2 {
    font-size: 32px;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    margin: 0;
}

.download-button {
    text-align: center;
    margin-bottom: 20px;
}

.btn-download {
    display: inline-block;
    background-color: #ff5722;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #ff7043;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-action {
    display: inline-block;
    background-color: #2a2a40;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
}

.btn-action:hover {
    background-color: #3a3a50;
}

.btn-action.login {
    background-color: #3a9bf4;
}

.btn-action.login:hover {
    background-color: #5aabf4;
}

/* News and Updates Section */
.news-updates-section {
    padding: 20px;
    background-color: rgba(10, 10, 20, 0.8);
}

.news-updates-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #3a3a50;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #3a9bf4;
    border-bottom: 2px solid #3a9bf4;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a40;
}

.news-tag {
    background-color: #3a0a5c;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

.news-title {
    flex-grow: 1;
    font-size: 14px;
}

.news-date {
    color: #aaa;
    font-size: 12px;
}

.update-item {
    display: flex;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.update-image {
    width: 40%;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-info {
    padding: 15px;
    width: 60%;
}

.update-title {
    font-size: 18px;
    color: #3a9bf4;
    margin-bottom: 10px;
}

.update-desc {
    font-size: 14px;
    color: #ddd;
}

/* Wiki Section */
.wiki-section {
    padding: 60px 0 120px 0;
    background: transparent;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    color: #3a9bf4;
    margin: 0;
}

.view-all {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #2a2a40;
    color: white;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wiki-item {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.wiki-item:hover {
    transform: translateY(-5px);
}

.wiki-image {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wiki-image img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.wiki-item:hover .wiki-image img {
    transform: scale(1.05);
}

.wiki-item h3 {
    font-size: 16px;
    text-align: center;
    margin: 0;
}

/* Discord Section */
.server-discord-section {
    padding: 30px 20px;
    background-color: rgba(10, 10, 20, 0.8);
    margin-top: 20px;
}

.server-discord-section h2 {
    font-size: 32px;
    color: #7289da; /* Discord color */
    text-align: center;
    margin-bottom: 25px;
}

.discord-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
    flex-wrap: nowrap;
}

/* Discord Slider Styles */
.discord-slider {
    flex: 2;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-color: #2a2a40;
    min-width: 0; /* Prevent overflow issues */
    width: 100%;
    max-width: 1400px;
    height: 510px;
    aspect-ratio: 1400 / 540;
}

.discord-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%; /* Đảm bảo slides lấp đầy chiều cao của slider */
}

.discord-slide {
    /* min-width: 100%; */
    position: relative;
    height: 100%; /* Đảm bảo slide lấp đầy chiều cao của slider */
}

.discord-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #5865F2;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.discord-slider-nav {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(50%);
}

.slider-prev, .slider-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(114, 137, 218, 0.8);
}

/* Discord Buttons Styles */
.discord-buttons {
    flex: 1;
    padding: 30px;
    background-color: #2a2a40;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.discord-buttons h3 {
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
}

.discord-buttons p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
}

.discord-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.discord-btn {
    display: inline-block;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.discord-btn i {
    margin-right: 8px;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Button styles */
.download-btn {
    background-color: #4CAF50; /* Green */
    font-size: 18px;
    padding: 15px 25px;
}

.download-btn:hover {
    background-color: #45a049;
}

.login-btn {
    background-color: #2196F3; /* Blue */
}

.login-btn:hover {
    background-color: #0b7dda;
}

.register-btn {
    background-color: #ff9800; /* Orange */
}

.register-btn:hover {
    background-color: #e68a00;
}

.donate-btn {
    background-color: #f44336; /* Red */
}

.donate-btn:hover {
    background-color: #da190b;
}

.discord-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    border-top: 1px solid #3a3a50;
    padding-top: 25px;
}

.stat-item {
    text-align: center;
}

.stat-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #7289da;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .server-time-region {
        flex-direction: column;
    }
    
    .stats-item {
        width: 100%;
    }
    
    .wiki-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .episode-banner::before {
        display: none;
    }
    
    .episode-celestia {
        text-align: center;
        margin-top: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .update-item {
        flex-direction: column;
    }
    
    .update-image, .update-info {
        width: 100%;
    }
    
    .discord-container {
        flex-direction: column;
    }
    
    .discord-slider, .discord-buttons {
        width: 100%;
        margin-bottom: 30px;
        flex: none;
    }
    
    .discord-slider {
        height: calc(100vw * 540 / 1400);
        max-height: 510px;
        aspect-ratio: 1400 / 540;
    }
    
    .discord-slide img {
        height: 100%;
        max-height: 100%;
    }
    
    .discord-btn {
        margin-bottom: 15px;
    }
    
    .download-btn {
        padding: 18px 25px;
    }
}
/* Server Status Optimize CSS */

/* Thu nhỏ phần Server Status */
.server-status-wrapper .server-status-container {
    padding: 15px 10px;
}

.server-status-wrapper .page-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.server-status-wrapper .server-info-section {
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 6px;
}

.server-status-wrapper .server-time-container,
.server-status-wrapper .server-status-info {
    min-width: 220px;
}

.server-status-wrapper .server-time-container h2,
.server-status-wrapper .server-status-info h2 {
    font-size: 16px;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.server-status-wrapper .server-time-container h3 {
    font-size: 14px;
}

/* Phóng to phần Discord - Thiết kế mới */
.server-discord-section {
    padding: 0;
    background-color: rgba(20, 20, 20, 0.9);
    margin: 40px 0;
    position: relative;
}

.server-discord-section h2 {
    font-size: 32px;
    color: #7289da;
    text-align: center;
    margin-bottom: 20px;
}

.discord-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 20px;
}

.discord-section {
    flex: 1;
    padding: 40px;
    color: white;
    position: relative;
    /* Discord Slider Enhancements */
    .discord-slider {
        position: relative;
        overflow: hidden;
        background-color: #36393f;
        width: 100%;
        max-width: 1400px;
        height: 510px;
        aspect-ratio: 1400 / 540;
        flex: 1;
    }
    
    .discord-slides {
        display: flex;
        transition: transform 0.5s ease;
        width: 400%; /* 4 slides */
    }
    
    .discord-slide {
        width: 25%; /* Each slide takes 1/4 of container */
        padding: 40px;
        color: white;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        box-sizing: border-box;
    }
    
    .discord-slide .flag {
        width: 30px;
        height: 20px;
        margin-right: 10px;
        vertical-align: middle;
    }
    
    .discord-title {
        font-size: 24px;
        font-weight: bold;
        color: #7289da;
    }
    
    .discord-subtitle {
        font-size: 16px;
        color: #b9bbbe;
        margin-top: 10px;
    }
    
    .join-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 2;
    }
    
    .join-overlay img {
        width: 80px;
        height: 80px;
        filter: invert(47%) sepia(96%) saturate(1237%) hue-rotate(201deg) brightness(95%) contrast(89%);
        margin-bottom: 10px;
    }
    
    .join-overlay .text {
        font-size: 28px;
        font-weight: bold;
        color: #7289da;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    
    .pagination {
        position: absolute;
        bottom: 20px;
        left: 20px;
        color: #b9bbbe;
        font-size: 14px;
        z-index: 3;
    }
    
    .discord-slider-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
        transform: translateY(-50%);
        z-index: 3;
    }
    
    .slider-prev, .slider-next {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 18px;
    }
    
    .slider-prev:hover, .slider-next:hover {
        background-color: rgba(114, 137, 218, 0.8);
    }
}

.sidebar {
    width: 240px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.sidebar h2 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar button, .sidebar a.download-btn {
    width: 85%;
    padding: 10px 15px;
    margin: 6px 0;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar button i, .sidebar a.download-btn i {
    margin-right: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.sidebar button:hover i, .sidebar a.download-btn:hover i {
    transform: scale(1.2);
}

.sidebar button:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.sidebar a.download-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    font-weight: bold;
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar a.download-btn:hover {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.pagination {
    position: absolute;
    bottom: 10px;
    left: 20px;
    color: white;
    font-size: 14px;
    opacity: 0.7;
}

/* Button styles */
.download-btn {
    background-color: #D4AF37; /* Gold color */
    font-size: 18px;
    padding: 15px 25px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    border: 2px solid #000;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.download-btn:hover {
    background-color: #FFD700; /* Brighter gold on hover */
}

/* Responsive styles */
@media (max-width: 768px) {
    .discord-section {
        padding: 20px;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .join-overlay .text {
        font-size: 24px;
    }
    
    .join-overlay img {
        width: 60px;
    }
    
    .discord-slider {
        height: calc(100vw * 510 / 1400);
        max-height: 510px;
        aspect-ratio: 1400 / 540;
        margin: 0;
        padding: 0;
    }
    
    .discord-slide img {
        height: 100%;
        max-height: 100%;
    }
    
    .discord-btn {
        margin-bottom: 15px;
        border-radius: 0;
    }
    
    .download-btn {
        padding: 18px 25px;
    }
}