/* ========================== VARIABLES GLOBALES ========================== */
:root {
    --primary-color: #00a99f;
    --primary-hover: #007f75;
    --secondary-color: #607d8b;
    --secondary-hover: #4f6875;
    --background-dark: #1a2531;
    --background-card: rgba(40, 44, 52, 0.7);
    --text-light: #f0f0f0;
    --text-secondary: #ccc;
    --text-highlight: #00a99f;
    --badge-new: #4caf50;
    --badge-popular: #ff9800;
    --badge-fav: #e91e63;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #1a2531;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
	overflow-x: hidden;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header, .top-header {
    text-align: center;
}


header h1 {
    font-size: 32px;
    color: #00a99f;
    margin-bottom: 10px;
    text-align: center;
}

header p {
    font-size: 16px;
    color: #ccc;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

h1, h2, h3 {
    background: rgba(15, 15, 15, 0.7);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.top-header h1 {
    font-size: 32px;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(145deg, #1f2a38, #0f1923);
    box-shadow: inset 0 0 10px rgba(0, 169, 159, 0.3), 0 0 10px rgba(0,0,0,0.7);
    border: 2px solid #00a99f;
    display: inline-block;
}






.search-section h2,
.top5-section h2,
.all-servers-section h2,
.stats-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 15, 15, 0.7);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================== HERO SECTION ========================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/dayz-banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========================== CONTENT ========================== */
.content-container,
.container {
    width: 100%;
	max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2e3b4e, #1a2531);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
	box-sizing: border-box;
}

/* ========================== FORMULAIRES ========================== */
.search-section {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(5px);
}

.search-form {
    max-width: 1000px;
    margin: 0 auto;
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

select {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
}

select option {
    background-color: rgba(20, 20, 20, 0.95);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 169, 159, 0.2);
}


.slot-range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

input[type="range"] {
    width: 100%;
    max-width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.slot-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    border-radius: 4px;
    color: white;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ========================== BOUTONS ========================== */
.btn-primary,
.btn-secondary,
.btn-view {
	width: 50%;
    max-width: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-view {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    min-width: 70px;
    min-height: 38px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view:hover {
    background-color: var(--primary-hover);
    transform: translateX(3px);
}


.btn-view:hover {
    background-color: var(--primary-hover);
    transform: translateX(3px);
}

/* ========================== CARTES SERVEURS ========================== */
.server-card {
    background: linear-gradient(160deg, #2e2e2e 0%, #1c1c1c 100%);
    background-image: 
        url('https://dayzaide.fr/DayzAideClassement/assets/img/back_server-card.png'),
        linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.4) 100%);
    background-blend-mode: overlay, multiply;
    background-size: cover;
    background-position: center;

    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -2px 3px rgba(0, 0, 0, 0.6);

    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 169, 159, 0.4);
    padding: 0.75rem;
    gap: 1rem;
    backdrop-filter: blur(1px);
}

/* 💡 Animation de lumière métallique */
.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    transition: none;
}

/* ✨ Effet glissant au hover */
.server-card:hover::before {
    animation: shineSlide 1.4s ease-out forwards;
	 box-shadow: 0 0 20px rgba(0, 169, 159, 0.8);
}

@keyframes shineSlide {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}



.server-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
    color: white;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #f39c12);
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #95a5a6);
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #d35400);
}

.rank-4, .rank-5 {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.server-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.server-card:hover .server-image img {
    transform: scale(1.05);
}

.default-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: var(--text-light);
    font-size: 2rem;
    border-radius: 8px;
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.server-name {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.server-card:hover .server-name {
    color: white;
}

.server-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

.badge-new {
    background-color: var(--badge-new);
}

.badge-popular {
    background-color: var(--badge-popular);
}

.badge-fav {
    background-color: var(--badge-fav);
}


.server-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.server-details p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-details i {
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
    margin-right: 0.2rem;
}

.server-details strong {
    color: var(--text-highlight);
    font-weight: 600;
    margin-right: 0.2rem;
}

.server-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.results-count {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.top5-section {
    margin-bottom: 3rem;
}

.all-servers-section {
    margin-bottom: 3rem;
}

.stats-section {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(5px);
}

.chart-container {
    height: 400px;
    margin: 0 auto;
    max-width: 900px;
}

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.player-count i,
.player-count strong,
.player-count span {
    white-space: nowrap;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-online {
    background-color: #2ecc71;
}
.status-offline {
    background-color: #e74c3c;
}




/* Bonus : pas obligatoire, mais utile */
.server-full {
    font-weight: bold;
    color: #e67e22;
}
.server-active {
    color: #f1c40f;
}
.server-low {
    color: #3498db;
}
.server-empty {
    opacity: 0.6;
}


/* ========================== RESPONSIVE ========================== */
@media screen and (max-width: 992px) {
    .container {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .server-card {
        flex-direction: column;
        padding: 1rem;
        align-items: center;
        text-align: center;
    }

    .server-image {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }

    .server-name {
        justify-content: center;
    }

    .server-details {
        justify-content: center;
        margin: 0.5rem 0;
    }

    .server-actions {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .btn-view {
        width: 100%;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .search-section h2,
    .top5-section h2,
    .all-servers-section h2,
    .stats-section h2 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
		width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .chart-container {
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    .server-badges {
        margin-left: 0;
        margin-top: 0.3rem;
        justify-content: center;
        width: 100%;
    }

    .server-name {
        flex-direction: column;
        align-items: center;
    }

    .server-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .server-details p {
        white-space: normal;
    }

    .container {
        padding: 1rem;
    }

    .search-section,
    .stats-section {
        width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
	padding: 1.5rem 1rem;
    }

    .chart-container {
        height: 250px;
    }
}

/* Spécifique mobile sans hover */
@media (hover: none) {
    input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
}
.support-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

/* Style des cartes horizontales */
.support-card {
    display: flex;
    align-items: center;
    background-color: #1a2531;
    border-radius: 12px;
    padding: 15px 20px;
    width: 250px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.support-card:hover {
    transform: scale(1.03);
}

.card-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

/* Icône PayPal */
.paypal-icon {
    font-size: 48px;
    color: #0070ba;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.paypal-icon:hover {
    transform: scale(1.15);
    color: #00a99f;
}

/* QR Code masqué */
.qr-popup {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a2531;
    padding: 10px;
    border: 2px solid #00a99f;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.don-hover {
    position: relative;
}

.don-hover:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qr-img {
    width: 240px;
}

/* Logo HKC */
.logo-khc {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Logo interpol */
.logo-interpol {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Texte dans les blocs */
.card-content {
    font-size: 16px;
    color: #ccc;
    text-align: left;
    line-height: 1.3em;
}
.card-title {
    font-size: 16px;
    color: #00a99f;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title:hover {
    color: #ffffff;
}



.top-today {
  animation: sparkle 1.2s infinite;
  border: 2px solid gold;
  box-shadow: 0 0 15px gold;
}

@keyframes sparkle {
  0%   { box-shadow: 0 0 10px gold; }
  50%  { box-shadow: 0 0 20px white; }
  100% { box-shadow: 0 0 10px gold; }
}

.badge-today {
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 0.8em;
    margin-left: 5px;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    }
}

.popup-topdujour {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 37, 49, 0.95);
    border: 2px solid gold;
    border-radius: 12px;
    box-shadow: 0 0 20px gold;
    padding: 2rem;
    z-index: 9999;
    text-align: center;
    animation: fadeInPopup 1s ease forwards;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.popup-topdujour h2 {
    color: gold;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.popup-topdujour h3 {
    color: #00a99f;
    margin: 0.5rem 0 1rem;
    font-size: 1.4rem;
}

.popup-topdujour p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.popup-close {
    margin-top: 1rem;
    background-color: #e74c3c;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.popup-close:hover {
    background-color: #c0392b;
}

/* Petit bouton X */
.popup-topdujour .popup-x {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    font-weight: bold;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10000;
}



.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.status-online {
    background-color: #2ecc71; /* Vert */
}
.status-offline {
    background-color: #e74c3c; /* Rouge */
}



@keyframes fadeInPopup {
    from {
        opacity: 0;
        transform: translate(-50%, -20%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 📱 Responsive mobile */
@media screen and (max-width: 480px) {
    .popup-topdujour {
        padding: 1rem;
        top: 5%;
    }

    .popup-topdujour h2 {
        font-size: 1.4rem;
    }

    .popup-topdujour h3 {
        font-size: 1.2rem;
    }

    .popup-topdujour p {
        font-size: 0.9rem;
    }

    .popup-close {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .popup-topdujour .popup-x {
        font-size: 18px;
    }
}


.mod-suggestions {
    background: #1a2531;
    border: 1px solid #00a99f;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
}
.mod-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    color: white;
}
.mod-suggestion-item:hover {
    background-color: #00a99f;
}
.copy-ip {
    margin-left: 8px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.copy-ip:hover {
    transform: scale(1.2);
}

/* Style pour le GIF Interpol */
.logo-interpol-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: none; /* S'assure que l'animation du GIF n'est pas interrompue */
    display: block;
    margin: 0 auto;
}

/* Assurer l'alignement avec les autres logos */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

/* Si vous voulez ajouter un effet au survol (optionnel) */
.support-card:hover .logo-interpol-gif {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}