/* ============================================
   medals.css - 勋章大全页面专属样式
   ============================================ */

.filter-row,
.filter-row *,
.filter-options,
.filter-options *,
.filter-option,
.filter-header,
.filter-header *,
.reset-filters-btn {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--wg-white);
    margin-bottom: 20px;
    opacity: 0.9;
}

.medals-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b00;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    transition: transform 0.3s ease;
}

.stat-number.pulse-effect {
    animation: statPulse 0.6s ease-in-out;
}

@keyframes statPulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
        text-shadow: 0 0 20px #ff6b00, 0 0 40px #ff6b00;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

.stat-label {
    font-size: 0.85rem;
    color: var(--wg-white);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .medals-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }
}

.medals-list-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.medals-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.medals-list-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wg-white);
}

.medals-list-count {
    font-size: 1rem;
    color: var(--wg-accent);
    font-weight: normal;
}

.medals-list-count span {
    font-size: 1.1rem;
    font-weight: normal;
}

.medals-view-controls {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px;
}

.medals-view-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--wg-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medals-view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.medals-view-btn.active {
    background: var(--wg-accent);
    color: var(--wg-dark);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.medals-sort-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px;
}

.medals-search-box {
    flex: 1;
    max-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.5);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

.medals-search-box:focus-within .search-icon {
    background: #ff6b00;
    transform: scale(1.1);
}

.search-clear {
    position: absolute;
    right: 8px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-clear.visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    background: #ff6b00;
    transform: scale(1.1);
}

.medal-search-input {
    width: 100%;
    padding: 6px 32px 6px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.medal-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.medal-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.medal-search-input.searching {
    animation: searchPulse 0.6s ease-in-out;
}

@keyframes searchPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    }
}

.sort-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--wg-light);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sort-btn.active {
    background: var(--wg-accent);
    color: var(--wg-dark);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.medals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

@media (max-width: 1200px) {
    .medals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .medals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .medals-grid {
        grid-template-columns: 1fr;
    }
}

.medal-card {
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border-color: #5a5a5a;
}

.medal-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.medal-card-main {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #3d3d3d;
}

.medal-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.medal-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.medal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.medal-name {
    font-size: 24px;
    color: #c4b998;
    font-weight: 600;
    margin: 0;
}

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

.medal-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.medal-tag.type-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid currentColor;
}

.medal-tag.availability-tag {
    color: #fff;
    font-weight: 500;
}

.medal-tag.availability-tag.available {
    background-color: #4caf50;
}

.medal-tag.availability-tag.unavailable {
    background-color: #f44336;
}

.medal-tag.difficulty-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid currentColor;
}

.medal-card-body {
    padding: 15px;
}

.medal-description {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
}

.medal-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 107, 0, 0.5), transparent);
}

.medal-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.medal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.condition-badge {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.info-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.info-value {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.condition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condition-list li {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    padding-left: 12px;
    position: relative;
}

.condition-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #ff6b00;
    font-weight: bold;
}

.no-medals-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed #3d3d3d;
    border-radius: 4px;
}

.no-medals-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-medals-message h3 {
    color: #c4b998;
    font-size: 18px;
    margin-bottom: 8px;
}

.no-medals-message p {
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .medals-grid {
        grid-template-columns: 1fr;
    }

    .medal-card-main {
        flex-direction: column;
        text-align: center;
    }

    .medal-tags-row {
        justify-content: center;
    }
}