/* Enhanced Layout CSS for Sylvania WoW Server
   Created to improve harmony and dimensions of the home page */

/* Improved general layout */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: #0f1218;
    background-image: url('../images/dragon-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f0f0f0;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(15, 18, 24, 0.7); /* Overlay semi-transparent */
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Enhanced header */
.header {
    background-color: rgba(15, 18, 24, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #2a3042;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Improved navigation */
.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-item {
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-item.active {
    background-color: rgba(234, 186, 40, 0.2);
    color: #EABA28;
    border-bottom: 2px solid #EABA28;
}

/* Indicateur de statut du serveur simplifié */
.server-status-container {
    display: block;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.server-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin: 0 auto;
    width: 100%;
}

.server-status-indicator:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 0, 0, 0.5);
}

.server-status-label {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-right: 15px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.server-status-message {
    font-weight: 700;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.server-status-message.online {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.server-status-message.offline {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
}

/* Welcome section */
.welcome-section {
    margin: 30px auto;
    max-width: 900px;
}

.main-card {
    background-color: rgba(26, 31, 42, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 35px;
    border: 1px solid rgba(234, 186, 40, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-list {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 3px solid #EABA28;
}

.features-list li {
    margin-bottom: 12px;
    padding-left: 10px;
    transition: transform 0.2s ease;
}

.features-list li:hover {
    transform: translateX(5px);
}

/* Improved cards */
.card {
    background-color: rgba(26, 31, 42, 0.85);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(234, 186, 40, 0.3);
}

.card-header h2 {
    margin: 0;
    color: #EABA28;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-body {
    padding: 25px;
}

/* Grid layout for better organization */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Enhanced footer */
.footer {
    background-color: rgba(15, 18, 24, 0.9);
    padding: 25px 0;
    margin-top: 40px;
    border-top: 2px solid #2a3042;
    text-align: center;
}

.row.justify-content-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #EABA28;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .service-status {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .service-item {
        width: 80%;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
