/* Album Collector - Estilos */
.album-collector-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.album-collector-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px auto;
}

.album-collector-login-required p {
    font-size: 18px;
    color: #333;
}

.album-collector-login-required a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.album-collector-login-required a:hover {
    text-decoration: underline;
}

/* Vistas */
.ac-view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.ac-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.ac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.ac-header h2 {
    margin: 0;
    font-size: 28px;
    color: #1a1a1a;
}

.ac-album-title {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ac-album-actions {
    display: flex;
    gap: 10px;
}

/* Botones */
.ac-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ac-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ac-btn:active {
    transform: translateY(0);
}

.ac-btn-primary {
    background: #4f46e5;
    color: white;
}

.ac-btn-primary:hover {
    background: #4338ca;
}

.ac-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.ac-btn-secondary:hover {
    background: #d1d5db;
}

.ac-btn-success {
    background: #10b981;
    color: white;
}

.ac-btn-success:hover {
    background: #059669;
}

.ac-btn-danger {
    background: #ef4444;
    color: white;
}

.ac-btn-danger:hover {
    background: #dc2626;
}

.ac-icon {
    font-size: 18px;
    line-height: 1;
}

/* Grid de álbumes */
.ac-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ac-album-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ac-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ac-album-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.ac-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-album-info {
    padding: 20px;
}

.ac-album-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.ac-album-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.ac-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.ac-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

/* Formulario */
.ac-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.ac-form-group {
    margin-bottom: 20px;
}

.ac-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ac-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.ac-form-group input,
.ac-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.ac-form-group input:focus,
.ac-form-group select:focus {
    outline: none;
    border-color: #4f46e5;
}

.ac-form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.ac-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Estadísticas */
.ac-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ac-stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ac-stat-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.ac-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
}

.ac-stat-success .ac-stat-value {
    color: #10b981;
}

.ac-stat-warning .ac-stat-value {
    color: #f59e0b;
}

.ac-stat-info .ac-stat-value {
    color: #3b82f6;
}

/* Filtros */
.ac-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ac-filter-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ac-filter-btn:hover {
    background: #e5e7eb;
}

.ac-filter-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4338ca;
}

/* Grid de láminas */
.ac-stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.ac-sticker-item {
    aspect-ratio: 1;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ac-sticker-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ac-sticker-item.special {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-color: #d97706;
}

.ac-sticker-item.collected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #047857;
}

.ac-sticker-item.collected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: white;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.ac-sticker-item.special.collected {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ac-sticker-item.hidden {
    display: none;
}

/* Loading */
.ac-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ac-loading.active {
    display: flex;
}

.ac-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f4f6;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensajes */
.ac-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ac-message.success {
    background: #d1fae5;
    color: #065f46;
}

.ac-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .ac-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ac-album-title {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ac-album-actions {
        flex-direction: column;
    }
    
    .ac-form-row {
        grid-template-columns: 1fr;
    }
    
    .ac-stickers-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .ac-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ac-albums-grid {
        grid-template-columns: 1fr;
    }
    
    .ac-header h2 {
        font-size: 22px;
    }
}

/* Empty state */
.ac-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ac-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.ac-empty-state h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 10px;
}

.ac-empty-state p {
    color: #6b7280;
    font-size: 16px;
}
