/* ==========================================================================
   STILI ARTICOLI ANIME, SCHEDE PERSONAGGI & GALLERIE (WIZARD 12 STEP PRO - LED ID CARD EDITION)
   ========================================================================== */

/* Contenitore Griglia Personaggi */
.axs-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Singola Card Personaggio - Effetto ID Card con Bordo LED Animato */
.axs-card {
    position: relative;
    background: linear-gradient(145deg, #0f172a 0%, #090d16 100%);
    border-radius: 20px;
    padding: 28px 22px;
    color: #f8fafc;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid rgba(225, 29, 72, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bagliore LED / Neon esterno in movimento */
.axs-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #e11d48, #3b82f6, #10b981, #f59e0b, #e11d48);
    background-size: 400%;
    z-index: -1;
    border-radius: 22px;
    opacity: 0.65;
    animation: axsLedGlow 7s linear infinite;
    transition: opacity 0.3s ease;
}

@keyframes axsLedGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.axs-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.45), 0 0 25px rgba(59, 130, 246, 0.3);
    border-color: #fb7185;
}

.axs-card:hover::before {
    opacity: 1;
}

/* Badge Serie Anime */
.axs-badge-serie {
    align-self: flex-start;
    background: rgba(225, 29, 72, 0.18);
    color: #fda4af;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(225, 29, 72, 0.4);
    margin-bottom: 18px;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.2);
}

/* Contenitore Avatar Personaggio con Anello Luminoso */
.axs-img-wrapper {
    width: 115px;
    height: 115px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #e11d48, #3b82f6, #10b981);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

.axs-img-wrapper .axs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0f172a;
    display: block;
}

/* Nome del Personaggio */
.axs-card .axs-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Griglia Metadati (Età, Ruolo, Seiyu) con effetto Vetro */
.axs-meta-grid {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    backdrop-filter: blur(8px);
}

.axs-meta-item {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 7px;
}

.axs-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.axs-meta-item strong {
    color: #38bdf8;
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 0.3px;
}

/* Descrizione / Biografia Personaggio */
.axs-desc-section {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.65;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.axs-desc-section p {
    margin: 0;
}

/* ==========================================================================
   GALLERIA SCREENSHOT E CONCEPT ART (SHORTCODE [axs_dynamic_gallery])
   ========================================================================== */
.axs-frontend-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 18px !important;
    margin: 32px 0 !important;
}

.axs-gallery-link {
    position: relative;
    display: block;
    border-radius: 14px !important;
    overflow: hidden;
    border: 2px solid rgba(225, 29, 72, 0.3) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    background: #0f172a;
}

.axs-gallery-link:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #e11d48 !important;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.4);
}

.axs-gallery-link img {
    width: 100% !important;
    height: 145px !important;
    object-fit: cover !important;
    display: block;
    transition: filter 0.3s ease;
}

.axs-gallery-link:hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* ==========================================================================
   OTTIMIZZAZIONE MOBILE (SMARTPHONE E TABLET)
   ========================================================================== */
@media (max-width: 600px) {
    .axs-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .axs-frontend-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}