/* Collections Page Styles */

.collections-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
}

.collections-stats .stat {
    text-align: center;
}

.collections-stats .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #5b69e0;
    margin-bottom: 8px;
}

.collections-stats .stat-label {
    font-size: 14px;
    color: #799dc8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Collection Info Section */
.collection-info {
    padding: 80px 0;
    background-color: #1a1a20;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.info-card {
    background-color: #2d3141;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #425a6c;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: #5b69e0;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #d4d5d4;
    margin-bottom: 16px;
}

.info-card p {
    color: #799dc8;
    line-height: 1.6;
}

/* Collections Filters */
.collections-filters {
    padding: 48px 0;
    background-color: #19191f;
    border-bottom: 1px solid #2d3141;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.collection-card {
    background-color: #2d3141;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #425a6c;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: #5b69e0;
}

.collection-header {
    position: relative;
    height: 200px;
    background: linear-gradient(45deg, #2d3141, #425a6c);
    overflow: hidden;
}

.collection-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(29, 29, 31, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.collection-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: #5b69e0;
    color: white;
}

.status-discontinued {
    background-color: #cb3b93;
    color: white;
}

.status-operation {
    background-color: #799dc8;
    color: white;
}

.collection-name {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.collection-content {
    padding: 24px;
}

.collection-description {
    color: #799dc8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.collection-items {
    margin-bottom: 20px;
}

.collection-items h4 {
    font-size: 14px;
    font-weight: 600;
    color: #d4d5d4;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-tag {
    background-color: #425a6c;
    color: #d4d5d4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.collection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #425a6c;
}

.item-count {
    color: #799dc8;
    font-size: 14px;
}

.view-collection-btn {
    color: #5b69e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.view-collection-btn:hover {
    color: #799dc8;
}

/* Active Collections Section */
.active-collections {
    padding: 80px 0;
    background-color: #19191f;
}

.active-grid .collection-card {
    border-color: #5b69e0;
}

.active-grid .collection-card::before {
    content: "ACTIVE";
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #5b69e0;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
}

/* All Collections Section */
.all-collections {
    padding: 80px 0;
    background-color: #1a1a20;
}

.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.collections-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #d4d5d4;
    margin: 0;
}

/* Collection Guide */
.collection-guide {
    padding: 80px 0;
    background-color: #19191f;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
}

.guide-section {
    background-color: #2d3141;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #425a6c;
}

.guide-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #5b69e0;
    margin-bottom: 16px;
}

.guide-section p {
    color: #d4d5d4;
    margin-bottom: 16px;
    line-height: 1.6;
}

.guide-section ul {
    list-style: none;
    padding: 0;
}

.guide-section li {
    color: #799dc8;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.guide-section li::before {
    content: "•";
    color: #5b69e0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Rarity Breakdown */
.rarity-breakdown {
    background-color: #1a1a20;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #425a6c;
}

.rarity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #425a6c;
}

.rarity-item:last-child {
    border-bottom: none;
}

.rarity-name {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rarity-name.consumer { background-color: #b0c3d9; color: #1a1a20; }
.rarity-name.industrial { background-color: #5e98d9; color: white; }
.rarity-name.mil-spec { background-color: #4b69ff; color: white; }
.rarity-name.restricted { background-color: #8847ff; color: white; }
.rarity-name.classified { background-color: #d32ce6; color: white; }

.rarity-chance {
    color: #5b69e0;
    font-weight: 600;
}

/* List view styles */
.collections-grid.list-view {
    grid-template-columns: 1fr;
}

.collections-grid.list-view .collection-card {
    display: flex;
    height: 200px;
}

.collections-grid.list-view .collection-header {
    width: 300px;
    height: 100%;
}

.collections-grid.list-view .collection-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .collections-stats {
        gap: 32px;
    }

    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

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

    .guide-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .collections-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .collections-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collections-grid.list-view .collection-card {
        flex-direction: column;
        height: auto;
    }

    .collections-grid.list-view .collection-header {
        width: 100%;
        height: 200px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }

    .collection-info,
    .active-collections,
    .all-collections,
    .collection-guide {
        padding: 48px 0;
    }

    .collection-content {
        padding: 20px;
    }

    .collection-name {
        font-size: 20px;
    }

    .guide-section {
        padding: 24px;
    }
}
