/* Collection / Sticker Gallery Styles */
/* Collection Controls */
/* Collection Controls */
.collection-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.select-wrapper {
    position: relative;
    width: 200px;
}

.collection-controls select {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: var(--font-base);
    color: #333;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.collection-controls select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    outline: none;
}

.collection-controls select:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s;
}

.collection-controls select:focus+.select-icon,
.collection-controls select:hover+.select-icon {
    color: #d4af37;
}

.collection-hero {
    height: 30vh;
    min-height: 200px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.collection-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f0f0f0;
}

.collection-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    /* Reduced gap */
    justify-items: center;
}

@media (max-width: 900px) {
    .collection-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .collection-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .collection-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sticker-card {
    width: 100%;
    max-width: 200px;
    /* Limit to natural size */
    margin: 0 auto;
    /* Center in grid */
    aspect-ratio: 1 / 1;
    /* Square ratio */
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sticker-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.sticker-front,
.sticker-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    overflow: hidden;
    border-radius: 0;
    /* Removed styling to match raw image */
    box-shadow: none;
    background: transparent;
    /* Remove white background */
}

/* Sticker Image */
.sticker-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    image-rendering: auto;
    /* Smooth scaling, removed pixelated to prevent noise */
}

/* Frame Effect (Simple border if desired, or overlay) */
.sticker-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid #d4af37;
    /* Gold border default */
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Holographic Effect Removed by User Request */
.sticker-holo {
    display: none !important;
}

/* Modal Styles */
.sticker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sticker-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.sticker-modal.active .modal-content {
    transform: scale(1);
}

.modal-body {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.modal-sticker-container {
    flex: 1;
    min-width: 300px;
    background: #f5f5f7;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #eee;
}

.modal-sticker-container .sticker-card {
    width: 250px;
    height: 250px;
    cursor: default;
    transform: none !important;
    /* Disable hover transform in modal */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-info {
    flex: 1.2;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
}

.sticker-modal h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--rm-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.3s;
}

.modal-player-name-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.modal-player-name-link:hover h2 {
    color: var(--rm-gold);
    text-decoration: underline;
}

#modal-player-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    z-index: 100;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--rm-dark);
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-sticker-container {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .modal-info {
        padding: 2rem;
    }

    .sticker-modal h2 {
        font-size: 2rem;
    }

    .modal-sticker-container .sticker-card {
        width: 180px;
        height: 180px;
    }
}

@keyframes holo-shine {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Backside (Info) - currently hidden or could be flip effect */
.sticker-back {
    display: none;
    /* Simplify for now, focus on gallery */
    background: #fdf5e6;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

/* Loading State */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    padding: 3rem;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}