/* Styles pour la page Détails du Set */

.set-details-container {
    min-height: 100vh;
    background: #ececec;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.set-details-container .container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Header du set */
.set-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo .logo {
    height: 32px;
    width: auto;
}

/* Titre du set */
.set-title-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.set-title-section h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.set-title h1 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.set-title p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.header-spacer {
    width: 40px;
}

/* Contenu principal */
.set-content {
    padding-bottom: 1.7rem;
}

/* Navigation entre sets */
.set-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-btn:disabled:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: none;
}

.page-indicator {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Informations du set */
.set-info {
    margin-bottom: 2rem;
}

.set-header-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.set-color {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    margin-right: 1rem;
    border: 2px solid var(--border-color);
}

.set-details h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.set-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.set-stats {
    font-size: 0.875rem;
    color: #34C6FF;
    font-weight: 500;
}

/* Grille des stickers */
.stickers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    grid-auto-rows: 1fr;
}

.sticker-item {
    aspect-ratio: 1 / 1.25;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sticker-item:hover {
    transform: translateY(-2px);
}

.sticker-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    border: 6px solid white;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sticker-card.owned {
    background-color: #00CAFF;
    color: white;
}

.sticker-card.gold {
    background-color: #FFD700;
    color: black;
    border: 6px solid #FED701;
    position: relative;
    overflow: hidden;
}

.sticker-card.gold.owned {
    background-color: #b39909;
}

.sticker-card.gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    animation: goldReflect 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
}

@keyframes goldReflect {
    0% {
        transform: translateY(-150%) translateX(-150%) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(150%) translateX(150%) rotate(45deg);
        opacity: 0;
    }
}

.sticker-card.missing {
    background-color: #9E9E9E;
    color: white;
}

/* Affichage des étoiles */
.sticker-stars {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1001;
}

.star-icon {
    width: 14px;
    height: 14px;
}

/* Contenu du sticker */
.sticker-content {
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    position: relative;
    z-index: 2;
}

.sticker-image {
    text-align: center;
    margin-bottom: 0.75rem;
}

.sticker-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.sticker-placeholder.owned {
    background-color: #34C6FF;
    color: white;
}

.sticker-placeholder.empty {
    background-color: var(--border-color);
    color: var(--text-light);
}

.sticker-placeholder i {
    font-size: 18px;
    margin-bottom: 4px;
}

.sticker-count {
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    padding: 1em;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1em;
    background-color: #ffffff;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-info {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sticker-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: white;
    line-height: 1.3;
    text-align: center;
}

.sticker-stars {
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .stickers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .set-header-card {
        flex-direction: column;
        text-align: center;
    }
    
    .set-color {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .stickers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .sticker-card {
        padding: 12px;
    }
    
    .sticker-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .sticker-placeholder i {
        font-size: 18px;
    }
    
    .sticker-name {
        font-size: 12px;
    }
}
