.trophyroom {
    padding: 32px;
    font-family: "Metropolis Regular", Arial, sans-serif;
    color: #1f1f1f;
}

.trophyroom .hide {
    display: none !important;
}

.trophyroom-header {
    margin-bottom: 24px;
}

.trophyroom-title {
    display: flex;
    color: #4b4a4a;
    font-family: "Metropolis Semi Bold";
    font-size: 24px;
    letter-spacing: 0.36px;
    margin-bottom: 0;
}

.trophyroom-subtitle {
    margin: 0;
    color: #4b4a4a;
}

.trophyroom-error,
.trophyroom-empty {
    padding: 24px;
    border: 1px solid #dff4ff;
    background: #f7fdff;
    border-radius: 12px;
    margin-bottom: 16px;
}

.trophyroom-error-text {
    margin: 0 0 12px 0;
    color: #d9262c;
}

.trophyroom-retry {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #0d4962;
    color: white;
    cursor: pointer;
}

.trophyroom-retry:hover {
    background: #0b3d52;
}

.trophyroom-skeletons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.trophyroom-section {
    margin-bottom: 32px;
}

.trophyroom-section-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.trophyroom-section-title-container:hover {
    opacity: 0.8;
}

.trophyroom-section-title {
    font-size: 24px;
    color: #4b4a4a;
    margin: 12px 0;
    flex: 1;
}

.trophyroom-section-title-clickable {
    cursor: pointer;
}

.trophyroom-section-chevron {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #4b4a4a;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    flex-shrink: 0;
    margin-right: 8px;
}

.trophyroom-section-chevron.is-collapsed {
    transform: rotate(180deg);
}

.trophyroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.trophyroom-card {
    background: #ffffff;
    border: 1px solid rgb(203, 203, 202);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    min-height: 240px;
}

.trophyroom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.trophyroom-card-image {
    height: 140px;
    object-fit: contain;
    padding: 12px;
}

.trophyroom-card-body {
    padding: 12px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trophyroom-card-title {
    font-size: 18px;
    margin: 0;
    color: #1f1f1f;
}

.trophyroom-card-status {
    font-size: 14px;
    color: #4b4a4a;
}

.trophyroom-progress {
    background: #f0f4f8;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.trophyroom-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #42a5f5, #0d4962);
    width: 0%;
    transition: width 0.2s ease;
}

.trophyroom-card.is-completed .trophyroom-progress-bar {
    background: linear-gradient(90deg, rgb(20, 113, 219), rgb(20, 113, 219));
}

.trophyroom-card.is-locked .trophyroom-progress-bar {
    background: #cfd6dd;
}

.trophyroom-modal .modal-dialog {
    max-width: 720px;
}

.trophyroom-modal .modal-header {
    background: #1471db;
}

.trophyroom-modal .modal-header .close {
    color: #ffffff;
}

.trophyroom-modal .modal-header .modal-title {
    font-size: 22px;
}

.trophyroom-modal-content {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.trophyroom-modal-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    padding: 12px;
}

.trophyroom-modal-details {
    flex: 1;
}

.trophyroom-modal-title {
    font-size: 20px;
    margin: 0 0 8px 0;
}

.trophyroom-modal-description {
    margin: 0 0 12px 0;
    color: #4b4a4a;
}

.trophyroom-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #1f1f1f;
}

.trophyroom-modal-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.trophyroom-modal-progress-label {
    font-weight: bold;
    font-size: 14px;
    color: #1f1f1f;
}

.trophyroom-modal-progress {
    background: #f0f4f8;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.trophyroom-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgb(20, 113, 219), rgb(20, 113, 219));
    width: 0%;
    transition: width 0.2s ease;
}

.trophyroom-modal-note {
    color: #4b4a4a;
    font-size: 13px;
}

.trophyroom-modal-date {
    color: #0d4962;
    font-size: 14px;
}

/* DARK MODE */
.dark .trophyroom {
    background-color: #131514;
    color: rgba(255, 255, 255, 0.87);
}
.dark .trophyroom-title,
.dark .trophyroom-subtitle,
.dark .trophyroom-section-title {
    color: rgba(255, 255, 255, 0.87);
}
.dark .trophyroom-section-chevron {
    border-top-color: rgba(255, 255, 255, 0.87);
}
.dark .trophyroom-error,
.dark .trophyroom-empty {
    border: 1px solid rgba(14, 181, 254, 0.14);
    background: rgba(14, 181, 254, 0.14);
}
.dark .trophyroom-card {
    background: rgb(31, 33, 32);
    border: 1px solid rgb(255, 255, 255);
    box-shadow: rgba(51, 51, 51, 0.3) 0px 6px 18px;
}
.dark .trophyroom-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.dark .trophyroom-card-image {
    background: rgb(31, 33, 32);
}
.dark .trophyroom-card-title {
    color: rgba(255, 255, 255, 0.87);
}
.dark .trophyroom-card-status {
    color: rgba(255, 255, 255, 0.87);
}
.dark .trophyroom-progress {
    background: rgba(255, 255, 255, 0.1);
}
.dark .trophyroom-modal-title {
    color: #ffffff;
}
.dark .trophyroom-modal-description,
.dark .trophyroom-modal-description b,
.dark .trophyroom-modal-description i,
.dark .trophyroom-modal-description p,
.dark .trophyroom-modal .trophyroom-modal-description,
.dark .trophyroom-modal-description {
    color: #ffffff !important;
}
.dark .trophyroom-modal-meta {
    color: #ffffff;
}
.dark .trophyroom-modal-progress-label {
    color: #ffffff;
}
.dark .trophyroom-modal-progress,
.dark .trophyroom-modal-description .alert.alert-warning {
    background: #131514 !important;
}
.dark .trophyroom-modal-note {
    color: #ffffff;
}
.dark .trophyroom-modal-date {
    color: #1683ff;
}
.dark .trophyroom-modal-image {
    background: rgba(14, 181, 254, 0.14);
}
.dark .trophyroom-modal .modal-body {
    color: #ffffff;
}
.dark .trophyroom-modal .modal-header .modal-title {
    color: #ffffff;
}
.dark .trophyroom-modal-target {
    color: #ffffff;
    font-size: 14px;
}

@media (max-width: 768px) {
    .trophyroom {
        padding: 20px;
    }
    .trophyroom-modal-content {
        flex-direction: column;
        align-items: center;
    }
    .trophyroom-modal-image {
        width: 140px;
        height: 140px;
    }
}
