.trophies-container {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
}

.trophies-header {
    text-align: center;
    margin-bottom: 30px;
}

.trophies-header h2 {
    text-align: center;
    color: var(--accent-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.trophies-header p {
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 30px;
}

.trophies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.trophy-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.trophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 143, 255, 0.2);
}

.trophy-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 143, 255, 0.05) 0%, rgba(44, 143, 255, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.trophy-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.trophy-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trophy-info h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.trophy-desc {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.trophy-holders-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: white;
    padding: 10px 16px;
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.trophy-holders-count i {
    font-size: 16px;
}

/* Модальное окно */
.trophy-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.trophy-modal-content {
    background-color: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(44, 143, 255, 0.3);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.trophy-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(44, 143, 255, 0.1);
}

.trophy-modal-close:hover {
    color: #50c0ff;
    background-color: rgba(44, 143, 255, 0.2);
    transform: rotate(90deg);
}

.trophy-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.trophy-modal-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.trophy-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1.3;
}

.trophy-modal-header p {
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.trophy-modal-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: var(--accent-color);
    padding: 20px 30px;
    background: rgba(44, 143, 255, 0.05);
    border-bottom: 1px solid rgba(44, 143, 255, 0.1);
}

.trophy-modal-stats i {
    font-size: 18px;
}

.trophy-holders-list {
    padding: 20px 30px 30px 30px;
}

.holder-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.holder-item:hover {
    background: rgba(44, 143, 255, 0.08);
    border-color: var(--accent-color);
}

.holder-rank {
    font-size: 16px;
    font-weight: 700;
    color: #888;
    min-width: 35px;
}

.holder-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.holder-username {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    background-clip: text;
    -webkit-background-clip: text;
}

.holder-username:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

.holder-date {
    font-size: 13px;
    color: #888;
}

.no-holders {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* Скроллбар для модального окна */
.trophy-modal-content::-webkit-scrollbar {
    width: 8px;
}

.trophy-modal-content::-webkit-scrollbar-track {
    background: rgba(31, 31, 31, 0.5);
    border-radius: 4px;
}

.trophy-modal-content::-webkit-scrollbar-thumb {
    background: rgba(44, 143, 255, 0.5);
    border-radius: 4px;
}

.trophy-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 143, 255, 0.7);
}

/* Светлая тема */
.light-theme .trophy-card,
.light-theme .trophy-modal-content {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.light-theme .trophies-header p,
.light-theme .trophy-info h3,
.light-theme .trophy-desc {
    color: var(--text-color);
}

.light-theme .trophy-modal-stats {
    background-color: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.1);
}

.light-theme .holder-item {
    background-color: rgba(0, 0, 0, 0.02);
}

.light-theme .holder-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .trophies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .trophy-modal-content {
        padding: 0;
        width: 95%;
    }

    .trophy-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .trophy-holders-list {
        padding: 15px;
    }

    .holder-item {
        flex-wrap: wrap;
    }

    .holder-date {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
}

/* Поиск в модальном окне */
.trophy-search-wrap {
    position: relative;
    padding: 16px 30px;
    border-bottom: 1px solid var(--border-color);
}

.trophy-search-icon {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
}

.trophy-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-family: 'CustomFont', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.trophy-search-input::placeholder {
    color: #666;
    font-family: 'CustomFont', sans-serif;
}

.trophy-search-input:focus {
    border-color: var(--accent-color);
    background: rgba(44, 143, 255, 0.05);
}

/* Индикатор загрузки */
.holders-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
    font-family: 'CustomFont', sans-serif;
}

.holders-loading i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* Пагинация */
.trophy-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 30px 24px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 14px;
    font-family: 'CustomFont', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: rgba(44, 143, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    cursor: default;
}

.pagination-btn.disabled,
.pagination-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-dots {
    color: #888;
    font-size: 14px;
    font-family: 'CustomFont', sans-serif;
    padding: 0 4px;
    user-select: none;
}

/* Светлая тема */
.light-theme .trophy-search-input {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
}

.light-theme .trophy-search-input:focus {
    background: rgba(0, 102, 204, 0.05);
}

.light-theme .pagination-btn {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
}

.light-theme .pagination-btn:hover:not(.disabled):not(.active) {
    background: rgba(0, 102, 204, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .trophy-search-wrap {
        padding: 12px 15px;
    }

    .trophy-search-icon {
        left: 29px;
    }

    .trophy-pagination {
        padding: 12px 15px 20px;
        gap: 4px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
