@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&display=swap');

.menu-link {
    color: white;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.menu-link:hover {
    color: #FFD700; /* clash-gold */
}

/* Subrayado animado */
.menu-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FFD700;
    transition: width 0.3s;
}

.menu-link:hover::after {
    width: 100%;
}

/* Pie de página */
footer img {
    filter: drop-shadow(0 0 4px rgba(139,0,0,0.7));
}

/* ── ANIMACIONES DE APARICIÓN ──────────────────────────────────── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.7;
        filter: none;
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.8));
    }
}

.clan-card-anim {
    animation: slideUp 0.5s ease-out forwards;
}

.clan-card-destacado {
    animation: slideUp 0.6s ease-out forwards;
}

.clan-badge-estado-glow {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ── MEJORAS EN CARDS ──────────────────────────────────────────── */
.clan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.clan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6), 0 0 32px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
}

/* ── BARRA DE BÚSQUEDA Y FILTROS ───────────────────────────────── */
.clan-filters-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(234, 179, 8, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    animation: slideUp 0.6s ease-out;
}

.clan-search-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.clan-filters-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.clan-filters-top .clan-search-wrap {
    flex: 1 1 320px;
    margin-bottom: 0;
}

.clan-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(234, 179, 8, 0.25);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: white;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.clan-search-input::placeholder {
    color: #6b7280;
}

.clan-search-input:focus {
    outline: none;
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.clan-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 1.1rem;
}

.clan-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
    gap: 0.75rem;
}

.clan-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    min-height: auto;
}

.clan-filter-group label {
    color: #d1d5db;
    font-weight: 600;
    white-space: nowrap;
}

.clan-filter-select,
.clan-filter-input {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 0.5rem;
    padding: 0.6rem 2.1rem 0.6rem 0.9rem;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    appearance: none;
    background-image:
        linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0)),
        linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
    background-position:
        right 0.65rem center,
        right 0.95rem center,
        right 0.75rem center;
    background-size:
        1.2rem 1.2rem,
        0.45rem 0.45rem,
        0.45rem 0.45rem;
    background-repeat: no-repeat;
}

.clan-filter-input {
    cursor: text;
    background-image: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0));
    padding-right: 0.8rem;
}

.clan-filter-select:focus,
.clan-filter-input:focus {
    outline: none;
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.clan-filter-select option {
    background: #1f2937;
    color: white;
}

.clan-filter-levels {
    align-items: center;
}

.clan-filter-levels-row {
    grid-column: span 2;
}

.clan-filter-estado-row {
    grid-column: span 1;
}

.clan-filters-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
    flex: 0 0 auto;
}

.clan-clear-filters {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    letter-spacing: 0.03em;
}
.clan-clear-filters:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
}

.clan-level-range {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    flex-wrap: wrap;
}

.clan-level-sep {
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0 0.15rem;
    user-select: none;
}

.clan-level-input {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 140px;
    width: 100%;
    min-width: 0;
}

.clan-level-clear-x {
    position: absolute;
    right: 2.1rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.clan-level-clear-x:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
}

.clan-level-input .clan-filter-input {
    background-image: none;
}

.clan-level-input input[type="number"]::-webkit-outer-spin-button,
.clan-level-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.clan-level-input input[type="number"] {
    -moz-appearance: textfield;
}

.clan-level-arrows {
    position: absolute;
    right: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.clan-level-btn {
    width: 1.35rem;
    height: 1.1rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(234, 179, 8, 0.35);
    background: rgba(17, 24, 39, 0.7);
    color: #facc15;
    font-size: 0.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.clan-level-btn:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.6);
}
.clan-level-btn:active {
    transform: translateY(1px);
}

.clan-level-clear {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.clan-level-clear:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
}
