/* Contenedor principal */
.tibia-rashid-container {
    max-width: 100%;
    padding: 10px;
    text-align: center;
}

/* ====
   BANNER DE CARGA - SPINNER
   ==== */
.tibia-rashid-loading-banner {
    background: #ffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tibia-rashid-spinner-wrapper {
    display: inline-block;
    margin-bottom: 10px;
}

.tibia-rashid-loading-banner h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Animación del spinner */
@keyframes tibia-rashid-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para el spinner de carga */
.tibia-rashid-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(49,67,226,0.4);
    border-top-color: #3143e2;
    border-radius: 50%;
    animation: tibia-rashid-spin 1s linear infinite;
    margin: 0 auto;
}

/* Contenedor AJAX wrapper */
.tibia-rashid-ajax-wrapper {
    margin: 0 auto;
}

/* Mensaje de error AJAX */
.tibia-rashid-error {
    background: linear-gradient(135deg, #fb9393 0%, #ff334f 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tibia-rashid-error-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Sección de información (imagen + ciudad + countdown) */
.tibia-rashid-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #dddddd;
}

/* Imagen del NPC Rashid */
.tibia-rashid-npc {
    width: auto;
    height: auto;
    max-width: 64px;
    vertical-align: middle;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

/* Nombre de la ciudad */
.tibia-rashid-ciudad {
    font-size: 15px;
    font-weight: bold;
    text-transform: capitalize;
    flex-shrink: 0;
}

/* Sección del countdown (ahora dentro de info) */
.tibia-rashid-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    background-color: #dddd;
    border-radius: 5px;
    border-left: 3px solid #3143e2;
}

.countdown-timer {
    display: inline-block;
}

.countdown-time {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    display: inline-block;
    min-width: 15px;
}

.countdown-expired {
    color: #ffeb3b;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Contenedor del mapa */
.tibia-rashid-mapa {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen del mapa */
.tibia-rashid-mapa img {
    width: 80%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0 !important;
}

/* ====
   RESPONSIVE DESIGN
   ==== */
   /* Tablets */
@media (max-width: 768px) {
    .tibia-rashid-container {
    padding: 10px;
    margin:15px;
    text-align: center;
}

    .tibia-rashid-info {
        gap: 10px;
    }
    
    .tibia-rashid-ciudad {
        font-size: 14px;
    }
    
    .countdown-time {
        font-size: 14px;
    }

    .tibia-rashid-npc {
        margin-bottom: 0 !important;
    }
    .tibia-rashid-mapa img {
        max-width: 60%;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .tibia-rashid-ciudad {
        font-size: 15px;
    }
    
    .tibia-rashid-npc {
        max-width: 48px;
    }
    
    .countdown-time {
        font-size: 15px;
    }

    .tibia-rashid-mapa img {
        max-width: 80%;
    }

    .countdown-hours,
    .countdown-minutes,
    .countdown-seconds {
        min-width: 12px;
    }
    .tibia-rashid-countdown {
        margin:2px;
    }
}