/* ===================================================== */
/* 🛡️ ARMERÍA DE PARAGON WOW - ESTILOS ELEGANTES */
/* ===================================================== */

:root {
    --gold: #e2b714;
    --gold-glow: rgba(226, 183, 20, 0.4);
    --dark-bg: rgba(15, 3, 3, 0.95);
    --card-bg: rgba(25, 10, 10, 0.85);
    --glass-border: rgba(226, 183, 20, 0.25);
    
    /* Quality colors */
    --q-legendary: #ff8000;
    --q-epic: #a335ee;
    --q-rare: #0070dd;
    --q-uncommon: #1eff00;
    --q-common: #ffffff;
    
    /* Factions */
    --alliance-blue: #0078ff;
    --horde-red: #dc143c;
}

body {
    background-color: #050202;
}

/* ===================================================== */
/* ⚔️ HERO & BUSCADOR PÚBLICO */
/* ===================================================== */

.armory-hero {
    margin-top: 70px;
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 5, 5, 0.9) 0%, rgba(10, 2, 2, 0.95) 100%);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(226, 183, 20, 0.15);
}

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

.armory-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px;
    text-shadow: 0 0 15px rgba(226, 183, 20, 0.6);
}

.gold-icon {
    color: var(--gold);
    margin-right: 10px;
}

.armory-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* BUSCADOR */
.search-box-container {
    margin: 20px auto 0;
    max-width: 700px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 0 15px rgba(226, 183, 20, 0.2);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 0 25px rgba(226, 183, 20, 0.5);
    border-color: #ffd700;
}

.search-icon {
    color: var(--gold);
    font-size: 1.2rem;
    margin-right: 12px;
}

.armory-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    padding: 8px 0;
}

.armory-search-input::placeholder {
    color: #888888;
}

.search-btn {
    background: linear-gradient(135deg, #e2b714 0%, #ff8c00 100%);
    border: none;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 183, 20, 0.5);
}

.search-quick-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.quick-label {
    color: #aaaaaa;
}

.quick-tag {
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(40, 20, 20, 0.6);
}

.quick-tag.alliance {
    color: #80c0ff;
    border-color: rgba(0, 120, 255, 0.4);
}

.quick-tag.alliance:hover {
    background: rgba(0, 120, 255, 0.3);
    color: #ffffff;
}

.quick-tag.horde {
    color: #ff8080;
    border-color: rgba(220, 20, 60, 0.4);
}

.quick-tag.horde:hover {
    background: rgba(220, 20, 60, 0.3);
    color: #ffffff;
}

/* ===================================================== */
/* 📐 CONTENEDOR PRINCIPAL */
/* ===================================================== */

.armory-container {
    max-width: 1240px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

/* ===================================================== */
/* 🔍 RESULTADOS DE BÚSQUEDA */
/* ===================================================== */

.search-results-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold);
    border-bottom: 1px solid rgba(226, 183, 20, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.character-card {
    background: linear-gradient(145deg, rgba(30, 10, 10, 0.9), rgba(15, 5, 5, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(226, 183, 20, 0.3);
}

.card-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-name {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #ffffff;
}

.card-guild {
    margin: 2px 0 6px;
    font-size: 0.82rem;
    color: #aaaaaa;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.tag.lvl { background: rgba(226, 183, 20, 0.2); color: var(--gold); }
.tag.class-deathknight { background: rgba(196, 31, 59, 0.3); color: #c41f3b; }
.tag.class-hunter { background: rgba(171, 212, 115, 0.3); color: #abd473; }
.tag.class-warrior { background: rgba(199, 156, 110, 0.3); color: #c79c6e; }
.tag.class-shaman { background: rgba(0, 112, 222, 0.3); color: #0070de; }

.card-stats {
    text-align: right;
}

.ilvl-badge {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
}

.ilvl-number {
    display: block;
    font-weight: 700;
    color: #00ff22;
    font-size: 1.1rem;
}

.ilvl-label {
    display: block;
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
}

.ap-badge {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--gold);
}

.no-results {
    text-align: center;
    padding: 40px;
    background: rgba(20, 5, 5, 0.8);
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
}

.no-res-icon {
    font-size: 3rem;
    color: #666;
    margin-bottom: 15px;
}

.reset-search-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background: rgba(226, 183, 20, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* ===================================================== */
/* 👤 VISTA DETALLADA DEL PERSONAJE */
/* ===================================================== */

.character-header-card {
    background: linear-gradient(135deg, rgba(30, 8, 8, 0.95), rgba(15, 3, 3, 0.95));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.character-header-card.faction-alianza {
    border-color: var(--alliance-blue);
    box-shadow: 0 0 25px rgba(0, 120, 255, 0.3);
}

.character-header-card.faction-horda {
    border-color: var(--horde-red);
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.3);
}

.character-identity {
    display: flex;
    align-items: center;
    gap: 25px;
}

.character-portrait-box {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9);
}

.portrait-icon {
    font-size: 3rem;
    color: var(--gold);
}

.faction-badge {
    position: absolute;
    bottom: -8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.faction-badge.alianza { background: var(--alliance-blue); color: #fff; }
.faction-badge.horda { background: var(--horde-red); color: #fff; }

.identity-details .char-title {
    color: var(--gold);
    font-size: 0.95rem;
    font-style: italic;
    display: block;
    margin-bottom: 2px;
}

.identity-details .char-name {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    margin: 0;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.identity-details .char-guild {
    margin: 4px 0 12px;
    color: #bbbbbb;
    font-size: 1rem;
}

.char-meta-pills {
    display: flex;
    gap: 10px;
}

.pill {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.pill.level { background: rgba(226, 183, 20, 0.25); color: var(--gold); border: 1px solid var(--gold); }
.pill.race { background: rgba(100, 100, 100, 0.3); color: #ddd; }
.pill.class-badge { background: rgba(196, 31, 59, 0.3); color: #ff5555; }

.header-metrics {
    display: flex;
    gap: 20px;
}

.metric-box {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
    min-width: 140px;
}

.metric-value {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-box.ilvl-box .metric-value { color: #00ff22; }

.metric-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===================================================== */
/* 🗡️ PAPERDOLL LAYOUT (EQUIPAMIENTO & ESTADÍSTICAS) */
/* ===================================================== */

.paperdoll-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    margin-bottom: 30px;
}

.equipment-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(20, 6, 6, 0.9), rgba(10, 2, 2, 0.95));
    border: 2px solid #444;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.25s ease;
}

.item-slot:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.item-slot.epic { border-color: var(--q-epic); box-shadow: 0 0 10px rgba(163, 53, 238, 0.25); }
.item-slot.legendary { border-color: var(--q-legendary); box-shadow: 0 0 15px rgba(255, 128, 0, 0.35); }
.item-slot.rare { border-color: var(--q-rare); }
.item-slot.empty { opacity: 0.6; border-style: dashed; }

.item-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.epic .item-icon-box { color: var(--q-epic); }
.legendary .item-icon-box { color: var(--q-legendary); }

.item-details {
    overflow: hidden;
}

.item-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epic .item-name { color: #d680ff; }
.legendary .item-name { color: #ffb366; }

.item-ilvl {
    display: block;
    font-size: 0.75rem;
    color: #888888;
}

/* CENTRO - ESTADÍSTICAS Y ARMAS */
.character-center-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card {
    background: rgba(15, 5, 5, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 24px;
}

.stats-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.mt-20 { margin-top: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.stat-name { color: #aaaaaa; }
.stat-val { font-weight: 700; color: #ffffff; }

.weapons-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weapon-slot {
    padding: 12px;
}

/* ===================================================== */
/* 🏅 INDICADORES DE LOGROS */
/* ===================================================== */

.achievements-card {
    background: rgba(15, 5, 5, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

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

.achievements-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0;
}

.achievement-progress-bar {
    position: relative;
    width: 320px;
    height: 22px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--gold);
    border-radius: 11px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e2b714 0%, #ff8c00 100%);
    box-shadow: 0 0 10px rgba(226, 183, 20, 0.6);
}

.bar-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 4px #000;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 15px;
}

.achievement-badge-card {
    background: rgba(30, 10, 10, 0.7);
    border: 1px solid rgba(226, 183, 20, 0.2);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.achievement-badge-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    background: rgba(45, 15, 15, 0.85);
}

.ach-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
}

.ach-info {
    flex: 1;
}

.ach-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.ach-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
}

.ach-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(226, 183, 20, 0.2);
    color: var(--gold);
    font-weight: 700;
}

.ach-desc {
    margin: 0;
    font-size: 0.82rem;
    color: #bbbbbb;
    line-height: 1.35;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .paperdoll-layout {
        grid-template-columns: 1fr;
    }
    .character-header-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .character-identity {
        flex-direction: column;
    }
    .char-meta-pills {
        justify-content: center;
    }
}
