/* Styles pour la page Album */

/* Header de l'album */
.album-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.album-header button {
    justify-self: start;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: var(--bg-secondary);
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-spacer {
    width: 40px; /* Pour équilibrer le layout */
}

/* Contenu principal */
.album-content {
    padding: 1.5rem;
}

.album-title {
    text-align: center;
    margin-bottom: 2rem;
}

.album-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
}

.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 25px;
    background-color: #635C41;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #00CAFF;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

.set-item {
    aspect-ratio: 1 / 1.25;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

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

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

/* Coins décoratifs */
.set-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: white;
}

.corner-top-left {
    top: 0;
    left: 0;
    border-bottom-right-radius: 80px 80px;
}

.corner-top-right {
    top: 0;
    right: 0;
    border-bottom-left-radius: 80px 80px;
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-top-right-radius: 80px 80px;
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-top-left-radius: 80px 80px;
}

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

.set-page-number {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.set-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    flex-shrink: 0;
}

/* Progrès du set */
.set-progress {
    margin-top: auto;
    flex-shrink: 0;
}

.completed-icon {
    height: 16px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.set-progress-bar {
    position: relative;
    width: 80%;
    height: 16px;
    background-color: #BEBCB1;
    border-radius: 8px;
    margin: 0 auto;
    overflow: hidden;
}

.set-progress-fill {
    height: 100%;
    background-color: #34C6FF;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.set-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive - ajustements pour très petits écrans */
@media (max-width: 360px) {
    .sets-grid {
        gap: 0.75rem;
    }
    
    .set-card {
        min-height: 140px;
    }
    
    .set-content {
        padding: 0.75rem 0.5rem;
    }
    
    .set-name {
        font-size: 0.75rem;
    }
}
